dig question

Jim Reid jim at rfc1035.com
Wed Mar 17 18:32:01 UTC 2004


>>>>> "Jim" == Jim McAtee <jmcatee at mediaodyssey.com> writes:

    Jim> Is there a way to use dig to look up an A record then
    Jim> immediately do an reverse lookup on the returned IP address?

    Jim> dig somehostname.com
    Jim> dig -x 1.2.3.4

You just did it!

Though a little shell script might be better:

	for i in `dig some-host-name A +short`
	do
		dig -x $i
	done


More information about the bind-users mailing list