Deepak Shrestha schrieb:
I have following in my /etc/hosts =========== # Do not remove the following line, or various programs # that require network functionality will fail. 192.168.1.2 webcomp ===========
As Paul already pointed out, it is very important to keep the localhost mapping entry in the file. Seems you erased it completely. So readd it:
127.0.0.1 localhost.localdomain localhost
if I check hostname and domainname it returns hostname is "webcomp" domainname is (none) hostname and domainname are both same in dynamic IP and static IP setting only IP is changed. Dynamic IP settings works perfectly without delay. what should I do next?
Set HOSTNAME= in /etc/sysconfig/network to be something like "webcomp.home.locallan". Then adjust the corresponding line in /etc/hosts to be
192.168.1.2 webcomp.home.locallan webcomp Sendmail will be lucky again using 192.168.1.2 as your static IP. Alexander