Re: cannot resolve hostname
On Sat 07 May 2011 at 15:15:18 +0100, AG wrote:
> OK - I want to use a static IP address (easier for a simpleton like me
> to configure the printer client machine to see it). The IP address I
> have customarily used is 192.168.1.40 and that is what is in my
> /etc/hosts file:
> 127.0.0.1 localhost
> 192.168.1.40 valhalla.org
valhalla.org does not have an IP address of 192.168.1.40. This may or
may not be a cause of your problem. Commenting it out would do no harm.
You can fix it later.
Similarily for the dns-servers and dns-search lines in the interfaces
file. Commenting them out loses you nothing. Just ensure/etc/resolv.conf
has an entry for a nameserver.
> When the machine came back on, I was (yet again) unable to access the
> Net and the only way that I was able to do so was to use Brian's fix
> #dhclient eth0 which, when checking the /sbin/ifconfig output again
> shows that the IP address has been made *.64
What I gave you wasn't a fix but a simple way to get you going :).
Changing to a static stanza should still have kept you online but it
seems there are other things in your setup preventing that.
Pinging your router and nameserver by IP and www.debian,org would
establish the extent of your connectivity.