Quote:
Originally posted by abhijeetudas
the correct place to enter it is
/etc/sysconfig/network
change it here and it will be there forever .. also change the corresponding entry in the /etc/hosts files.
|
I am aware that I can set the
hostname in the /etc/sysconfig/network file like this:
Code:
HOSTNAME=hostname.my.domain.com
But this does not result in the domainname being set. As in, if I run the `domainname` command, then I'll get "(none)" as the result. I tried adding this to the network file:
Code:
DOMAINNAME=my.domain.com
But that did not appear to work either. So far the following two methods work for setting the domainame:[list=1][*]Setting it through DHCP client[*]Hacking an init script[/list=1]
I know that in SuSE there is a file called something like /etc/defaultdomain that one can use to set the machine's domainname. Does Fedora Core 4 not have a way to do this?