This is my reverse dns file.
$TTL 1D
@ IN SOA dns.prv.server.co.uk. root.prv.server.co.uk. (
2014090402 ; serial
3600 ; refresh
1800 ; retry
604800 ; expire
10800 ) ; minimum
; Name servers's
@ IN NS dns.prv.server.co.uk.
@ IN PTR prv.server.co.uk.
; Name server hostname to IP resolve.
dns IN A 10.100.48.51
2 PTR frontend.prv.server.co.uk.
4 PTR opennebula.prv.server.co.uk.
5 PTR bleakhouse.prv.server.co.uk.
6 PTR thebodyfarm.prv.server.co.uk.
7 PTR luther.prv.server.co.uk.
8 PTR atlantis.prv.server.co.uk.
51 PTR dns.prv.server.co.uk.
I’ve tried checking it with:
sudo named-checkzone dns.prv.server.co.uk /etc/named/48.100.10.rev
And I’m getting the error:
zone dns.prv.server.co.uk/IN: NS 'dns.prv.server.co.uk' has no address records (A or AAAA)
zone dns.prv.server.co.uk/IN: not loaded due to errors.
Can anyone see anything wrong with the file?
asked Sep 13, 2016 at 11:48
If the following line is supposed to be the GLUE record:
dns IN A 10.100.48.51
you should use the FQDN of your nameserver, rather than DNS shorthand. That record now gets expanded as dns.48.100.10.in-addr.arpa.
and you probably intended to use dns.prv.server.co.uk.
(from you NS record) there. Instead use:
dns.prv.server.co.uk. IN A 10.100.48.51
answered Sep 13, 2016 at 12:38
HBruijnHBruijn
73.5k23 gold badges132 silver badges194 bronze badges
0
I’ve just installed Bind9 and Webmin on my VPS to manage a DNS server. Domain of the nameserver is ns1.primesystems.ch.
I created a new master zone (forward) for smartvend.ch through webmin. This works just fine, ip is resolved correctly. See configuration.
$ttl 38400
smartvend.ch. IN SOA ns1.primesystems.ch. john.doe.domain.ch. (
1399011114
10800
3600
604800
38400 )
smartvend.ch. IN NS ns1.primesystems.ch.
smartvend.ch. IN A 185.16.173.71
But when I create a new master zone for primesystems.ch (TLD of nameserver, maybe problem?) through webmin, an error occurs.
Config:
$ttl 38400
primesystems.ch. IN SOA ns1.primesystems.ch. john.doe.domain.ch. (
1399028931
10800
3600
604800
38400 )
primesystems.ch. IN NS ns1.primesystems.ch.
primesystems.ch. IN A 185.16.173.71
Error message:
The following errors were found in the records file /var/lib/bind/primesystems.ch.hosts ..
zone primesystems.ch/IN: NS 'ns1.primesystems.ch' has no address records (A or AAAA)
zone primesystems.ch/IN: not loaded due to errors.
The /etc/bin/named.conf.local looks like this:
zone "smartvend.ch" {
type master;
file "/var/lib/bind/smartvend.ch.hosts";
};
zone "primesystems.ch" {
type master;
file "/var/lib/bind/primesystems.ch.hosts";
};
So primesystems.ch can not be resolved by dig or host command — but smartvend.ch can.
So in my point of view, there must be a problem with primesystems.ch because it’s also the nameserver. What i want is to route the url primesystems.ch to a webserver. Has anyone a idea?
UPDATE:
After adding ‘ns1 IN A 185.16.173.70’, the error disappeared. But when I run ‘host primesystems.ch’ no IP is returned. And ‘dig primesystems.ch’ returs this:
; <<>> DiG 9.8.3-P1 <<>> primesystems.ch
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33401
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;primesystems.ch. IN A
;; AUTHORITY SECTION:
primesystems.ch. 424 IN SOA ns1.primesystems.ch. kevin.kirn.kdsolutions.ch. 1399027394 10800 3600 604800 38400
;; Query time: 23 msec
;; SERVER: 62.2.17.61#53(62.2.17.61)
;; WHEN: Fri May 2 13:43:49 2014
;; MSG SIZE rcvd: 96
I am configuring my private DNS server.
I am following this tutorial. But when I reached the Check BIND Configuration Syntax
step, I got some errors.
Here is the command output:
x@e-dns1:/etc/bind$ sudo named-checkzone xyz1.com forward.xyz1.com
zone xyz1.com/IN: NS 'dns1.xyz1.com.xyz1.com' has no address records (A or AAAA)
zone xyz1.com/IN: NS 'dns2.xyz1.com.xyz1.com' has no address records (A or AAAA)
zone xyz1.com/IN: not loaded due to errors.
The file: forward.xyz1.com
contains the following:
$TTL 604800
@ IN SOA dns1.xyz1.com. admin.xyz1.com. (
3 ; Serial
604820 ; Refresh
86600 ; Retry
2419600 ; Expire
604600 ) ; Negative Cache TTL
; name servers - NS records
IN NS dns1.xyz1.com
IN NS dns2.xyz1.com
; name servers - A records
dns1.xyz1.com. IN A 192.168.56.3
dns2.xyz1.com. IN A 192.168.56.5
; 192.168.56.0/24 - A records
host1.xyz1.com. IN A 192.168.56.6
host2.xyz1.com. IN A 192.168.56.8
Can you please point the me what is wrong? I want to dns servers to be:
dns1.xyz1.com
dns2.xyz1.com
and the hosts:
host1.xyz1.com
host2.xyz1.com
- Forum
- The Ubuntu Forum Community
- Ubuntu Specialised Support
- Ubuntu Servers, Cloud and Juju
- Server Platforms
- [SOLVED] DNS: NS has no address records (A or AAAA)
-
DNS: NS has no address records (A or AAAA)
Hey
have a dns problem (first time setting up dns)
Cant ping example.LAN
/var/log/syslog
NS has no address records (A or AAAA)/etc/bind/zones/db.example.LAN
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA peter.example.LAN. root.example.LAN. (
2011102704 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS peter.example.LAN.
@ IN A 192.168.1.10
ns IN A 192.168.1.10
@ IN AAAA ::1/etc/bind/named.conf.local
zone «example.LAN»
{
type master;
file «/etc/bind/zones/db.example.LAN»;
};
zone «1.168.192.in-addr.arpa»
{
type master;
notify no;
file «/etc/bind/zones/db.192»;
};someone see anything wrong here? or need more info?
-
Re: DNS: NS has no address records (A or AAAA)
zone «example.LAN»
{
type master;
file «/etc/bind/zones/db.example.LAN»;
};You’re writing the zone file for «example.lan» not the zone «peter.example.lan». So just remove the «peter.» from the various statements in the zone file and try again.
-
Re: DNS: NS has no address records (A or AAAA)
peter is the name of the server, so it shall not be
@ IN SOA nameserver.example.LAN. root.example.LAN. ?
(peter)?
Will try when I`m back at work
-
Re: DNS: NS has no address records (A or AAAA)
No, the entry in the SOA record should refer to the domain example.lan. If you want to name a host peter.example.lan, you’d need an A record like this:
Code:
peter IN A 192.168.1.10
What you probably want is something like
Code:
@ IN SOA example.lan you.somewhere.com { stuff } IN NS peter.example.lan. peter IN A 192.168.1.10 ns IN CNAME peter
That creates an A record for peter.example.lan that points to 192.168.1.10. The NS record shows it’s used as the nameserver for example.lan. I also created an alias for «peter.example.lan» as «ns.example.lan» using a CNAME declaration. That’s not required, just convenient.
-
Solved Re: DNS: NS has no address records (A or AAAA)
Thank you for the help its now working
-
Re: DNS: NS has no address records (A or AAAA)
You’re welcome. Please mark this thread as SOLVED.
-
Re: DNS: NS has no address records (A or AAAA)
Solved? Hardly. Please make sure you know what you’re talking about before answering questions here. You’re misleading more than one person when you answer incorrectly.
SOA = start of authority.
The SOA line designates the the top-level authoritative DNS server in your domain. The syntax is:
<domain> IN SOA <top-level name server> <admin email address>
Examples:
example.com. IN SOA dns1.example.com. admin.example.com.
@ IN SOA dns1.example.com. admin.example.com.
@ is shorthand for your domain. You can use @ because it’s value is given in named.conf or named.conf.local.
So your SOA line is correct. Your problem is elsewhere in the zone file. The error message suggests that your A and AAAA records are all incorrect.
The way you’re using @, it looks like you don’t quite understand what it’s for. Do some reading on it. If your still stuck, re-post.
These forums can be very helpful, but they’re no substitute for doing your homework.
-
Re: DNS: NS has no address records (A or AAAA)
PS Please change the status of your thread to unsolved.
Bookmarks
Bookmarks
Posting Permissions
I’m setting up a private DNS server using bind9 on raspian. I’m receiving this error on my reverse zone file:
root@dns:/etc/bind# named-checkzone dthacker.org db.dthacker.org.inv
zone dthacker.org/IN: NS 'dns.dthacker.org' has no address records (A or AAAA)
This is my reverse zone file:
$TTL 604800
@ IN SOA dns.dthacker.org. root.dthacker.org. (
2015052003 ; Serial (NOTE: Needs to increment every time you restart BIND)
3600 ; Refresh [1h]
600 ; Retry [10m]
86400 ; Expire [1d]
600 ; Negative Cache TTL [1h]
)
IN NS dns.dthacker.org.
30.1 IN PTR dns.dthacker.org.
61.1 IN PTR vhost.dthacker.org.
The forward file is passing without errors. I can’t see the error in this one.
Stephen Kitt
388k51 gold badges996 silver badges1095 bronze badges
asked May 20, 2015 at 5:28
Since you are using named-checkzone to check a reverse zone, you need to supply the reverse ip address to get a correct response from named-checkzone. Try this command:
named-checkzone 168.192.in-addr.arpa db.dthacker.org.inv
Change the IP adresses to your actual local network, and remember to reverse the numbers. My example assumes your machines have IP adresses 192.168.1.30
/ 192.168.1.60
Your reverse zone file is also missing an ORIGIN
line. It is usually situated between the $TTL
line and the @ ...
line.
add this line:
$ORIGIN 168.192.in-addr.arpa.
and the db.dthacker.org.inv file should be OK.
All of this assumes that you have a functioning forward file for dthacker.org
.
answered Feb 23, 2016 at 9:37