Skip to content
This repository was archived by the owner on Mar 2, 2021. It is now read-only.

fix to set hostname to debian reference guide#30

Open
leanderjanssen wants to merge 1 commit intohypriot:masterfrom
leanderjanssen:master
Open

fix to set hostname to debian reference guide#30
leanderjanssen wants to merge 1 commit intohypriot:masterfrom
leanderjanssen:master

Conversation

@leanderjanssen
Copy link

@leanderjanssen leanderjanssen commented Aug 20, 2016

Specifying the hostname in the /etc/hosts file using the default loopback address (127.0.0.1) is not recommended and can lead to some issues. E.g. ansible doesn't like this.

I think it's better to follow the Debian Reference guide when setting the hostname in the /etc/hosts file.
https://www.debian.org/doc/manuals/debian-reference/ch05.en.html#_the_hostname_resolution

I've also added a domain suffix (.local) to give the host a fully qualified domain name.

$ hostname
black-pearl
$ hostname -s
black-pearl
$ hostname -d
local
$ hostname -f
black-pearl.local

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant