KB: DNS Configuration on Ubuntu

Configuration guide for DNS on Ubuntu Linux.

Contents

Overview

This article assumes that you already have bind installed on your system.

Configuration

1. In /etc/bind/named.conf.options add the following:

  forwarders {
    205.171.3.65;
    205.171.2.65;
  };

2. Edit /etc/resolv.conf:

 
  search zunisoft.com
  nameserver 192.168.16.1

3. Add to /etc/bind/named.conf:


  zone "zunisoft.com" {
    type master;
    file "/etc/bind/db.zunisoft.com";
  };

  zone "16.168.192.in-addr.arpa" {
    type master;
    file "/etc/bind/db.16.168.192";
  };

4. Add new file /etc/bind/db.zunisoft.com:


  ; BIND data file for zunisoft.com zone
  ;

  $TTL    86400
  @       IN      SOA     websvcs.zunisoft.com. root.localhost. (
          2006012103      ; serial
          28800           ; refresh, seconds
          7200            ; retry, seconds
          604800          ; expire, seconds
          86400 )         ; minimum, seconds
  ;
          NS websvcs.zunisoft.com.;
          NS ns1.zunisoft.com
  ;
          MX 10 mail.zunisoft.com.;

  zunisoft.com.   A 192.168.16.1
  websvcs         A 192.168.16.1
  www             A 192.168.16.1
  mail            A 192.168.16.1
  ns1             A 192.168.16.1

  krdavis-desktop A 192.168.16.10
  krdavis-laptop  A 192.168.16.11
  kjdavis-desktop A 192.168.16.12

  wap             A 192.168.16.20

5. Add new file /etc/bind/db.16.168.192:


  ; BIND reverse data file for zunisoft.com
  ;

  $TTL    604800
  @       IN      SOA     websvcs.zunisoft.com. root.localhost. (
          2006012103      ; serial
          28800           ; refresh, seconds
          7200            ; retry, seconds
          604800          ; expire, seconds
          86400 )         ; minimum, seconds
  ;
          NS websvcs.zunisoft.com.;
          NS ns1.zunisoft.com.;

  1               PTR     zunisoft.com.
  10              PTR     krdavis-desktop.zunisoft.com.
  11              PTR     krdavis-laptop.zunisoft.com.
  12              PTR     kjdavis-desktop.zunisoft.com.
  20              PTR     wap.zunisoft.com.

6. Edit /etc/hosts:


  127.0.0.1       localhost.localdomain   localhost
  192.168.16.1    websvcs.zunisoft.com    websvcs

7. Edit /etc/hostname:

websvcs.zunisoft.com

8. Windows boxes need to use static IP and need to have “DNS suffix for this connection” set to “zunisoft.com” set under the Advanced TCP/IP settings tab for the active network connection.

To Top

Please follow and like us:

Leave a Reply

Your email address will not be published. Required fields are marked *