On Sat 12 Nov 2016 at 10:25:16 +0000, Andy Smith wrote: > Glenn has set the host name to be "srv". > > I am 95% confident that the reason that Glenn's system thinks the > FQDN is "www.slsware.dmz" is because the first instance of "srv" in > the /etc/hosts is: > > > > 192.168.2.203 www.slsware.dmz wsd srv
Do you fancy adding 5% to that figure? > "hostname" returns what is in /etc/hostname (unless changed agfter > system startup). > > "hostname -f" returns the part up to the first dot from whatever is > returned by resolving "hostname" against /etc/hosts. > > "hostname -d" returns the part after the first dot from whatever is > returned by resolving "hostname" against /etc/hosts. > > I think that if Glenn placed a line higher up that read: > > 192.168.2.203 srv.slsware.org srv > > then the desired result would be achieved. I'd use 127.0.0.1 localhost 127.0.1.1 srv.slsware.org srv -- Brian.