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

[Feature request] ability to listen on multiple addresses/ports #1

Open
alpominth opened this issue Jan 20, 2023 · 0 comments
Open

Comments

@alpominth
Copy link

Here I use a network namespace sandbox in which a DNS port is forwarded to a subnet in this way:

iptables -t nat -A PREROUTING -i subnet -p udp -s 10.0.0.2 -d 10.0.0.1 --dport 53 -j DNAT --to-destination 10.0.0.1:1053
ip6tables -t nat -A PREROUTING -i subnet -p udp -s fd00::1 -d fd00::1 --dport 53 -j DNAT --to-destination [fd00::1]:1053

The peer will have a UDP port 53 available in the IPv4 and IPv6 address for DNS resolution.

I could just set the addresses of bind IP in zdns to [::]:1053, but it would listen on all ports of my machine, such thing is a undesirable behavior.

An option in zdns to listen on multiple addresses/ports would be nice in this scenario.

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