Your Question: Does Nslookup Work in Linux?
Contents

nslookup (name server lookup) is a tool used to perform DNS lookups in Linux. It is used to display DNS details, such as the IP address of a particular computer, the MX records for a domain or the NS servers of a domain.

How do I use nslookup in Linux?

nslookup command in Linux with Examples

  1. nslookup google.com : …
  2. nslookup 192.168.0.10 : Reverse DNS lookup. …
  3. nslookup -type=any google.com : Lookup for any record. …
  4. nslookup -type=soa redhat.com : Lookup for an soa record. …
  5. nslookup -type=ns google.com : Lookup for an ns record.

How do I find DNS records in Linux?

To query DNS and see the records it holds, you can use a software tool called dig that queries DNS servers directly. Dig comes standard with all the major Linux distributions, and is useful for verifying and troubleshooting DNS problems.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest