I've recently installed NetBSD 7.0.2, and I'm having trouble setting my hostname right.
I'm using DHCP, so I got
dhclient=YES in my
Now, the documentation says, that there are several ways of setting the hostname.
The prefered one is to put the hostname into a file. So
/etc/myname contains a single line with the fully qualified domain name, etc.
This didn't help so I also added
hostname=<my fqdn> into
/etc/rc.conf, but it still doesn't honor my hostname settings.
This didn't help either, so I ended up editing
/etc/defaults/rc.conf and set the appropriate settings there.
At this point I've run out of ideas. It's still not honering my selection, instead selecting a hostname for me, which is the name of my router plus a number.