DNS bind centos

Discussion in 'Server Operation' started by CyberTramp, Feb 22, 2012.

  1. CyberTramp

    CyberTramp New Member

    Hi all,
    I use this tutorial OS centos 6.2
    I try to create dns

    service named start
    Code:
    Starting named: 
    Error in named configuration:
    zone localhost/IN: has no NS records
    zone localhost/IN: not loaded due to errors.
    _default/localhost/IN: bad zone
    zone domen.org/IN: loaded serial 100
    zone 10.168.192.in-addr.arpa/IN: loaded serial 2012022206
                                                               [FAILED]
    /etc/named.conf
    Code:
    options {
       directory "/var/named";
       dump-file "/var/named/data/cache_dump.db";
       statistics-file "/var/named/data/named_stats.txt";
      // query-source address * port 53;
    };
    
    controls {
     inet 127.0.0.1 allow { localhost; } keys { "rndc-key"; };
    };
    zone "localhost" IN {
       type master;
       file "localhost.zone";
       allow-update { none; };
    };
    
    zone "domen.org" IN {
       type master;
       file "/var/named/domen.org.zone";
       allow-update { none; };
    };
    
    zone "10.168.192.in-addr.arpa" IN {
       type master;
       file "/var/named/10.168.192.rev";
       allow-update { none; };
    };
    
    include "/etc/rndc.key";
    localhost.zone
    Code:
    $TTL 86400
    @ IN SOA mail.domen.org. root.domen.org. (
    43 ; serial
    3H ; refresh
    15M ; retry
    1W ; expiry
    1D ) ; minimum
    
    IN NS mail.domen.org.
    IN A 127.0.0.1
    Any idea that it can be ?
     

Share This Page