Issues with bind

Discussion in 'General' started by Norman, Oct 18, 2006.

  1. Norman

    Norman Member HowtoForge Supporter

    My syslog spams these messages when bind restarts (fails).

    Oct 18 04:09:12 bigfoot named[26716]: starting BIND 9.2.4 -u bind -t /var/lib/named
    Oct 18 04:09:12 bigfoot named[26716]: using 1 CPU
    Oct 18 04:09:12 bigfoot named[26716]: loading configuration from '/etc/bind/named.conf'
    Oct 18 04:09:12 bigfoot named[26716]: /etc/bind/named.conf:32: zone '0.0.127.in-addr.arpa': already exists
    Oct 18 04:09:12 bigfoot named[26716]: loading configuration: failure
    Oct 18 04:09:12 bigfoot named[26716]: exiting (due to fatal error)

    My named config looks as following:
    zone "." {
    type hint;
    file "db.root";
    };

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

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


    If I comment or remove :
    zone "0.0.127.in-addr.arpa" {
    type master;
    file "db.local";
    };

    bind starts fine, but trouble returns everytime ispconfig re-generates named.conf .
    Does anyone have an idea on how I can fix this?
     
  2. Norman

    Norman Member HowtoForge Supporter

    I found the issue 2 seconds after.
    This could count as a critical bug.

    If the user sets a domain IP address as 127.0.0.1 , ispconfig will attempt to create the zone for 127.0.0.1 when the file pri.0.0.127.in-addr.arpa is created and bind will fail to start.

    Behaviour is repeatable with latest version of ispconfig (2.2.7).
     
    Last edited: Oct 18, 2006
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    I dont see this as a critical bug.

    1) Users can not create DNS records, only the admin can do this.
    2) The user can not enter own IP addresses for websites, so the automatic DNS creation feature can not produce this type of DNS records when the admin has not entered the IP 127.0.0.1 in the server settings.
    3) Only resellers where the admin has activated the DNS-Manager are able to create DNS-Records.
     
  4. Norman

    Norman Member HowtoForge Supporter

    Thing is, I havent entered 127.0.0.1 as an ip in server-settings.
    I'm using a stripped-down reseller account without any space and traffic to hand out as DNS-manager for customers who need to be able to host/change their own zones.

    If a reseller could inadvertly break the config, I dont call that very secure.
     
  5. falko

    falko Super Moderator Howtoforge Staff

    What sense does it make to use 127.0.0.1? If you host web sites on that IP address, they cannot be accessed from outside...
    But the reseller cannot access the server settings section, and if you put in the right IP addresses, then there's no problem.
     

Share This Page