Direct and Reverse Ip Look Up With Nslookup
Nslookup is a network tool using to query DNS to obtain domain name or IP address. The full name of nslookup is “name server lookup” . Nslookup supports interactive and batch mode. Nslookup alternative is dig which uses underlying Operating System libraries.
nslookup [-option] [name | -] [server]
Nslookup can be used in two different modes. One is interactive mode. In order to use nslookup interactively just enter nslookup in the command line.
We will get a shell to enter related commands. Query some domain name.
We get IP address of the domain in interactive mode. To exist interactive mode use exit nslookup command like below.
To get domain name of an IP address is similar to the normal domain name lookup we will just provide the IP address of the target host like below.
$ nslookup 22.214.171.124
Set New DNS Server
By default system provided DNS server is used. This is generally first local cache and then modem configuration where this is set by ISP. DNS server can be changed like below in interactive mode.
MX Lookup or Get Mail Server Domain Name
DNS provides information about domain names. Also mail, sip and other related information about domain can be get by specifying type parameter.
In this example we will try to get mail server domain name
Get Soa Server Domain Name
Soa or DNS server information can be get with soa type queries.
We will get information about mail address first name server etc. from soa request.
Batch mode is second mode. This mode usage is simple command line usage. Just provide command and related arguments. We do not need to enter specific
$ nslookup poftut.com