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

Support IPv6 DNS #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jipperinbham
Copy link

When attempting to use kuard where /etc/resolv.conf contained an IPv6 for the nameserver, it would error when making the DNS query due to net.Dial expecting the IP to be surround with square brackets. In order to detect if it's IPv6, it parses the IP string to a net.IP and relies on To4() returning nil for determining it's not a v4 and so must be a v6.

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

Successfully merging this pull request may close these issues.

1 participant