brendan@cs.widener.edu (Brendan Kehoe) (06/06/91)
Has anybody hacked on traceroute to have it do a T_PTR query to the nameserver for any Internet address that fails the gethostbyaddr() call? My intention is to have it give the names for the various gateways that a packet goes through, not have bland numbers all over the place. I've started to do it, but I'd rather not spend two days refreshing myself on network programming only to discover it's been done. :-) Thanks for any ideas. Brendan -- Brendan Kehoe - Widener Sun Network Manager - brendan@cs.widener.edu Widener University in Chester, PA A Bloody Sun-Dec War Zone Vanilla Ice == Richard VanWinkle .. hehe .. hohoho .. Hahahahahahahaha.
barmar@think.com (Barry Margolin) (06/06/91)
In article <#W#-G5K@cs.widener.edu> brendan@cs.widener.edu writes: > Has anybody hacked on traceroute to have it do a T_PTR query to the >nameserver for any Internet address that fails the gethostbyaddr() call? Don't hack traceroute, get a version of gethostbyaddr() that uses the domain system. -- Barry Margolin, Thinking Machines Corp. barmar@think.com {uunet,harvard}!think!barmar
brendan@cs.widener.edu (Brendan Kehoe) (06/07/91)
barmar@think.com wrote: >In article <#W#-G5K@cs.widener.edu> brendan@cs.widener.edu writes: >> Has anybody hacked on traceroute to have it do a T_PTR query to the >>nameserver for any Internet address that fails the gethostbyaddr() call? > >Don't hack traceroute, get a version of gethostbyaddr() that uses the >domain system. Or make sure the Berkeley resolv library you link it with is really the Berkeley library, not Sun's resolv (for some reason I forgot to move libresolv-bsd.a over to libresolv.a). <<cough>> Followups to /dev/null; flames to /dev/dsk/funny-farm, where I wanted to take a trip to when I realized why gethostbyaddr() was failing. Brendan -- Brendan Kehoe - Widener Sun Network Manager - brendan@cs.widener.edu Widener University in Chester, PA A Bloody Sun-Dec War Zone Vanilla Ice == Richard VanWinkle .. hehe .. hohoho .. Hahahahahahahaha.