HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   DNS bind centos (http://www.howtoforge.com/forums/showthread.php?t=56277)

CyberTramp 22nd February 2012 12:35

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 ?


All times are GMT +2. The time now is 02:12.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.