Click to See Complete Forum and Search --> : Host Name Lookup Failure


friend621
05-01-2001, 12:26 PM
I have two Linux boxes. I have been using one of them for some time now and the second one is very new. Both have redhat7.0. The new box is unable to look up the hostname. Since both are in same domain, I have set the resolv.conf file identical. When I try to use nslookup <somewhere>.com, I get this error.
*** Can't find server name for address xxx.xxx.xxx.xxx : No response from server
*** Default servers are not available

where xxx.xxx.xxx.xxx is our name server.

However, when I try same thing on my old linux box, it does not have any problem.
Is there any other files I need to update?

Thanks.

:confused:

compunuts
05-01-2001, 07:10 PM
You can use "netcfg" or "netconfig" (or something like that, I'm not sure for 7.x RH; it's netcfg for 6.x systems) and you can go to hosts and add your computers manually if you LAN do not have name servers running internally such as BIND. Put that on both boxes and you will be able to browse with names.

If you want to edit it manually, you can edit /etc/hosts file on both machine and add them manually in this format.

IP addy name nickname(alias)

123.456.7.89 machine.myhome machine


HTH

Lorithar
05-02-2001, 01:14 PM
can the new machine see out to the system that is providing the nameservices?


to wit ... does the new machine need to go through the old machine to see out?
-- can you ping internet IP addresses?

Is the gateway on the new machine point to the old machine?

friend621
05-04-2001, 10:18 AM
Thanks guys, it is working now.