#1  
Old 5th December 2011, 21:35
r4faga r4faga is offline
Member
 
Join Date: Jul 2011
Posts: 48
Thanks: 0
Thanked 1 Time in 1 Post
Default Error on make Dns.

Hello...

I created dns for my site and registred on my domain this dns (ns1 and ns2), but when i restart named, show me this error:

Error in named configuration:
zone xxxxx.xxx.xx/IN: NS 'ns1.xxxxx.xxx.xx' has no address records (A or AAAA)
zone xxxxx.xxx.xx/IN: NS 'ns2.xxxxx.xxx.xx' has no address records (A or AAAA)
zone xxxxx.xxx.xx/IN: not loaded due to errors.
_default/xxxxx.xxx.xx/IN: bad zone

[FAIL]



i use centos 6 with ispconfig i was following a tutorial. perfec server with centos 6...

Can any help?
Reply With Quote
Sponsored Links
  #2  
Old 5th December 2011, 23:06
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,804
Thanks: 840
Thanked 5,613 Times in 4,424 Posts
Default

Add the ns1 and ns2 DNS A-Records to the zone.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 5th December 2011, 23:12
r4faga r4faga is offline
Member
 
Join Date: Jul 2011
Posts: 48
Thanks: 0
Thanked 1 Time in 1 Post
Default

Till tanks, i have it look it.

A mydomain.com. 1.2.3.4 0
A mail 1.2.3.4 0
A www 1.2.3.4 0
MX mydomain.com. mydomain.com. 10
NS mydomain.com. mydomain.com. 0
NS mydomain.com. mydomain.com. 0

(my domain.com is my domain and 1.2.3.4 is my ip)

Till i saw on named/data/named.run this: working directory is not writable, maybe this error dont have to make a zones????
Reply With Quote
  #4  
Old 20th August 2012, 17:26
ijujym ijujym is offline
Junior Member
 
Join Date: Aug 2012
Posts: 10
Thanks: 2
Thanked 1 Time in 1 Post
Default Same error for Centos 6.2

What was your solution? I have same error after clean Centos 6.2 install. Haven't found any related info in Ispconfig documentation for this.

the
Code:
service named restart
outputs:
Code:
Stopping named:                                            [  OK  ]
Starting named: 
Error in named configuration:
zone mydomain.com/IN: NS 'ns1.mydomain.com' has no address records (A or AAAA)
zone mydomain.com/IN: NS 'ns2.mydomain.com' has no address records (A or AAAA)
zone mydomain.com/IN: not loaded due to errors.
_default/mydomain.com/IN: bad zone
                                                           [FAILED]
The bind configuration seams to be the same as in tutorial

/etc/named.conf
Code:
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
options {
        listen-on port 53 { any; };
        listen-on-v6 port 53 { any; };
        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
        allow-query     { any; };
        recursion yes;
};
logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};
zone "." IN {
        type hint;
        file "named.ca";
};
include "/etc/named.conf.local";
/etc/named.conf.local
Code:
zone "mydomain.com" {
        type master;
        allow-transfer {none;};
        file "/var/named/pri.mydomain.com";
};
/var/named/pri.mydomain.com
Code:
$TTL        3600
@       IN      SOA     ns1.mydomain.com. email.gmail.com. (
                        2012081901       ; serial, todays date + todays serial #
                        7200              ; refresh, seconds
                        540              ; retry, seconds
                        604800              ; expire, seconds
                        86400 )            ; minimum, seconds
;

infolabs.com.ua. 3600 A        1.2.3.4
infolabs.com.ua. 3600      MX    10   mail.mydomain.com.
infolabs.com.ua. 3600      NS        ns1.mydomain.com.
infolabs.com.ua. 3600      NS        ns2.mydomain.com.
mail 3600 A        1.2.3.4
www 3600 A        1.2.3.4
Reply With Quote
  #5  
Old 20th August 2012, 17:40
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,804
Thanks: 840
Thanked 5,613 Times in 4,424 Posts
Default

Add A-Records for ns1.mydomain.com and ns2.mydomain.com
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 20th August 2012, 18:12
ijujym ijujym is offline
Junior Member
 
Join Date: Aug 2012
Posts: 10
Thanks: 2
Thanked 1 Time in 1 Post
Default Thanks!

Thank you Till! Adding A records in ispconfig > dns > mydomain worked for me.

Can you also please tell is it ok that according to http://www.intodns.com/ the name server test outputs as error notice recursive queries ?
Code:
Recursive Queries -	I could use the nameservers listed below to performe recursive queries. It may be that I am wrong but the chances of that are low. You should not have nameservers that allow recursive queries as this will allow almost anyone to use your nameservers and can cause problems
Reply With Quote
  #7  
Old 20th August 2012, 18:18
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,804
Thanks: 840
Thanked 5,613 Times in 4,424 Posts
 
Default

http://www.howtoforge.com/forums/sho...83&postcount=2
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dns & uribl DrJohn Server Operation 1 15th October 2011 19:13
ispconfig and external primary DNS FredZ Installation/Configuration 4 9th October 2006 15:50
Zonefiles Dir / Cannot make DNS updates ppettigrew Installation/Configuration 3 6th May 2006 12:57
newbie DNS questions Kankles HOWTO-Related Questions 6 20th January 2006 04:50
Reverse DNS disasm General 3 13th January 2006 20:43


All times are GMT +2. The time now is 04:35.


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