Try to remove NS servers with wrong ip adress.

SajtXL

Verified User
Joined
Nov 12, 2006
Messages
88
Hi all. In a new CentOS 6 (32 bits) I try to remove the default created nameserver.

But the remove fail with this error msg:

Unable to save dns zone: named-zonecheck returned:
loading "sajtxl.se" from "/var/named/sajtxl.se.db.temp" class "IN"
zone sajtxl.se/IN: NS 'ns1.sajtxl.se' has no address records (A or AAAA)
zone sajtxl.se/IN: not loaded due to errors.

Its similar to http://www.directadmin.com/features.php?id=1208.
I have added in my DA cfg file "named_checkzone=0", but I don't think this is a good solutions ?
 
As the linkpage says, you don't have A or AAAA records for your nameservers. Why not?

Jeff
 
As the linkpage says, you don't have A or AAAA records for your nameservers. Why not?

Jeff

I don't know.

This is my named file:

$TTL 14400
@ IN SOA ns1.sajtxl.se. root.sajtxl.se. (
2012030903
14400
3600
1209600
86400 )

sajtxl.se. 14400 IN NS ns1.sajtxl.se.
sajtxl.se. 14400 IN NS ns2.sajtxl.se.

cp.sajtxl.se. 14400 IN A 67.15.47.4
forum 14400 IN A 109.111.217.107
ftp 14400 IN A 109.111.217.107
lickey 14400 IN A 109.111.217.107
localhost 14400 IN A 127.0.0.1
mail 14400 IN A 109.111.217.107
ns1.sajtxl.se. 14400 IN A 109.111.217.48
ns2.sajtxl.se. 14400 IN A 109.111.217.49
pop 14400 IN A 109.111.217.107
reseller 14400 IN A 109.111.217.107
sajtxl.se. 14400 IN A 109.111.217.107
smtp 14400 IN A 109.111.217.107
support 14400 IN A 109.111.217.107
toolbar 14400 IN A 109.111.217.107
vps2.sajtxl.se. 14400 IN A 109.111.217.107
www 14400 IN A 109.111.217.107
www.forum 14400 IN A 109.111.217.107
www.lickey 14400 IN A 109.111.217.107
www.reseller 14400 IN A 109.111.217.107
www.support 14400 IN A 109.111.217.107
www.toolbar 14400 IN A 109.111.217.107

sajtxl.se. 14400 IN MX 20 ALT1.ASPMX.L.GOOGLE.COM.
sajtxl.se. 14400 IN MX 20 ALT2.ASPMX.L.GOOGLE.COM.
sajtxl.se. 14400 IN MX 10 ASPMX.L.GOOGLE.COM.
sajtxl.se. 14400 IN MX 30 ASPMX2.GOOGLEMAIL.COM.
sajtxl.se. 14400 IN MX 30 ASPMX3.GOOGLEMAIL.COM.
sajtxl.se. 14400 IN MX 30 ASPMX4.GOOGLEMAIL.COM.
sajtxl.se. 14400 IN MX 30 ASPMX5.GOOGLEMAIL.COM.

domain.sajtxl.se. 14400 IN CNAME sajtxl.supersite.myorderbox.com.
domain2.sajtxl.se. 14400 IN CNAME sajtxl.shopco.com.
googleab2366744788e979.sajtxl.se. 14400 IN CNAME google.com.
mailfilter.sajtxl.se. 14400 IN CNAME manage.purity.net.
spamfilter.sajtxl.se. 14400 IN CNAME www.protectedmail.net.
webmail.sajtxl.se. 14400 IN CNAME ghs.google.com.


sajtxl.se. 14400 IN TXT "v=spf1 a mx ip4:109.111.217.107 ~all"

Thank you for your help.
 
I don't know.
Thanks for posting your zone. I think I may have found the problem. Which nameserver record are you trying to remove? If either ns1.sajtxl.se or ns2.sajtxl.se, then you need to add the new record first. Look at your SOA record and your two nameserver records. A records must be present for these two nameservers at all times, so you can't delete them until you've added new ones. (Note this problem should only occur when you're working on the zone for the nameserver domain.)

Some good reference books available through Amazon (softcover and eBook editions) are: DNS and Bind (amazon.com) and Pro DNS and Bind (amazon.com). Don't be concerned with the publication dates on these books; IPv4 DNS hasn't changed in a long time.

An online explanation of the SOA record may be found here (zytrax.com)

Jeff
 
Yes Jeff, you have right, it ns1.sajtxl.se or ns2.sajtxl.se who has the wrong ip.
I change named_checkzone=0, remove the NS with wrong ip, than add the NS back again with the right ip and change back named_checkzone=1.

I have no problem to add and remove new NS.

Thank you for your time
 
Back
Top