• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

'hostname' in /etc/rc.conf

everypot

Active Member

Thanks: 7
Messages: 202

#1
Running FreeBSD on the laptop with wifi. Not a server. Should I leave the hostname="" blank or just comment out this line?
 

SirDice

Administrator
Staff member
Administrator
Moderator

Thanks: 5,492
Messages: 25,656

#4
I'd suggest not using .local as a TLD (top level domain). It might interfere with bonjour/zeroconf/avahi. I myself use .home as a TLD.
 

knarf

Member

Thanks: 8
Messages: 88

#5
I have never been a fan of adding a domain name to the hostname in rc.conf. hostname="myhostname" works fine.
 

johnblue

Well-Known Member

Thanks: 25
Messages: 256

#7
I have never been a fan of adding a domain name to the hostname in rc.conf. hostname="myhostname" works fine.
I was searching for something else and got a hit on this open thread. To tie it up, the handbook for bsdinstall instructs the hostname to be an FQDN.

If the FQDN actually resolves or not is a completely different discussion. :D