NSLOOKUP ON IP ADDRESS

I would like to query DNS Server to find how many A records that have the same IP address.

example:

Comp1 = 10.10.10.10
Comp2= 10.10.10.10
CompX=10.10.10.10

thanks
jskfanAsked:
Who is Participating?
 
collins23Commented:
nslookup

set type=ptr

10.10.10.10
0
 
jskfanAuthor Commented:
what if there are records like MX or alias records withe the same IP address.

would they show up too ?

I have used your command:
nslookup
set type=ptr
10.10.10.10

it pulled up 2 ptr records, but I cannot tell what type of records they are, if A records, MX, alias....
any way to pull the record type too??
0
 
collins23Commented:
ptr records are reverse records.

basically all hostnames pointing to that ip address

alias wouldn't point directly to an ip address.

are you doing this for an internal dns ? or external dns that can be viewed from internet ?

if it is internal most likely mx will not be needed.

you might also want to test the

set type=any

ls domainname

to get a full listing of all your entries
0
Protect Your Employees from Wi-Fi Threats

As Wi-Fi growth and popularity continues to climb, not everyone understands the risks that come with connecting to public Wi-Fi or even offering Wi-Fi to employees, visitors and guests. Download the resource kit to make sure your safe wherever business takes you!

 
collins23Commented:
try this also

nslookup -querytype=ptr 10.1.0.52

much better for you :

you can change between ptr, mx, cname to see results
0
 
OP_ZaharinCommented:
- the DNS Server appear to have registered multiple machines with same IP address might due to the leased period. do you configure "Scavenging" on your DNS server? it will help you clean up old unused records in DNS:
http://blogs.technet.com/b/networking/archive/2008/03/19/don-t-be-afraid-of-dns-scavenging-just-be-patient.aspx

- Chris-Dent also provides some tips on configuring  Aging and Scavenging:
http://www.experts-exchange.com/Networking/Windows_Networking/NT/Q_22655646.html

0
 
jskfanAuthor Commented:
thanks guys!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.