View Full Version : Get remote server's DNS aliases
gsprague
10-19-2011, 11:45 AM
Anyone know the terminal command to get a remote server's DNS aliases?
Thanks! ;)
tlarkin
10-19-2011, 01:18 PM
you can try:
scutil --dns
do you know the IP/DNS of these remote servers?
gsprague
10-19-2011, 01:26 PM
Hi tlarkin,
Thank you for the reply! Yes, I know the IP addresses and or the server names. But I'm trying to get the aliases of those servers via the terminal.
Thanks!
SirDice
10-20-2011, 01:36 AM
You mean the CNAME records? That's something you can't get from an IP address. You can only find the corresponding PTR record.
For example:
molly A 192.168.1.190
something CNAME molly
And
190 PTR molly
Now you can resolve both 'molly' and 'something' to 192.168.1.190. However, a reverse lookup on 192.168.1.190 will only return 'molly', not the CNAME 'something'.
The tools used to check dns are 'nslookup' and 'dig'. The latter is preferred.
dig @your_dns_server some.web.address.org
dig @your_dns_server -x 1.2.3.4
gsprague
10-20-2011, 11:05 AM
I'm trying to get the server aliases not the cname. Maybe this isn't possible with the cname or IP address?
Thanks!
SirDice
10-21-2011, 02:02 AM
What exactly do you mean by "server alias"?
gsprague
10-21-2011, 09:12 AM
Some of our servers have other aliases or secondary names.
Basically we have a server and I'm trying to determine which servers are connecting to it. My IS team gave me a log of IPs that are connecting but I have no idea what these servers are unless I get all of the alias names.
Even with the main server names which is just a mix of letters and numbers I still have no idea what it is so I need to try and get the alias names or the secondary server names.
Thanks very much for your help it is greatly appreciated! ;)
SirDice
10-21-2011, 10:14 AM
Some of our servers have other aliases or secondary names.
Those are CNAMEs.
gsprague
10-21-2011, 10:19 AM
OK, so there is no way to get the secondary cname from a cname or IP?
Thanks!
SirDice
10-21-2011, 11:07 AM
OK, so there is no way to get the secondary cname from a cname or IP?
Nope, sorry.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.