Configuring DNS on a Linux Server

This section describes the procedure to configure Linux DNS server for ExtremeWireless Appliance IP addresses discovery.

  1. Configure the Linux DHCP (Dynamic Host Configuration Protocol) server to include DNS information. In the /etc/dhcp.conf file, add domain-name-servers and domain-name DHCP options.
    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;
    }
  2. Configure the Linux DNS server to include ExtremeWireless Appliance IP addresses.

    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
  3. Add the domain name to the DNS configuration file (/var/named/chroot/etc/named.conf).
    $// 
    // 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; };
  4. Confirm that DNS service is running.
    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
  5. Verify that the domain name is configured properly.
    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