On Mon, Jul 12, 2004 at 05:57:16PM -0400, * Tong* wrote: > Hi, > > Quick question how to change hostname under debian? > > I changed my /etc/hosts > from > 127.0.0.1 cxmr localhost > to > 127.0.0.1 cxmr.dyndns.org localhost > > but why my hostname is still reporting merely 'cxmr'? > How to fix it? (Surely I've rebooted). >
first thing, you host name is merely cxmr. dyndns.org is your domain name, not part of your hostname. That should appear in the domain directive in your /etc/resolv.conf if you want. To change your hostname you can edit /etc/hostname or run hostname <new host name> > Thanks > > PS. is it the reason that I can't start squid?: > > # /etc/init.d/squid start > Starting proxy server: FATAL: Could not determine fully qualified hostname. Please > set 'visible_hostname' > > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > > +++++++++++++++++++++++++++++++++++++++++++ > This Mail Was Scanned By Mail-seCure System > at the Tel-Aviv University CC. > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]