Hi all, I am been trying to match IP address to name and alias from a DNS server. I try nslookup, host and dig to gather the information. Unfortunately, without any luck and was wondering if one of you might already know how to do it. This is what I want: IP Name Alias1 Alias2.... 123.456.789.123 server.host.com Alias1.host.com Alias2.host.com from DNS at dns.host.com Thanks.
On Wed February 18 2004 3:32 pm, Daniel Thivierge wrote:
Hi all, I am been trying to match IP address to name and alias from a DNS server. I try nslookup, host and dig to gather the information. Unfortunately, without any luck and was wondering if one of you might already know how to do it.
This is what I want:
IP Name Alias1 Alias2.... 123.456.789.123 server.host.com Alias1.host.com Alias2.host.com
from DNS at dns.host.com
Thanks.
Try adding A records for the alias(s) to the forward zone (cname would also work, but may create other problems) make sure there is a NS record for dns.host.com dns.host.com. 86400 IN A 123.456.789.123 server.host.com 86400 IN A 123.456.789.123 alias1.host.com 86400 IN A 123.456.789.123 www.host.com 86400 IN A 123.456.789.123 -- Linux 2.6.1 #1 Fri Jan 16 09:28:12 EST 2004 i686 4:32pm up 17 days 23:44, 1 user, load average: 0.02, 0.15, 0.09
On Wed, 2004-02-18 at 15:32, Daniel Thivierge wrote:
Hi all, I am been trying to match IP address to name and alias from a DNS server. I try nslookup, host and dig to gather the information. Unfortunately, without any luck and was wondering if one of you might already know how to do it.
This is what I want:
IP Name Alias1 Alias2.... 123.456.789.123 server.host.com Alias1.host.com Alias2.host.com
from DNS at dns.host.com
Thanks.
To get the main name should be easy. host 123.456.789.123 or dig -x 123.456.789.123 I don't know an easy way to get the aliases, but dig has a million options. try "dig -h" so see some of them. You can try to do a full zone transfer, but it probably won't work. (ie. Most dns servers restrict who they will transfer to.) dig -t axfr host.com That is mostly useful for testing your master dns server from a slave dns server. Greg
participants (3)
-
Daniel Thivierge
-
George Auch
-
Greg Freemyer