7

Our network admin is away at the moment. I'm trying to find all aliases attached to a given server on our network (actually a number of servers)

After googling around it seems like nslookup might do this for me but it seems it doesn't.

All of these pretty much just behave like ping - they return the IP address of what I'm looking up

nslookup server
nslookup IPAddress
nslookup KnownAlias

I want a command where I can enter the host name and have it return all aliases defined for that server.

This is on windows on an internal network.

I suspect if I had an AD tool I could poke around in there. But there isn't a AD tool installed by default on our windows client (windows 7). Can anyone suggest a useful windows AD tool in windows 7, given that I don't have admin access?

5

You can try this.

nslookup
>ls -a YOURDOMAINE

It will list all canonic names and aliases

nslookup
>ls -t CNAME

It will list all CNAME entries from your DNS

You must have authorized access with your account to run these commands

Hope it helps

|improve this answer|||||
  • Looks like I don't have access :( Thanks anyway – Nick.McDermaid Jan 18 '16 at 23:21
1

Assuming DNS runs on Windows, AD-integrated or not, use the DNS console on a DNS server. Sort A records by IP, and scroll around until you locate your server.

This will not tell you if individual clients have custom hosts entries for your server, but hopefully your DNS can be a "good enough" source of name records.

|improve this answer|||||
  • Thanks for your reponse. I'm not worried about client hosts entries. Unfortunately I don't have access to the DNS server so I might have to wait for our admin to get back. I'll wait for a few more answers anyway – Nick.McDermaid Jan 18 '16 at 7:12
1

I found this thread that uses dig command to find aliases. Not sure if dig command is available on Windows, but you should try:

https://community.hpe.com/t5/System-Administration/Finding-all-DNS-aliases-for-a-host-using-nslookup-dig-host-or/td-p/3356789

|improve this answer|||||
  • 1
    Welcome to ServerFault. It's fine to link to another article, but to make sure your answer is still useful if the linked article goes away, please give examples or describe the important points here. – Andrew Schulman Jun 8 '18 at 15:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.