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

hostctl strips ::0 off ipv6 addresses when adding any domain #88

Open
alcroito opened this issue Feb 7, 2023 · 0 comments
Open

hostctl strips ::0 off ipv6 addresses when adding any domain #88

alcroito opened this issue Feb 7, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@alcroito
Copy link

alcroito commented Feb 7, 2023

Describe the bug
My ubuntu 22.04 system has the following lines in /etc/hosts by default

# The following lines are desirable for IPv6 capable hosts
::1 localhost
::1 ip6-localhost
::1 ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

Whenever hostctl is invoked to add any domain, the ::0 addresses get their 0 stripped.

hostctl add domains awesome my-awesome-ui.project.loc my-awesome-api.project.loc

and the resulting file ends up

# The following lines are desirable for IPv6 capable hosts
::1 localhost
::1 ip6-localhost
::1 ip6-loopback
fe00:: ip6-localnet # <------
ff00:: ip6-mcastprefix #  <------
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

##################################################################
# Content under this line is handled by hostctl. DO NOT EDIT.
##################################################################

# profile.on awesome
127.0.0.1 my-awesome-ui.project.loc
127.0.0.1 my-awesome-api.project.loc
# end

Expected behavior
the ipv6 addresses do not get their 0 stripped

System (please complete the following information):

  • OS: Linux
  • Version: Ubuntu 22.04
@alcroito alcroito added the bug Something isn't working label Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants