I tried adding
dns-domain domain.com
to /etc/network/interfaces with no luck. When I run
hostname -d
I get an empty string
resolv.conf
I tried adding
dns-domain domain.com
to /etc/network/interfaces with no luck. When I run
hostname -d
I get an empty string
Best Answer
Edit
/etc/hostname
and add your unqualified hostname:boson
Edit
/etc/hosts
:sudo vi /etc/hosts
Add an entry of your desired hostname by replacing
boson.dev.local boson
whereboson.dev.local
is the fully qualified hostname andboson
is hostname.127.0.1.1 boson.dev.local boson
Restart the hostname service:
Test your configuration by opening a terminal and enter the below commands:
hostname
boson
hostname -f
boson.dev.local
Hope this helps.