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

FQDN still reported as localhost #13

Closed
leanderjanssen opened this issue Apr 19, 2016 · 0 comments · Fixed by #15
Closed

FQDN still reported as localhost #13

leanderjanssen opened this issue Apr 19, 2016 · 0 comments · Fixed by #15
Assignees

Comments

@leanderjanssen
Copy link

When running "hostname -f" the fqdn is reported as localhost.
This is related to the /etc/hosts file and in particular this line:

127.0.0.1 localhost hostname

When changing this to:

127.0.0.1 localhost
127.0.1.1 hostname

the fqdn is reported correctly.

This is also in line with the Debian reference guide:

https://www.debian.org/doc/manuals/debian-reference/ch05.en.html#_the_hostname_resolution

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 a pull request may close this issue.

2 participants