named.conf duplicate localhost setting.

Discussion in 'Installation/Configuration' started by sirion, May 8, 2008.

  1. sirion

    sirion New Member

    Hi, Im having problemens regarding bind9 on fedora core 6 running ispconfig version 2.2.23.

    Whenever i change anything in a domain entry ispconfig builds a new /var/named/chroot/etc/named.conf with a duplicate entry zone "0.0.127.in-addr.arpa" file in it ...

    Anybody knows how to fix this ?

    May 8 12:35:16 ns4 named: /etc/named.conf:40: zone '0.0.127.in-addr.arpa': already exists previous definition: /etc/named.conf:23


    options {
    pid-file "/var/named/chroot/var/run/named/named.pid";
    directory "/var/named/chroot/var/named";
    auth-nxdomain no;
    /*
    * If there is a firewall between you and nameservers you want
    * to talk to, you might need to uncomment the query-source
    * directive below. Previous versions of BIND always asked
    * questions using port 53, but BIND 8.1 uses an unprivileged
    * port by default.
    */
    // query-source address * port 53;
    };

    //
    // a caching only nameserver config
    //
    zone "." {
    type hint;
    file "named.ca";
    };

    zone "0.0.127.in-addr.arpa" {
    type master;
    file "named.local";
    };


    zone "165.244.84.in-addr.arpa" {
    type master;
    file "pri.165.244.84.in-addr.arpa";
    };
    zone "154.92.82.in-addr.arpa" {
    type master;
    file "pri.154.92.82.in-addr.arpa";
    };
    zone "156.233.87.in-addr.arpa" {
    type master;
    file "pri.156.233.87.in-addr.arpa";
    };
    zone "0.0.127.in-addr.arpa" {
    type master;
    file "pri.0.0.127.in-addr.arpa";
    };

    zone "108.126.80.in-addr.arpa" {
    type master;
    file "pri.108.126.80.in-addr.arpa";
    };

    Thanks in advance for a reply
     
  2. edge

    edge Active Member Moderator

    I've had the same problem some time ago.
    When it's like this Bind will also fail to start (well in my case).
    I can not remember what I did to fix it, but I did make a note of it... Problem is that I can not find the note eather :/ (I'm moving house at the moment)

    When I do remember or find the note again , I will let you know a.s.a.p
     
  3. sirion

    sirion New Member

    edited /root/ispconfig/isp/confnamed.conf.master and removed the 127.***
     
  4. rayit

    rayit Member

    works for me!!

    :)

    problem solved!!!
     

Share This Page