Previous Topic

Next Topic

Book Contents

Global access control list in named.conf

To allow DNS transfers server-wide on Plesk, the administrator can use global access control list in the named.conf file

To set up an ACL, the administrator should insert into the Plesk database the values describing servers to which DNS transfers are allowed. It can be done with the MySQL query:

insert into misc (param,val) values ('DNS_Allow_Transfer1', '1.1.1.1/24');

To specify more hosts, use the parameters like "DNS_Allow_Transfer2" and so on:

insert into misc (param,val) values ('DNS_Allow_Transfer2', '2.2.2.2');

Hosts should be specified by IP address and optional mask.

Once you added all the required IPs, run the following command to update named.conf:

%plesk_dir%admin\bin\dnsmng.exe update <any.of.your.domains>

After that, the named.conf file will be updated with the following entries:

acl common-allow-transfer {

1.1.1.1/24;

2.2.2.2;

};

Name of this ACL will be added to the allow-transfer section of each DNS zone.

zone "zone1.com" {

type master;

file "zone1.com";

allow-transfer {

common-allow-transfer;

};

};