DNS question

Discussion in 'Server Operation' started by Mr Blek, Jun 23, 2007.

  1. Mr Blek

    Mr Blek New Member

    I have up to 6 ip addresses available on my root server. Is it possible to have one of these ips configured as my slave dns on the same box as the primary? If so, is there a guide I can follow anywhere?
     
  2. falko

    falko Super Moderator ISPConfig Developer

    No, this doesn't work because you can have just one DNS server installed on your system, and in that one DNS server you can't specify one and the same zone as master and slave.
    Even if it was possible, I don't see the point. If your server crahses, both the master and slave are gone. But the purpose of a slave server is to have a fallback if the primary isn't available.
     
  3. commentator

    commentator Member

    on Plesk servers is this working

    would be nice if this is also posible on ispconfig so I can easy move from Plesk to ispconfig
     
  4. falko

    falko Super Moderator ISPConfig Developer

    I doubt that (although I don't know Plesk). Maybe the interface tells you this, but did you check what happens behind the scenes?
     
  5. commentator

    commentator Member

    Code:
    named.conf
    
    zone "domain.com" {
            type master;
            file "domain.com";
            allow-transfer {
                    <ip ns1>;
                    <ip ns2>;
                    common-allow-transfer;
            };
    };
    

    Code:
    /var/named/run-root/var/domain.com
    
    $TTL    86400
    
    @       IN      SOA     ns1.domain.com. postmaster.domain.com (
                            1217105890      ; Serial
                            10800   ; Refresh
                            3600    ; Retry
                            604800  ; Expire
                            86400 ) ; Minimum
    
    domain.com.             IN NS   ns1.domain.com.
    domain.com.             IN NS   ns2.domain.com.
    domain.com.             IN A    <ip>
    ns1.domain.com.                 IN A    <ip1>
    ns2.domain.com.                 IN A    <ip2>
    
     
  6. falko

    falko Super Moderator ISPConfig Developer

    This is a master only, but not master and slave at the same time.
     
  7. commentator

    commentator Member

Share This Page