nslookup

To find IP of a domain, use

To find MX record for a domain, use

To see TXT records, run

Asking Authritative Name Servers

When you run nslookup, it checks with caching name servers, generally provided by your ISP. But these are not authoritative name servers for your domain name. These caching name servers cache any DNS result for several hours depending on TTL (Time To Live) value in a domain’s DNS zone. If you are debugging some DNS problems, you need to ask domains authoritative name servers, that you can find by taking whois of a domain name.

Here is an example

If you take whois of serverok.in, you will see the domain use name servers

To find MX record of the domain, you can use

But what you get is the cached result from a non-authoritative name server. To get an authoritative result, you need to use the following command

Here elle.ns.cloudflare.com is one of the name servers used by serverok.in, that you find from whois. You can use any of the name servers with the nslookup command.

What it does is, ask the name server elle.ns.cloudflare.com (authoritative name server) what is the MX record for the domain serverok.in

Install nslookup on ArchLinux
Find Reverse-DNS/PTR using dig, nslookup, host
How to verify rDNS (reverse DNS)/PTR Record

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *