Re: host name help
- From: dnoyeB <Fake@xxxxxxxxxxxxxxxxx>
- Date: Tue, 25 Apr 2006 00:03:40 -0400
Bit Twister wrote:
On Mon, 24 Apr 2006 21:36:43 -0400, dnoyeB wrote:
seems like Linux absolutely needs a hostname set. some programs will use hosts file, some wont. its all over the place. So I need to give my computer a FQDN it would seem. Even if it is a fake one. i am not sure what this entails.
Do I just need to put myserver.mydomain.myTop in my hosts file, or are there a bunch of other files that will require me to enter this same information?
With 300+ distributions of linux out there you may want to look at
http://www.catb.org/~esr/faqs/smart-questions.html
For you "fake land domain" I'll suggest whatever.invalid. That way
someone buys whatever or your mail escapes onto the net the .invalid
will let the filters kill it.
For Mandrake/Mandriva/Redhat your data examples are as follows:
$ head -3 /etc/sysconfig/network
HOSTNAME=wb.home.invalid <=========
NETWORKING=yes
NETWORKING_IPV6=no
$ head -3 /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.2.10 <=========
$ head -3 /etc/hosts
127.0.0.1 localhost
192.168.2.1 fw.home.invalid fw
192.168.2.10 wb.home.invalid wb <=========
Thanks again. I managed to get this done both GUIally and manually just to make sure I knew what was happening. I had got the network file updated and the hosts file updated but my computer kept this odd name. Eventually I found the ifcfg through some web searching and had to add NEEDSHOSTNAME=no or something similar.
I did this all before in my early redhat days. Glad mandriva didnt change anything.
so now im back to fake domain name. At least I know i got this part right. next will be investigating the programs that dont use hosts like qmail.
P.s. was using Redhat 9, going to Mandriva 2006 for the future.
--
Thank you,
"Then said I, Wisdom [is] better than strength: nevertheless the poor man's wisdom [is] despised, and his words are not heard." Ecclesiastes 9:16
.
- Follow-Ups:
- Re: host name help
- From: Bit Twister
- Re: host name help
- References:
- host name help
- From: dnoyeB
- Re: host name help
- From: Bit Twister
- host name help
- Prev by Date: Re: host name help
- Next by Date: Re: Syscall interface
- Previous by thread: Re: host name help
- Next by thread: Re: host name help
- Index(es):
Relevant Pages
|
|