How can I set hostname permanently in NetBSD?
I have used:
Code:
#hostname myhostname.domain.com
logout & login > seems to work fine
but when I set one in
/etc/rc.conf after first login and then boot
it gives me something weird:
dhcppc0 as hostname. That same comes as default when I setup debian system but I can change it when installing.
No matter if it's in
/etc/myname or
/etc/rc.conf. Seems fine in bootscripts that hostname is set ok but when it comes to login it's there again. Should I do some editing somewhere else like
/etc/hosts or is it broken in my system?