This section describes the procedure to configure Linux DNS server for ExtremeWireless Appliance IP addresses discovery.
subnet 10.2.221.0 netmask 255.255.255.0 { range 10.2.221.30 10.2.221.130; option slp-directory-agent true 10.2.221.2; option subnet-mask 255.255.255.0; option domain-name-servers 192.168.6.2; option domain-name "Availability-221.com"; option routers 10.2.221.1; default-lease-time 40000; }
Create a file for the domain name configured in dhcp.conf (in this example, "Availability-221.com") as follows at /var/named/chroot/var/named.
The name of the file should be the following: /var/named/chroot/var/named/named.Availability-221.com
/var/named/chroot/var/named/named.Availability-221.com $TTL 86400 @ IN SOA ns1.availability-221.com. hostmaster.availability-221.com. ( 2 ; serial # 28800 ; refresh 14400 ; retry 3600000 ; expire 86400 ; ttl ) IN NS ns1.availability-221.com. Controller IN A 10.2.221.2
$// // a caching only nameserver config // options { /* * If there is a firewall between you and nameservers you want * to talk to, you might need to uncomment the query-source * directive below. Previous versions of BIND always asked * questions using port 53, but BIND 8.1 uses an unprivileged * port by default. */ // query-source address * port 53; version "Bind"; recursion no; directory "/var/named"; }; zone "Availability-221.com" { type master; file "named.Availability-221.com"; }; zone "0.0.127.in-addr.arpa" { type master; file "named.local"; allow-update { none; };
ps -ef | grep named named 10023 1 0 Feb18 ? 00:00:00 /usr/sbin/named -u named -t /var/named/chroot root 7687 7531 0 22:14 pts/982 00:00:00 grep named
nslookup Controller.Availability-221.com Server: 127.0.0.1 Address: 127.0.0.1#53 Name: Controller.Availability-221.com Address: 10.2.221.2