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

dns.mod doesn't handle prefer-ipv6 change properly #773

Open
michaelortmann opened this issue Nov 20, 2018 · 1 comment
Open

dns.mod doesn't handle prefer-ipv6 change properly #773

michaelortmann opened this issue Nov 20, 2018 · 1 comment

Comments

@michaelortmann
Copy link
Member

michaelortmann commented Nov 20, 2018

.set prefer-ipv6
Currently: 0

.tcl dnslookup google.com foo
"foo 216.58.207.78 google.com 1"

.set prefer-ipv6 1
Ok, set.

.tcl dnslookup google.com foo
"foo 216.58.207.78 google.com 1"

[22:32:37] DNS Resolver: Cache record for "google.com" (216.58.207.78) has expired. (state: 0) Marked for expire at: 1542749557.

.tcl dnslookup google.com foo
"foo 2a00:1450:400e:80b::200e google.com 1"

If dns.mod finds a cached result, its not looking at (a changed) prefer-ipv6.

@michaelortmann
Copy link
Member Author

See coredns.c:dns_forward() and coredns.c:findhost()

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