Have you noticed that your server might return Non-Authoritative Answer on NS Lookup which you never gave any importance? Here is why we get it. This is not an article to fix the Non-Authoritative Answer on NS Lookup, definitely we will discuss that part in future as guide but in this article we will discuss on a common but somewhat ignored stuff – the Non-Authoritative Answer on NS Lookup.
Why We Get Non-Authoritative Answer on NS Lookup?
To get the answer for the question why we get Non-Authoritative answer on NS Lookup like this :
1 2 3 4 5 6 7 | ~ nslookup thecustomizewindows.com Server:220.226.6.104 Address:220.226.6.104#53 Non-authoritative answer: Name:thecustomizewindows.com Address: 192.237.225.97 |
We should know what is Authoritative answer on NS Lookup first. Authoritative relates to name server. Authoritative name server means, a name server which provides answers in response to questions asked about names in a zone.
---
The opposite of Non-Authoritative Answer is Authoritative-Only Answer. An authoritative-only name server give answers only to queries about domain names that have been specifically configured by the administrator of the server. Name servers can also be configured to give authoritative answers to queries in some zones. DNS provides a mechanism whereby the primary for a zone can notify all the known secondaries for that zone when the contents of the zone have changed. The contents of a zone are either manually configured by an administrator, or managed using Dynamic DNS.
A name server indicates that its response is authoritative by setting the Authoritative Answer (AA) bit in the response to a query on a name for which it is authoritative. Name servers providing answers for which they are not authoritative (for example, name servers for parent zones), do not set the AA bit.
We can use the nslookup
tool in interactive mode. To do this, we need to run only nslookup
command first and hit the return / enter key, which evokes the >
, indicating an interactive session :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ~ nslookup # run this command; set querytype=ns > set querytype=ns # type your desired domain name > thecustomizewindows.com Server:220.226.6.104 Address:220.226.6.104#53 Non-authoritative answer: thecustomizewindows.comnameserver = dns2.stabletransit.com. thecustomizewindows.comnameserver = ns.rackspace.com. thecustomizewindows.comnameserver = dns1.stabletransit.com. thecustomizewindows.comnameserver = ns2.rackspace.com. Authoritative answers can be found from: ns.rackspace.cominternet address = 69.20.95.4 ns2.rackspace.cominternet address = 65.61.188.4 dns1.stabletransit.cominternet address = 69.20.95.4 dns2.stabletransit.cominternet address = 65.61.188.4 |
Basically, a non-authoritative name server is one that does not contain the records for the zone being queried. So, we actually should edit the files on the server too. On Cloud Server running on OpenStack, we can add PTR records easily, which fixes the PTR records return (after running the command set querytype=ptr
). Depending on setup, it can be quite difficult to implement Authoritative-Only Answer.