BIND 9 and debian

Discussion in 'Server Operation' started by unkn0wn, Apr 20, 2006.

  1. unkn0wn

    unkn0wn New Member

    I have few problems with bind :(

    i have two servers.
    212.60.11.1 -ns1.domain.com
    212.60.11.2 -ns2.domain.com

    in named.conf

    on slave i put:

    Code:
    
    zone "domain.com" {
            type slave;
            file "/etc/bind/db.domain.com";
            masters {192.168.2.1;};
    };
    
    and in master named.conf

    Code:
    
    zone "domain.com" in{
            type master;
            file "/etc/bind/db.domain.com";
    };
    
    
    i put zones:

    Code:
    $TTL 14400
    $ORIGIN domain.com.
    @       86400   IN      SOA     domain.com.    domain.com.    (
                                            2006031501
                                            86400
                                            7200
                                            3600000
                                            86400
                                            )
    
    domain.com.  86400   IN      NS      ns1.domain.com.
    domain.com.  86400   IN      NS      ns2.domain.com.
    
    domain.com.  14400   IN      A       212.60.11.2
    
    localhost.domain.com.       14400   IN      A       127.0.0.1
    
    domain.com. 14400   IN      MX      0       domain.com.
    
    mail    14400   IN      CNAME   ns1.domain.com.
    www     14400   IN      CNAME   ns2.domain.com.
    ftp     14400   IN      A       212.60.11.1
    ns1     14400   IN      A       212.60.11.1
    ns2     14400   IN      A       212.60.11.2
    
    when i use #dig @192.168.2.1 domain its look good.
    but when i use #dig @ns.domain.com domain
    no server could be reached???!!

    In domain registar i change dns servers and whois give me correct result
    what is a problem?
     
  2. unkn0wn

    unkn0wn New Member

    with DNS tools i get this

    Answer:
    No SOA records exist for ns1.domain.com. [Neg TTL=0 seconds]

    Details:
    ns2.domain.com. (an authoritative nameserver) says that there are no SOA records for ns1.domain.com.
    (ns1.domain.com. does exist, but has no SOA records).
     
  3. falko

    falko Super Moderator Howtoforge Staff

  4. unkn0wn

    unkn0wn New Member

    i solve that problem.
    But i haev another mail server is on dns1 machine.
    and sadi there is no MX records for domain?
    but there is



    mail.domain.co. 14400 IN MX 10 mail.domain.com.


    mail 14400 IN A 212.22.33.1

    is that ok
     
  5. falko

    falko Super Moderator Howtoforge Staff

    This allows you to accept mails for [email protected], for example. If you want to accept mails for domain.com, you should use

    Code:
    domain.com.  14400   IN      MX      10       mail.domain.com.
     
  6. unkn0wn

    unkn0wn New Member

    mail.domain. 14400 IN MX 10 ns1.domain.com.


    is this correct because my ns1 is on mail server machine.
     
  7. falko

    falko Super Moderator Howtoforge Staff

    Yes, but did you read my previous post?
     
  8. unkn0wn

    unkn0wn New Member

    yeps now :)

    its working tnx again falko.
     

Share This Page