Click to See Complete Forum and Search --> : domain name prob.


littlebig
11-11-2001, 09:29 PM
when i type /etc/rc.d/init.d/httpd restart
i got "could not determine the server's fully qualified domain name, using 127.0.0.1 for servername"
my /etc/hosts/ is 127.0.0.1 localhost.localdomain localhost
anywhere to correct this prob.?
thanks! :confused:

DMR
11-11-2001, 09:55 PM
I'm not running a server, so I'm sure there's more to it than this, but:

/etc/hosts should include an entry for your NIC's IP address as well as that of the loopback (lo) device 127.0.0.1. For example, my /etc/hosts looks like this:127.0.0.1 localhost.localdomain localhost
192.168.0.2 penguinbox.localdomain penguinboxThe 192.168.0.2 comes from the fact that I'm on an internal network behind a gateway router.

The other place to check is your /etc/sysconfig/network file:[dave@penguinbox /etc]$ cat /etc/sysconfig/network
NETWORKING=yes
FORWARD_IPV4="no"
HOSTNAME="penguinbox.localdomain"
DOMAINNAME=localdomain
GATEWAY="192.168.0.1"
GATEWAYDEV="eth0"At the very least, if these files don't contain the correct entries, you should edit them accordingly.

[ 11 November 2001: Message edited by: DMR ]