Install and configure DNS server in Ubuntu 16.04 LTS

19 Responses

  1. Van Pham says:

    Thanks for this guide but i found the problems when i do following your.

    When i check : dig -x 127.0.0.1, or : dig pri.ostechnix.lan
    The server i see if diffirence
    SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Fri Dec 09 17:40:03 ICT 2016
    ;; MSG SIZE rcvd: 132

    That’s all wrong the IP ADDRESS. (I’m a newbie using ubuntu)
    Any help ! Tks.

    • SK says:

      If you have followed the exact steps, you shouldn’t have got this message. Did you add the DNS server IP in your /etc/network/interfaces file? If not, add it and try again. It should work. I have checked this guide multiple times on my local network. It worked every time as I explained.

  2. Edivaldo Santos says:

    I tried it once it worked properly..thanks But i have a question.. Where should i add the secondary DNS zone. I’m trying to use primary,secondary, and client in the same server. I couldn’t figure out if your instructions for secondary DNS zone were to add it on sudo nano /etc/bind/named.conf.local where primary is installed or if its has to be installed in another machine? please help me with that, and if you can add some tips MX records configuration. thanks.

  3. Oscar says:

    Hi, a question this steps is only for local network or this found for a real domain…??
    Thanks for you reply and very nice tutorial.

  4. John Cunningham says:

    everything worked fine up until i did a NSLOOKUP, guess you forgot once small step:

    the step to edit /etc/resolv.conf file, and add DNS server IP address.

    sudo nano /etc/resolv.conf
    nameserver 192.168.1.200

    please add to your tutorial, thanks for the tutorial, everything else worked fine.

  5. Archie Murrell says:

    Great tutorial SK
    I got primary DNS working on a server because of the this very informative tutorial.

  6. Aditya Wibowo says:

    Hi, thank you for the tutorial
    I have a question, i want to build a mail server just for my campus homework, can i just build 1 DNS to operate the mail server?
    and if i need more than 1 DNS, is it mean i need another OS to make the 2nd DNS?

  7. Brian says:

    Here, for.ostechnix.lan is the forward zone file. rev.ostechnix.lan is the reverse zone files. And 192.168.1.202 is the IP address of secondary DNS server. We do this because, the secondary DNS will start to fetch the queries if primary server is down. Shouldn’t this line say 192.168.1.201 because 202 is not the secondary dns according to opening statement.

    Secondary DNS server:

    Operating system : Ubuntu 16.04 LTS 64 bit server
    Hostname : sec.ostechnix.lan
    IP address : 192.168.1.201/24

  8. Bennio says:

    Thank you for the tuto.
    I have a problem, client can ping server address but can’t ping with domain name, when I use dig, I got the message : (connection timed out: no server could be reach )

  9. suresh says:

    i installed with your insruction working well in local network i want to use as puplic dns server i have ns1.mydomain.com with a record point with public ip how to do that kindly help me we are internet service provider

  10. Akhil says:

    I’ve followed the step by step of the document but changed the names and addresses wherever necessary. After dig pri.*****.lan , my output is not showing the answer. It says answer : 0 . But in the output of yours the answer :1

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.