Thread: DNS bind centos
View Single Post
  #1  
Old 22nd February 2012, 13:35
CyberTramp CyberTramp is offline
Junior Member
 
Join Date: Feb 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default DNS bind centos

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 ?
Reply With Quote
Sponsored Links