named configuration error after updates to OS and ISPconfig

Discussion in 'Installation/Configuration' started by vestport, Mar 16, 2014.

  1. vestport

    vestport Member HowtoForge Supporter

    Hello,

    I just upgraded ISPCONFIG3 and some updates to the OS and as happens once in a while things went wrong. IP numbers and domain names are not actual!

    Trying to start named gets the following errors:


    Code:
    /etc/named.conf:29: open: /etc/named.conf.local: file not found
                                                               [FAILED]
    umount: /var/named/chroot/var/named: device is busy.
            (In some cases useful info about processes that use
             the device is found by lsof(8) or fuser(1))
    My named.conf is:

    Code:
    //
    // named.conf
    //
    // Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
    // server as a caching only nameserver (as a localhost DNS resolver only).
    //
    // See /usr/share/doc/bind*/sample/ for example named configuration files.
    //
    options {
            listen-on port 53 { any; };
            listen-on-v6 port 53 { any; };
            directory       "/var/named";
            dump-file       "/var/named/data/cache_dump.db";
            statistics-file "/var/named/data/named_stats.txt";
            memstatistics-file "/var/named/data/named_mem_stats.txt";
            allow-query     { any; };
            recursion yes;
    };
    logging {
            channel default_debug {
                    file "data/named.run";
                    severity dynamic;
            };
    };
    zone "." IN {
            type hint;
            file "named.ca";
    };
    include "/etc/named.conf.local";
    
    and named.conf.local is:

    Code:
    zone "mydomain1.com" {
            type master;
            allow-transfer {none;};
            file "/var/named/pri.mydomain1.com";
    };
    zone "mydomain2.com" {
            type master;
            allow-transfer {none;};
            file "/var/named/pri.mydomain2.com";
    };
    
    /var/named/pri.mydomain1.com is:

    Code:
    $TTL        3600
    @       IN      SOA     100.100.100.001. art.mydomain1.com. (
                            2013040202       ; serial, todays date + todays serial #
                            7200              ; refresh, seconds
                            540              ; retry, seconds
                            604800              ; expire, seconds
                            86400 )            ; minimum, seconds
    ;
    
    mail 3600 A        100.100.100.001
    mydomain1.com 86400      NS        ns2.mydomain1.com
    mydomain1.com. 86400 A        100.100.100.001
    mydomain1.com. 3600      MX    10   mail.mydomain1.com.
    mydomain1.com. 3600      NS        ns1.mydomain1.com.
    ns1 86400 A        100.100.100.001
    www 3600 A        100.100.100.001
    

    /var/named/pri.mydomain2.com is:

    Code:
    $TTL        3600
    @       IN      SOA     ns1.mydomain1.com. art.mydomain1.com. (
                            2013040202       ; serial, todays date + todays serial #
                            7200              ; refresh, seconds
                            540              ; retry, seconds
                            604800              ; expire, seconds
                            86400 )            ; minimum, seconds
    ;
    
    mydomain2.com 86400      NS        ns2.mydomain1.com
    mydomain2.com. 3600 A        100.100.100.001
    mydomain2.com. 3600      MX    10   mail.mydomain2.com.
    mydomain2.com. 3600      NS        ns1.mydomain1.com.
    mail 3600 A        100.100.100.001
    ns1 86400 A        100.100.100.001
    ns2 86400 A        100.100.100.001
    pop3 86400      CNAME        mail.mydomain1.com
    www 3600 A        100.100.100.001
    What am I missing here?

    Thanks in advance for any help!
     
  2. vestport

    vestport Member HowtoForge Supporter

    Problem SOLVED!!!!

    Apparently "/etc/sysconfig/named" gets overwritten during the OS update or ISPCONFIG3 update. Just needed to get back to basics and see how this was setup in "The Perfect Server".

    Comment out "ROOTDIR=/var/named/chroot" as follows at the end of the file:

    Code:
    "#ROOTDIR=/var/named/chroot"

    without the " of course and you'll be good!

    It always helps to save your original and updated named.conf's or any other important configs to get back to a working one. I usually keep these in /root somewhere.

    Hope this post saved you some time!:D



    Art
     
  3. Fermin

    Fermin New Member

    Thanks!!!!

    Thanks!!!!
    :)
     
  4. vestport

    vestport Member HowtoForge Supporter

    Glad it saved you some time! :)
     

Share This Page