View Single Post
  #1   (View Single Post)  
Old 3rd December 2011
Franciscus Franciscus is offline
New User
 
Join Date: Dec 2011
Posts: 4
Default Setting hostname

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?

Last edited by phoenix; 4th December 2011 at 02:50 AM.
Reply With Quote