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

DoT listener IPv6 Support #355

Open
brotaxt opened this issue Nov 9, 2023 · 5 comments
Open

DoT listener IPv6 Support #355

brotaxt opened this issue Nov 9, 2023 · 5 comments

Comments

@brotaxt
Copy link

brotaxt commented Nov 9, 2023

Hey, does the dot listener supports IPv6? I'm using the following configuration but the response from routedns is always running over ipv4!?

  address = "[::]:853"
  protocol = "dot"
  resolver = "local_resolver"
  server-crt = "/opt/routedns/fullchain.pem"
  server-key = "/opt/routedns/privkey.pem"

@folbricht
Copy link
Owner

Looks like it doesn't at the moment based on https://github.com/folbricht/routedns/blob/master/dotlistener.go#L31, but that's an easy fix.

@folbricht
Copy link
Owner

The current implementation always listens on both, so if you use address = ":853" it'll be accepting connections over IPv4 as well as IPv6

@folbricht
Copy link
Owner

The issue-355 branch adds a new option for listeners ip-version = 6 that can be used to only use IPv6. This should work for DoT as well as plain DNS listeners (tcp and udp).
Not quite sure yet if this is the right thing to do, but feel free to test it out.

@brotaxt
Copy link
Author

brotaxt commented Nov 12, 2023

This version does not start without ip-version parameter defined for all listeners
routedns[9679]: Error: ip-version must be 4 or 6

@folbricht
Copy link
Owner

Thanks, fixed that

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

2 participants