Slave DNS issues

Discussion in 'Installation/Configuration' started by wadoo99, Jan 18, 2006.

  1. wadoo99

    wadoo99 New Member

    Hello everyone

    I have a FC4 installed flawlessly and ISP 2.12 with all available packages.

    I am using whois.cart to process the hosting packages, and it works great, except for:

    when the dns gets added...
    I get the following created:

    1) DNS
    1) DNS Slave.

    Now, as soon as it creates the DNS, bind stops working.

    When I try to restart bind it says:

    (already exists previous definition ...) for DNS Slave of the domain.tld.

    If I remove the Slave DNS and restart....its ok. So the problem lies at the Slave DNS.

    Any input?
  2. falko

    falko Super Moderator Howtoforge Staff

    What's the exact error message? What's in your named.conf?
  3. wadoo99

    wadoo99 New Member

    The exact error message is:

    named failed. The error was: Stopping named: [FAILED]

    Starting named:
    Error in named configuration:
    /etc/named.conf:42: zone '': already exists previous definition: /etc/named.conf:36
    contents of /etc/named.conf

    options {
    pid-file "/var/named/chroot/var/run/named/";
    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 "";

    zone "" {
    type master;
    file "named.local";

    zone "" {
    type master;
    file "";

    zone "" {
    type master;
    file "";

    zone "" {
    type slave;
    file "";
    masters {; };

  4. falko

    falko Super Moderator Howtoforge Staff

    Is my assumption right that you're running the primary and secondary DNS on the same server? You cannot have the same zone ( on one server as primary and secondary zone! Please remove the slave zone from ISPConfig and restart Bind.
  5. wadoo99

    wadoo99 New Member

    Thanks Falko,

    You're right. I will reconfigure another box for ns1 & ns2 seperate.
  6. t.roijers

    t.roijers Member

    Export slave zones


    Is it possible to export slave zones from ispconfig and import them into another ispconfig secondary dns server? what part do i need to export from ispconfig mysql database, and do i also need to copy the zone files or does ispconfig create them for me when i import the slave dns data?

  7. falko

    falko Super Moderator Howtoforge Staff

    If you don't want to end up with a messed up database, I highly recommend to create the slave zones manually in the ISPConfig web interface.

Share This Page