Hello everyone,
After I tried options below to generate dynamic host names, I cannot get rid of their effect anymore! Tried to stop both DHCPd and NAMEd, trash lease and *.jnl files but still getting hostnames like dhcp-10-20-30-40.DOMAIN.COM
Moreover, nslookup for both — generated (dhcp-10-20-30-40.DOMAIN.COM) and manually assigned (wifi-airport.DOMAIN.COM) returns me valid address!
Here is the current content of /usr/local/etc/dhcpd.conf.
After I tried options below to generate dynamic host names, I cannot get rid of their effect anymore! Tried to stop both DHCPd and NAMEd, trash lease and *.jnl files but still getting hostnames like dhcp-10-20-30-40.DOMAIN.COM
Code:
ddns-hostname = pick (option fqdn.hostname, option host-name, concat ("dhcp-", binary-to-ascii (10, 8, "-", leased-address)));
option host-name = config-option server.ddns-hostname;
Moreover, nslookup for both — generated (dhcp-10-20-30-40.DOMAIN.COM) and manually assigned (wifi-airport.DOMAIN.COM) returns me valid address!
Here is the current content of /usr/local/etc/dhcpd.conf.
Code:
subnet 10.20.30.0 netmask 255.255.255.0 {
# We need static declarations only.
range 10.20.30.189 10.20.30.189;
authoritative;
ddns-update-style interim;
option broadcast-address 10.20.30.255;
option domain-name "DOMAIN.COM";
option domain-name-servers ns1.DOMAIN.COM, ns2.DOMAIN.COM;
option netbios-scope "";
option routers 10.20.30.1;
update-static-leases on;
group {
use-host-decl-names on;
key DHCP_UPDATER {
algorithm HMAC-MD5;
secret <SECRET-GOES-HERE-W/O-QUOTES>;
};
zone DOMAIN.COM. {
primary 127.0.0.1;
key DHCP_UPDATER;
}
zone 30.20.10.in-addr.arpa {
primary 127.0.0.1;
key DHCP_UPDATER;
}
default-lease-time 3600;#14400
max-lease-time 7200;#28800
# wireless points
host wifi-airport { hardware ethernet aa:bb:cc:dd:ee:ff; fixed-address 10.20.30.40; }
… other definitions …
}
deny unknown-clients;
}