Mailinglist Archive: opensuse (4570 mails)
| < Previous | Next > |
Re: [SLE] Getting DHCP to update DNS
- From: Silviu Marin-Caea <silviu_marin-caea@xxxxxxxxxxxxxxxx>
- Date: Mon, 7 Nov 2005 11:17:11 +0000 (UTC)
- Message-id: <436F37E5.1050104@xxxxxxxxxxxxxxxx>
Chadley Wilson wrote:
> ddns-update-style interim
Interim works. But this is not the only option you need.
There has to be a key that allows updates, and "ddns updates on" etc
etc. Here are the relevant sections from a working system.
/etc/named.conf
include "/etc/rndc.key";
zone "whatever.za" in {
file "dyn/whatever.za";
type master;
allow-update { key "rndc-key"; };
};
zone "1.168.192.in-addr.arpa" in {
file "dyn/1.168.192.in-addr.arpa";
type master;
allow-update { key "rndc-key"; };
};
/etc/rndc.key
key "rndc-key" {
algorithm hmac-md5;
secret "some random stuff that I won't put up on a public list";
};
/etc/dhcpd.conf
ddns-update-style interim;
ddns-updates on;
include "/etc/rndc.key";
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.254;
default-lease-time 604800;
max-lease-time 2592000;
zone whatever.za. {
primary 127.0.0.1;
key rndc-key;
}
zone 1.168.192.in-addr.arpa. {
primary 127.0.0.1;
key rndc-key;
}
}
> ddns-update-style interim
Interim works. But this is not the only option you need.
There has to be a key that allows updates, and "ddns updates on" etc
etc. Here are the relevant sections from a working system.
/etc/named.conf
include "/etc/rndc.key";
zone "whatever.za" in {
file "dyn/whatever.za";
type master;
allow-update { key "rndc-key"; };
};
zone "1.168.192.in-addr.arpa" in {
file "dyn/1.168.192.in-addr.arpa";
type master;
allow-update { key "rndc-key"; };
};
/etc/rndc.key
key "rndc-key" {
algorithm hmac-md5;
secret "some random stuff that I won't put up on a public list";
};
/etc/dhcpd.conf
ddns-update-style interim;
ddns-updates on;
include "/etc/rndc.key";
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.254;
default-lease-time 604800;
max-lease-time 2592000;
zone whatever.za. {
primary 127.0.0.1;
key rndc-key;
}
zone 1.168.192.in-addr.arpa. {
primary 127.0.0.1;
key rndc-key;
}
}
| < Previous | Next > |