Does nslookup work on Linux?
I have been learning Linux and I am trying to find the best way to setup a DNS on my computer. I have been looking through the man pages for nslookup, dig, etc. And I can't find anything about using the command line tool to lookup DNS addresses. Is there an easy way to do this?
Dig will help you - as well as the 'host' command which is pretty handy (also see man host).apple.com
; <<>> DiG 9.6.3-P1 <<>> www. IN A
;; ANSWER SECTION: www. 69 IN CNAME apple.
Apple. 67 IN A 172.30.42.129
Apple. 67 IN RRSIG A 6 3 86400 20150803123628 57540 apple.129#53(172.
How do I get nslookup on Linux?
I am running ubuntu 14.04 (32 bit) and I really need to find out more about an internet address.
I go to an internet cafe on campus and the website is www.lw.org (which is owned by our school district). When I type this into my browser I can surf the website. However, when I use nslookup like:
Nslookup www.org it says "unable to locate www.org". How do I fix this?
Also, I am completely new to Linux so if it is a lot to do, I am very sorry. There are two different types of servers in existence. The first is DNS Server which will take your request and return one of four possible answers back to you.
The second are called resolvers. DNS resolvers, often called DNS Servers, are simply systems that receive queries from clients. They have no knowledge of who these queries come from or where they're trying to reach.
In order to test your resolve.conf with your DNS server, here's what you want to do.
# Run this command as the root user. Service resolvconf restart. # Enter /etc/resolvconf/resolv.d # To add your new DNS servers enter 'head' of file. For example: # 'head /etc/resolvconf/resolv.d/base' # Then add your three servers in the same format as the existing section. # If you have more than 3, add another block, just before the existing one. # with nameserver 8.8 followed by your other ones.
Then, you can query them using something like the following. Nslookup google.com If the resolver gives you the right IP then its working. If its not working I suspect you're running the wrong server. I've worked at quite a few ISP's and had access to some pretty fancy resolvers so I know exactly what you need.
Related Answers
How to do a reverse lookup with nslookup?
To check the status of the reverse lookup name, you need to perform DNS reverse...
What is an example of a reverse lookup zone?
If you have multiple DNS record...
What is reverse lookup IP address to hostname?
A reverse lookup is a process that is used to get details of a company from its r...