Re: nslook problem?

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Thu, 23 Mar 1995 23:04:10 +0100

Hi!

On Thu, 23 Mar 95 10:41:47 PST,
jsong@nlc.com (James Song) said:

James> Nslook returned an error message saying "can not lookup" this
James> device. But I wrote a small program to use gethostbyname() to
James> query the IP address and the program successfully got the IP
James> address. Then I check the source code for nslook in clock.c. I
James> did not find anything different from my own program. Yet
James> nslook always failed to find the device. I just don't
James> understand what's in scotty that fails the function
James> gethostbyname(). I would appreciate any help.

I don't think that there is anything in scotty that should be able to
change the behaviour of gethostbyname(). But I guess that your program
does not call ined_addr to test whether the argument is an IP address
or a hostname. Perhaps you can step through nslook with a debugger to
see if gethostbyname() is actually called.

Juergen