Hello I have just set up a DNS server for my domain example.org with 2 name servers ns1.example.org and ns2.example.org. I have attempted to set up a glue record for ns1 and ns2 at my registrar.
It seems to work for now when I do a dig example.org but when I do a whois example.org it lists ns1.example.org and ns2.example.org but not their IP address which should be set up as a glue record.
So I am wondering how do I check for the existence of a glue record? Do I do it with whois? I have seen .com and .net whois records that have both the domain name as well as the IP address for the name servers, is .org different? What's the proper way to test this?
Thanks.
Glue records only ever exist in the parent zone of a domain name.
Hence in the case of your
example.org
domain name, first find the.org
name servers:Then, for as many of these as you feel like testing, explicitly ask those name servers for the
NS
records for your domain:You should get back the correct list of
NS
records in the "AUTHORITY SECTION". For any name servers that have correctly configured glue you should see those glueA
(and/orAAAA
) records appear in the "ADDITONAL SECTION".dig +trace
is generally the most straightforward way to inspect the chain of delegations. However, glue records are in the additional section and by default trace output does not include the additional section. You will need to specify explicitly that you want this included in the output.If the idea is to check the sanity of the delegation chain you will probably want to see the authoritative
NS
records as well, in this case:To check if a GLUE record is setup:
If the GLUE is setup you should see a record that ends with:
There are also sites which will do it for you, such as http://www.intodns.com/
Here is a little shell script which implements Alnitak's answer:
Pass the name of the domain as parameter:
You can also use
whois
, where the registry supports it, for directly checking the existent of glue for a given name server. For example, to check one of the name servers of serverfault.com:For a more concise response:
Note: This will certainly work for name servers in the .net and .com name space, but probably not for most other registries.