feature request for dig

Pete Ehlke pde at ehlke.net
Tue Jul 23 16:08:21 UTC 2002


On Tue, Jul 23, 2002 at 10:34:06AM -0400, chris wrote:
> 
> I was trying to test some classless delegation stuff, and noticed I can't
> do this with dig:
> 
> $ dig -x 192.168.1.0-63.1
> Invalid IP address 192.168.1.0-63.1
> 
> so best I can do is do an axfr for 1.168.192.in-addr.arpa. and look for
> my entry, but I might not always be so lucky.  Any reason dig can't just
> try it, even if it looks like it's not an IP?

Well, because dig -x takes a valid IP address and constructs a PTR query
in the appropriate in-addr.arpa zone for it. If you don't have a valid
IP address, you can't construct a valid PTR query.

The correct way to do what you're looking for is:

dig 1.0-63.1.168.192.in-addr.arpa PTR

-Pete


More information about the bind-users mailing list