Skip to content

docs(README): insert command which adds hosts entry to resolve domain#1174

Open
g-kedev wants to merge 1 commit intoadfinis:mainfrom
g-kedev:feat/readme_add_hosts_entry_command
Open

docs(README): insert command which adds hosts entry to resolve domain#1174
g-kedev wants to merge 1 commit intoadfinis:mainfrom
g-kedev:feat/readme_add_hosts_entry_command

Conversation

@g-kedev
Copy link
Copy Markdown

@g-kedev g-kedev commented Apr 21, 2026

No description provided.

@g-kedev g-kedev requested review from derrabauke and trowik April 21, 2026 09:51
@g-kedev g-kedev self-assigned this Apr 21, 2026
@g-kedev g-kedev added the documentation Improvements or additions to documentation label Apr 21, 2026
trowik
trowik previously approved these changes Apr 21, 2026
Copy link
Copy Markdown
Member

@trowik trowik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

derrabauke
derrabauke previously approved these changes Apr 21, 2026
Comment thread README.md
Run the following command to add local hosts entry to resolve domain

```bash
echo "127.0.0.1 timed.localhost" | sudo tee -a /etc/hosts
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't *.localhost always resolve to 127.0.0.1?

Copy link
Copy Markdown
Member

@derrabauke derrabauke Apr 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with proper dnsmasq maybe 🙄 yes

Copy link
Copy Markdown
Contributor

@hairmare hairmare Apr 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure you really don't want to fix your operating system? If you are not using Windows, this is usually a misconfiguration stemming from a funky installation on an os that left open too many opinions.

While the respective RFC doesn't strongly mandate this, it's still a misconfig if the following doesn't hold true:

Users may assume that IPv4 and IPv6 address queries for localhost names will always resolve to the respective IP loopback address

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My system does resolve it properly without the /etc/hosts hack, but sadly not everybody has such a great system. 😅 Eventually we should adapt the sentence above to reflect the optional character. @g-kedev

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there were a bit that documents how to test this before just running a sudo thing, then that would for sure help.

I'm still not convinced that people with a Linux that needs this entry should hack the hosts file... they might have a Linux installation to fix first.

Copy link
Copy Markdown
Author

@g-kedev g-kedev Apr 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I use an Ubuntu. Don't remember touching any network configs and didn't really find anything concerning this on the fly. Adjusted the README entry a little bit.

@g-kedev g-kedev force-pushed the feat/readme_add_hosts_entry_command branch from d201d59 to 797d9a3 Compare April 24, 2026 09:53
@g-kedev g-kedev dismissed stale reviews from derrabauke and trowik via 1f3cb22 April 24, 2026 11:06
@g-kedev g-kedev force-pushed the feat/readme_add_hosts_entry_command branch from 797d9a3 to 1f3cb22 Compare April 24, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants