• chuchin

    Thanks a lot. . wonderful article . it works exactly .

  • chuchin

    Thanks a lot. . wonderful article . it works exactly .

  • Ibrahim

    Your tutorials are way high in aleague less competed,they hit on the bulls eye,thanks so so much and infact they are simple to the letter

  • Ibrahim

    Your tutorials are way high in aleague less competed,they hit on the bulls eye,thanks so so much and infact they are simple to the letter

  • sakar

    mine says #.sakar.com bad ownername, i gave name as
    HOSTNAME = dns1.sakar.com asu said to.. what is the problem?? is my name bad lol

  • sakar

    mine says #.sakar.com bad ownername, i gave name as
    HOSTNAME = dns1.sakar.com asu said to.. what is the problem?? is my name bad lol

  • Guest

    [root@rpidvoproxy rpidavao]#
    service named start
    Starting named:
    Error in named configuration:
    zone rpidvoproxy.proxydavao.com/IN: NS ‘rpidvoproxy.proxydavao.com’ has no address records (A or AAAA)
    zone rpidvoproxy.proxydavao.com/IN: not loaded due to errors.
    _default/rpidvoproxy.proxydavao.com/IN: bad zone
    zone localhost/IN: loaded serial 0
    zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
    zone 172.11.1.in-addr.arpa/IN: loaded serial 0
    zone 0.in-addr.arpa/IN: loaded serial 0
    [FAILED]
    [root@rpidvoproxy rpidavao]#

    hello author, can you help what this error?

    Thanks

  • Guest

    [root@rpidvoproxy rpidavao]#
    service named start
    Starting named:
    Error in named configuration:
    zone rpidvoproxy.proxydavao.com/IN: NS ‘rpidvoproxy.proxydavao.com’ has no address records (A or AAAA)
    zone rpidvoproxy.proxydavao.com/IN: not loaded due to errors.
    _default/rpidvoproxy.proxydavao.com/IN: bad zone
    zone localhost/IN: loaded serial 0
    zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
    zone 172.11.1.in-addr.arpa/IN: loaded serial 0
    zone 0.in-addr.arpa/IN: loaded serial 0
    [FAILED]
    [root@rpidvoproxy rpidavao]#

    hello author, can you help what this error?

    Thanks

  • Anthony Gijapon

    hello, I got this error message.

    pls. help how to fix this error.

    My configuration are

    eth0 : DYNAMIC IP

    eth1:
    IP: 172.11.1.56
    SM: 255.255.255.0
    DG: 0.0.0.0
    DNS: 172.11.1.56

    [root@rpidvoproxy rpidavao]# service named start
    Starting named:
    Error in named configuration:
    zone rpidvoproxy.proxydavao.com/IN: NS ‘rpidvoproxy.proxydavao.com’ has no address records (A or AAAA)
    zone rpidvoproxy.proxydavao.com/IN: not loaded due to errors.
    _default/rpidvoproxy.proxydavao.com/IN: bad zone
    zone localhost/IN: loaded serial 0
    zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
    zone 172.11.1.in-addr.arpa/IN: loaded serial 0
    zone 0.in-addr.arpa/IN: loaded serial 0
    [FAILED]
    [root@rpidvoproxy rpidavao]#

    • krizna

      add a host entry in /etc/hosts as below and try again

      172.11.1.56 rpidvoproxy.proxydavao.com

      • Anthony Gijapon

        this is my host..
        nano /etc/hosts

        27.0.0.1 localhost.localdomain localhost
        ::1 rpidvoproxy.proxydavao.com rpidvoproxy localhost6.localdomain6 localhost6
        172.11.1.56 rpidvoproxy.proxydavao.com

        • Anthony Gijapon

          hello krizna, after of my some modification at /etc/named.rfc1912.zones.

          afterwards, I come up a little miss of error.

          pls. give some advice..

          [root@rpidvoproxy rpidavao]# service named start
          Starting named:
          Error in named configuration:
          /etc/named.rfc1912.zones:15: ‘}’ expected near ‘”‘
          [FAILED]
          [root@rpidvoproxy rpidavao]#

          • krizna

            it seams you missed close ” } ” braces .

          • Anthony Gijapon

            Yes, I know about the braces, like open and close braces..
            but the error way of pointing is in my “named.rfc1912.zones”

            please tell me where brace ang missing up?

            need your help…

            zone “proxydavao.com” IN {

            type master;

            “file “forward.zone”;

            allow-update { none; };

            };

            zone “localhost” IN {

            type master;

            file “named.localhost”;

            allow-update { none; };

            };

            zone
            “1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa”
            IN {

            type master;

            file “named.loopback”;

            allow-update { none; };

            };

            zone “1.11.172.in-addr.arpa”
            IN {

            type master;

            file “reverse.zone”;

            allow-update { none; };

            };

            zone “0.in-addr.arpa” IN {

            type master;

            file “named.empty”;

            allow-update { none; };

            };

          • krizna

            "file "forward.zone";

            remove the quotation from the beginning of the line

          • Anthony Gijapon

            thanks for that little miss-up… I thought I almost got to the top… but after removing that quotation.

            then, service named start. I got this back error…

            [root@rpidvoproxy rpidavao]# service named start
            Starting named:
            Error in named configuration:
            zone proxydavao.com/IN: NS ‘rpidvoproxy.proxydavao.com’ has no address records (A or AAAA)
            zone proxydavao.com/IN: not loaded due to errors.
            _default/proxydavao.com/IN: bad zone
            zone localhost/IN: loaded serial 0
            zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
            zone 1.11.172.in-addr.arpa/IN: loaded serial 0
            zone 0.in-addr.arpa/IN: loaded serial 0
            [FAILED]
            [root@rpidvoproxy rpidavao]#

          • krizna

            replace

            dns1 IN A 172.11.1.56

            into

            rpidvoroxy IN A 172.11.1.56
            in your forward.zone file

          • Anthony Gijapon

            hellow krizna… finally it run perfectly…
            thanks for the help..
            your amazing and great mod…

        • krizna

          check forward.zone file .. Step 8

          rpidvoproxy IN A 172.11.1.56

          • Anthony Gijapon

            still same with your’s

            $TTL 1D
            @ IN SOA rpidvoproxy.proxydavao.com. root.rpidvoproxy.proxydavao.com. (
            0 ; serial
            1D ; refresh
            1H ; retry
            1W ; expire
            3H ) ; minimum
            IN NS rpidvoproxy.proxydavao.com.
            dns1 IN A 172.11.1.56

          • krizna

            replace

            dns1 IN A 172.11.1.56

            into

            rpidvoproxy IN A 172.11.1.56

  • Anthony Gijapon

    hello, I got this error message.

    pls. help how to fix this error.

    My configuration are

    eth0 : DYNAMIC IP

    eth1:
    IP: 172.11.1.56
    SM: 255.255.255.0
    DG: 0.0.0.0
    DNS: 172.11.1.56

    [root@rpidvoproxy rpidavao]# service named start
    Starting named:
    Error in named configuration:
    zone rpidvoproxy.proxydavao.com/IN: NS ‘rpidvoproxy.proxydavao.com’ has no address records (A or AAAA)
    zone rpidvoproxy.proxydavao.com/IN: not loaded due to errors.
    _default/rpidvoproxy.proxydavao.com/IN: bad zone
    zone localhost/IN: loaded serial 0
    zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
    zone 172.11.1.in-addr.arpa/IN: loaded serial 0
    zone 0.in-addr.arpa/IN: loaded serial 0
    [FAILED]
    [root@rpidvoproxy rpidavao]#

    • add a host entry in /etc/hosts as below and try again

      172.11.1.56 rpidvoproxy.proxydavao.com

      • Anthony Gijapon

        this is my host..
        nano /etc/hosts

        27.0.0.1 localhost.localdomain localhost
        ::1 rpidvoproxy.proxydavao.com rpidvoproxy localhost6.localdomain6 localhost6
        172.11.1.56 rpidvoproxy.proxydavao.com

        • Anthony Gijapon

          hello krizna, after of my some modification at /etc/named.rfc1912.zones.

          afterwards, I come up a little miss of error.

          pls. give some advice..

          [root@rpidvoproxy rpidavao]# service named start
          Starting named:
          Error in named configuration:
          /etc/named.rfc1912.zones:15: ‘}’ expected near ‘”‘
          [FAILED]
          [root@rpidvoproxy rpidavao]#

          • it seams you missed close ” } ” braces .

          • Anthony Gijapon

            Yes, I know about the braces, like open and close braces..
            but the error way of pointing is in my “named.rfc1912.zones”

            please tell me where brace ang missing up?

            need your help…

            zone “proxydavao.com” IN {

            type master;

            “file “forward.zone”;

            allow-update { none; };

            };

            zone “localhost” IN {

            type master;

            file “named.localhost”;

            allow-update { none; };

            };

            zone
            “1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa”
            IN {

            type master;

            file “named.loopback”;

            allow-update { none; };

            };

            zone “1.11.172.in-addr.arpa”
            IN {

            type master;

            file “reverse.zone”;

            allow-update { none; };

            };

            zone “0.in-addr.arpa” IN {

            type master;

            file “named.empty”;

            allow-update { none; };

            };

          • "file "forward.zone";

            remove the quotation from the beginning of the line

          • Anthony Gijapon

            thanks for that little miss-up… I thought I almost got to the top… but after removing that quotation.

            then, service named start. I got this back error…

            [root@rpidvoproxy rpidavao]# service named start
            Starting named:
            Error in named configuration:
            zone proxydavao.com/IN: NS ‘rpidvoproxy.proxydavao.com’ has no address records (A or AAAA)
            zone proxydavao.com/IN: not loaded due to errors.
            _default/proxydavao.com/IN: bad zone
            zone localhost/IN: loaded serial 0
            zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
            zone 1.11.172.in-addr.arpa/IN: loaded serial 0
            zone 0.in-addr.arpa/IN: loaded serial 0
            [FAILED]
            [root@rpidvoproxy rpidavao]#

          • replace

            dns1 IN A 172.11.1.56

            into

            rpidvoroxy IN A 172.11.1.56
            in your forward.zone file

          • Anthony Gijapon

            hellow krizna… finally it run perfectly…
            thanks for the help..
            your amazing and great mod…

        • check forward.zone file .. Step 8

          rpidvoproxy IN A 172.11.1.56

          • Anthony Gijapon

            still same with your’s

            $TTL 1D
            @ IN SOA rpidvoproxy.proxydavao.com. root.rpidvoproxy.proxydavao.com. (
            0 ; serial
            1D ; refresh
            1H ; retry
            1W ; expire
            3H ) ; minimum
            IN NS rpidvoproxy.proxydavao.com.
            dns1 IN A 172.11.1.56

          • replace

            dns1 IN A 172.11.1.56

            into

            rpidvoproxy IN A 172.11.1.56

  • when I run nslookup 192.168.1.* ( * being the last 3 digits in my server’s internal IP)
    I get the following error
    ** server can’t find *.1.168.192.in.addr.arpa.: NXDOMAIN
    Help?

    • krizna

      Check your “reverse.zone” file .. you should have an entry for your server IP . Eg -> if your server ip = 192.168.1.2 and hostname = dns1.krizna.com . Entry should be like below .. refer STEP 9

      2 IN PTR dns1.krizna.com.
      restart named service and try again

  • Scott Cilley

    when I run nslookup 192.168.1.* ( * being the last 3 digits in my server’s internal IP)
    I get the following error
    ** server can’t find *.1.168.192.in.addr.arpa.: NXDOMAIN
    Help?

    • Check your “reverse.zone” file .. you should have an entry for your server IP . Eg -> if your server ip = 192.168.1.2 and hostname = dns1.krizna.com . Entry should be like below .. refer STEP 9

      2 IN PTR dns1.krizna.com.
      restart named service and try again

  • Javier Pacheco

    Looks to me that the dns forwarders are missing on the named.conf file.

  • Javier Pacheco

    Looks to me that the dns forwarders are missing on the named.conf file.

  • Aho

    Do you have a guide for other DNS server, say, PowerDNS or MaraDNS?

  • Aho

    Do you have a guide for other DNS server, say, PowerDNS or MaraDNS?

  • Anthony

    Hello Krizna.

    Can you share DSN Server with chroot installation.

    thanks.

  • Anthony

    Hello Krizna.

    Can you share DSN Server with chroot installation.

    thanks.

  • ashwin

    worked perfectly…

  • ashwin

    worked perfectly…

  • camara

    Hi good tuto please i want that you can post the configuration of dual stack dns with IPv4 and IPv6 and DHCPv6 with IPv6

  • camara

    Hi good tuto please i want that you can post the configuration of dual stack dns with IPv4 and IPv6 and DHCPv6 with IPv6

  • Cheyne

    I don’ normally comment on blogs, but i wanted to say thank you. I am not new to linux but I am new to DNS. This is the only tutorial that I found out of all of them that worked. Thanks a lot

  • Cheyne

    I don’ normally comment on blogs, but i wanted to say thank you. I am not new to linux but I am new to DNS. This is the only tutorial that I found out of all of them that worked. Thanks a lot

  • Bharat Lalwani

    Hi Krizna,
    I am too much impressed with your site, have learned some topic with clear concept.
    I would like to know that which colorful editor your are using to display commands or files output.
    Please tell me

  • Bharat Lalwani

    Hi Krizna,
    I am too much impressed with your site, have learned some topic with clear concept.
    I would like to know that which colorful editor your are using to display commands or files output.
    Please tell me

  • Xiera

    I can’t install DNS server,and I really was troubled,after doing the chgrp command,it turns out failed.

  • Xiera

    I can’t install DNS server,and I really was troubled,after doing the chgrp command,it turns out failed.

  • rica.estella

    i really don’t get? oh my God

  • rica.estella

    i really don’t get? oh my God

  • john

    hello i got this after following all the steps up to step 11.

    [root@localhost named]# service named start
    Starting named:
    Error in named configuration:
    /etc/named.conf:45: zone ‘centos.local’: already exists previous definition: /etc/named.rfc1912.zones:13
    /etc/named.conf:51: zone ‘1.168.192.in-addr.arpa’: already exists previous definition: /etc/named.rfc1912.zones:31
    [FAILED]

    any ideas why it failed ?

  • john

    hello i got this after following all the steps up to step 11.

    [root@localhost named]# service named start
    Starting named:
    Error in named configuration:
    /etc/named.conf:45: zone ‘centos.local’: already exists previous definition: /etc/named.rfc1912.zones:13
    /etc/named.conf:51: zone ‘1.168.192.in-addr.arpa’: already exists previous definition: /etc/named.rfc1912.zones:31
    [FAILED]

    any ideas why it failed ?

  • Pingback: آموزش نصب و کانفیگ bind dns()

  • sundary

    we has been configured dns already and is working but when i shutdown VMWare and open again but dns is not working and restart serive dns already. Why can tell me about this problem?

  • sundary

    we has been configured dns already and is working but when i shutdown VMWare and open again but dns is not working and restart serive dns already. Why can tell me about this problem?

  • Hemlata Hemlata

    hi could anyone help me with dns configuration. am getting this error
    dns_master_load: nam.net.reverse:1 extra input text
    nam.net.reverse:2 extra input text
    nam.net.reverse:4 :SOA record not at top of zone (=.1.168.192.in-addr.arpa) loading failed

  • Hemlata Hemlata

    hi could anyone help me with dns configuration. am getting this error
    dns_master_load: nam.net.reverse:1 extra input text
    nam.net.reverse:2 extra input text
    nam.net.reverse:4 :SOA record not at top of zone (=.1.168.192.in-addr.arpa) loading failed

  • Captain

    I want to say a big thank to who wrote this, this was really detailed.. I was able to get this working just following the exact instructions and it worked. This was the best I saw for all dns installation.

  • Captain

    I want to say a big thank to who wrote this, this was really detailed.. I was able to get this working just following the exact instructions and it worked. This was the best I saw for all dns installation.

  • melody

    can I have the steps in setting up active directory in centos 6.5?

  • Surendra Bhadkariya

    hi please help me after run command in centos 6.7 “service named start” then showing the error in terminal “/etc/named.conf:24: ‘dnssec-enable’ redefined near ‘dnssec-enable'”