On Tuesday 04 March 2003 04:23 am, Buchan Milne wrote:
> Ben Reser wrote:
> > On Mon, Mar 03, 2003 at 07:43:15PM +0200, Buchan Milne wrote:
> >>Sorry, just a query here, did you run 'host `localhost`', or 'host
> >>`hostname`'.
> >>
> >>If 'host `hostname`' resolves, GNOME should work. If it does not, GNOME
> >>should complain.
> >
> > That's not really true. Again the host command *ONLY* queries
> > nameservers. It does not pay any attention to the /etc/hosts file. So
> > more accurately if:
> > getent hosts `hostname`
> > spits out an IP then GNOME will work.
>
> I think I asked Greg to test both of those. The thing I wanted to
> confirm here was whether he was using `hostname` or `localhost` as the
> name to attempt to resolve.
>
> D'Oh, looking at my mail, that was the one I forgot :-(.
>
> Greg, do you have a working (ie broken) setup at present you can test
> this on?
>
Okay, I just confirmed that in a stock 9.1 install accepting the network
defaults in a dhcp environment GNOME starts without error.
[EMAIL PROTECTED] greg]$ host `hostname`
;; Got SERVFAIL reply from 127.0.0.1, trying next server
;; Got SERVFAIL reply from 127.0.0.1, trying next server
Host dhcppc5 not found: 3(NXDOMAIN)
[EMAIL PROTECTED] greg]$ host localhost
;; Got SERVFAIL reply from 127.0.0.1, trying next server
;; Got SERVFAIL reply from 127.0.0.1, trying next server
localhost has address 127.0.0.1
If I run drakconnect to attempt to set a hostname and then reboot, GNOME
pukes.
[EMAIL PROTECTED] greg]$ host `hostname`
;; Got SERVFAIL reply from 127.0.0.1, trying next server
;; Got SERVFAIL reply from 127.0.0.1, trying next server
Host dhcppc5 not found: 3(NXDOMAIN)
[EMAIL PROTECTED] greg]$ host localhost
;; Got SERVFAIL reply from 127.0.0.1, trying next server
;; Got SERVFAIL reply from 127.0.0.1, trying next server
localhost has address 127.0.0.1
[EMAIL PROTECTED] greg]$ getent hosts `hostname`
#no output is returned
[EMAIL PROTECTED] greg]$ cat /etc/hosts
127.0.0.1 localhost
192.168.0.6 cooker
Somehow, running drakconnect changes a setting somewhere, that I cannot (or
have not been able to) find, that breaks localhost resolution. You'll note
that an entry has been made to /etc/hosts for the hostname I chose when I ran
drakconnect, yet that name has not been set. Could this be causing the GNOME
problem. The ip address assigned to this machine has one name in /etc/hosts,
yet the machine hostname is different (dhcppc5). Hold on..........
I edited /etc/hosts and rebooted. Nope, GNOME still pukes.
Anything specific you want tested more I'll have to do after work tonight, so
let me know.
--
Greg