Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows hostfile has a maximum of nine hostname aliases per line #252

Open
neikei opened this issue Jan 24, 2018 · 0 comments
Open

Windows hostfile has a maximum of nine hostname aliases per line #252

neikei opened this issue Jan 24, 2018 · 0 comments

Comments

@neikei
Copy link

neikei commented Jan 24, 2018

Windows only allows 9 host entries per line, but the hostmanager plugin adds every host alias into one line. So, the hostmanager has to split the entries into packages of nine aliases and add more than one line if it is necessary.

# Current hostfile creation
127.0.0.1  domain.tld
127.0.0.1  h01.domain.tld h02.domain.tld h03.domain.tld h04.domain.tld h05.domain.tld h06.domain.tld h07.domain.tld h08domain.tld h09domain.tld h10domain.tld h11domain.tld

# Working hostfile
127.0.0.1  domain.tld
127.0.0.1  h01.domain.tld h02.domain.tld h03.domain.tld h04.domain.tld h05.domain.tld h06.domain.tld h07.domain.tld h08domain.tld h09domain.tld
127.0.0.1  h10domain.tld h11domain.tld

Source: https://superuser.com/questions/932112/is-there-a-maxium-number-of-hostname-aliases-per-line-in-a-windows-hosts-file#932113

@neikei neikei changed the title Windows hostfile has a maximum of hostname aliases per line Windows hostfile has a maximum of nine hostname aliases per line Jan 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant