hostname: Unknown host
I changed my hostname with the hostname command and check it in /etc/hostname. It is all correct. The name is set. After that I restarted the script
Code:
/etc/init.d/hostname.sh start hostname -s or hostname -a hostname: Unknown host appear. What am I missing? I use Debian 5.05 |
What's the output of
cat /etc/hosts cat /etc/hostname |
here is the output
Code:
kodeserver:~# cat /etc/hosts |
Some folks on the net suggest to add a FQDN to /etc/hosts
try adding localhost.lan or something similar next to localhost and see what happens. Otherwise I'm at a loss too, hasn't happened to me yet |
Seems the restarting solve the problem. (win experience matters ;) )
now telnet localhost 25 shows the new host and domain name. Thank you for the quick reply. |
All times are GMT -5. The time now is 12:39 PM. |