The nslookup command can be used in Windows and Unix-based to find various information related to DNS ( Domain Name Server ) including the IP addresses, MX records for a domain or the NS Servers of a domain.
1. To look up the reverse for an IP address :
C:\>nslookup
Default Server: cns3.tm.net.my
Address: 202.188.0.133> set q=a
> 203.158.28.18
Server: cns3.tm.net.my
Address: 202.188.0.133Name: cdns1.bizsurf.net
Address: 203.158.28.18>
2. To make query using another server :
> server 202.188.1.5
Default Server: [202.188.1.5]
Address: 202.188.1.5> www.justk2.com
Server: [202.188.1.5]
Address: 202.188.1.5Non-authoritative answer:
Name: justk2.com
Address: 202.75.41.193
Aliases: www.justk2.com>
3. To look up the forward for a Fully Qualified Domain Name (FQDN) address :
> set q=a
> www.justk2.com
Server: cns3.tm.net.my
Address: 202.188.0.133Non-authoritative answer:
Name: justk2.com
Address: 202.75.41.193
Aliases: www.justk2.com>
4. To look up the Server of Authority (SOA) record :
> set q=soa
> justk2.com
Server: cns3.tm.net.my
Address: 202.188.0.133Non-authoritative answer:
justk2.com
primary name server = ns1.everydns.net
responsible mail addr = hostmaster.justk2.com
serial = 1214570007
refresh = 3600 (1 hour)
retry = 900 (15 mins)
expire = 1209600 (14 days)
default TTL = 3600 (1 hour)
>
5. To look up the Mail Exchanger (MX) record :
> set q=mx
> justk2.com
Server: cns3.tm.net.my
Address: 202.188.0.133Non-authoritative answer:
justk2.com MX preference = 5, mail exchanger = mail.justk2.com
justk2.com MX preference = 50, mail exchanger = bkpmail.localdns.combkpmail.localdns.com internet address = 202.75.41.58
mail.justk2.com internet address = 202.190.203.180
>
6. To look up all records for a particular FQDN address :
> set q=any
> justk2.com
Server: cns3.tm.net.my
Address: 202.188.0.133Non-authoritative answer:
justk2.com
primary name server = ns1.everydns.net
responsible mail addr = hostmaster.justk2.com
serial = 1214570007
refresh = 3600 (1 hour)
retry = 900 (15 mins)
expire = 1209600 (14 days)
default TTL = 3600 (1 hour)
>
7. To look up what name server handles the reverse for a particular class network ( i.e. 202.75.41.* ) :
> set q=any
> 41.75.202.in-addr.arpa
Server: cns3.tm.net.my
Address: 202.188.0.133Non-authoritative answer:
41.75.202.in-addr.arpa nameserver = ns02.myloca.com
41.75.202.in-addr.arpa nameserver = ns01.myloca.com41.75.202.in-addr.arpa nameserver = ns02.myloca.com
41.75.202.in-addr.arpa nameserver = ns01.myloca.com
ns02.myloca.com internet address = 202.75.34.2
ns01.myloca.com internet address = 202.75.34.1
>
No comments:
Post a Comment