Direct and Reverse Ip Look Up With Nslookup

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/direct-reverse-ip-look-nslookup/
PINTEREST
PINTEREST
INSTAGRAM

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.

Syntax

Interactive Usage

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.

Reverse Lookup

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.

Reverse Lookup

Reverse Lookup

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.

LEARN MORE  Compare CentOS(RedHat) vs Ubuntu

We will get information about mail address first name server etc. from soa request.

Batch Mode

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 shell.

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/direct-reverse-ip-look-nslookup/
PINTEREST
PINTEREST
INSTAGRAM

You may also like...

Leave a Reply

Your email address will not be published.

Enjoy this blog? Please spread the word :)