[GH-ISSUE #10] Larger list of hosts per ip is not working in Windows #6

Closed
opened 2026-03-02 05:08:03 +03:00 by kerem · 3 comments
Owner

Originally created by @C0mp4ct on GitHub (Aug 10, 2020).
Original GitHub issue: https://github.com/goodhosts/hostsfile/issues/10

If hosts file has more than 9 hosts per IP, Windows doesn't see the rest of the hosts. See here

Originally created by @C0mp4ct on GitHub (Aug 10, 2020). Original GitHub issue: https://github.com/goodhosts/hostsfile/issues/10 If hosts file has more than 9 hosts per IP, Windows doesn't see the rest of the hosts. [See here](https://superuser.com/questions/932112/is-there-a-maximum-number-of-hostname-aliases-per-line-in-a-windows-hosts-f)
kerem closed this issue 2026-03-02 05:08:03 +03:00
Author
Owner

@luthermonson commented on GitHub (Aug 10, 2020):

This is great info, thanks I'll patch it when I find some time.

<!-- gh-comment-id:671539735 --> @luthermonson commented on GitHub (Aug 10, 2020): This is great info, thanks I'll patch it when I find some time.
Author
Owner

@rfay commented on GitHub (Aug 10, 2020):

There's loads more info on this in the original issue, https://github.com/lextoumbourou/goodhosts/issues/11 - It seems that multiple lines would help solve the problem.

<!-- gh-comment-id:671560423 --> @rfay commented on GitHub (Aug 10, 2020): There's loads more info on this in the original issue, https://github.com/lextoumbourou/goodhosts/issues/11 - It seems that multiple lines would help solve the problem.
Author
Owner

@luthermonson commented on GitHub (Oct 15, 2020):

@rfay @C0mp4ct this is now supported with the HostsPerLine which can take an int to split, the default behavior in the Clean func will be to pass in the OS specific param, windows is 9 per line and the rest are unlimited.

Additionally, this is merged up to v1.0.5 of the cli, you can use --clean on add/remove or the clean command itself will just scrub what you have in place.

https://github.com/goodhosts/cli/releases/tag/v.1.0.5

I'm closing this issue, if this does not solve the problems please feel free to open a new one with anything that comes from this update.

<!-- gh-comment-id:709032527 --> @luthermonson commented on GitHub (Oct 15, 2020): @rfay @C0mp4ct this is now supported with the HostsPerLine which can take an int to split, the default behavior in the Clean func will be to pass in the OS specific param, windows is 9 per line and the rest are unlimited. Additionally, this is merged up to v1.0.5 of the cli, you can use --clean on add/remove or the clean command itself will just scrub what you have in place. https://github.com/goodhosts/cli/releases/tag/v.1.0.5 I'm closing this issue, if this does not solve the problems please feel free to open a new one with anything that comes from this update.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hostsfile#6
No description provided.