Configuring basic DNS service with bind

From Notes_Wiki
Revision as of 08:34, 11 December 2014 by Saurabh (talk | contribs)

<yambe:breadcrumb self="Basic bind configuration">Bind DNS server configuration | Bind DNS</yambe:breadcrumb>

Configuring basic DNS service with bind

  1. yum -y install bind bind-utils
  2. Edit /etc/named.conf and append following lines:
    zone "rekallsoftware.com." IN {
    type master;
    file "rekallsoftware.com.forward";
    };
  3. In '/etc/named.conf' make following modifications:
    1. listen-on port 53 {127.0.0.1; any;};
    2. allow-query {localhost; 10.0.0.0/8; 172.16.0.0/12; 192.168.0.0/16;};
    3. dnssec-enable no;
    4. dnssec-validation no;
  4. Go to /var/named and create rekallsoftware.com.forward with contents similar to:
    $TTL 3600
    @ SOA ns.rekallsoftware.com. root.rekallsoftware.com. (1 15m 5m 30d 1h)
    NS ns.rekallsoftware.com.
    A 10.1.2.3
    ns IN A 10.1.1.1
    www IN A 10.1.2.3
  5. Try "nslookup rekallsoftware.com 127.0.0.1"
  6. Try "nslookup www.google.co.in 127.0.0.1". This will only work if machine has direct access to Internet at least for outgoing UDP port 53.


<yambe:breadcrumb self="Basic bind configuration">Bind DNS server configuration | Bind DNS</yambe:breadcrumb>