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: Add support for AAAA and PTR queries #11

Closed
phantomcraft opened this issue Sep 10, 2019 · 5 comments · Fixed by #14
Closed

Feature request: Add support for AAAA and PTR queries #11

phantomcraft opened this issue Sep 10, 2019 · 5 comments · Fixed by #14

Comments

@phantomcraft
Copy link

Tor manual says:

DNSPort [address:]port|auto [isolation flags]
f non-zero, open this port to listen for UDP DNS requests, and resolve them anonymously. This port only handles A, AAAA, and PTR requests---it doesn’t handle arbitrary DNS request types. Set the port to
"auto" to have Tor pick a port for you. This directive can be specified multiple times to bind to multiple addresses/ports. See SocksPort for an explanation of isolation flags. (Default: 
0)

I cannot forward DNSPort using unix sockets to provide AAAA and PTR support for network namespaces without veth tunnels, that's why I'm requesting.

@phantomcraft
Copy link
Author

This small program can serve as a basis: https://github.com/zeroshirts/anotherproxy/blob/dev/main.go

Can you implement this feature?

@bfix
Copy link
Owner

bfix commented Oct 5, 2019

Sorry, I am currently busy doing other things, but feel free to fork the repository and send a merge request. Thanks. >Y<

@phantomcraft
Copy link
Author

@bfix

I don't know how to program in Go.

I found this plugin for CoreDNS: https://github.com/schoentoon/tordns/blob/master/tordns.go

Perhaps could serve as a basis.

mtrojnar added a commit to mtrojnar/Tor-DNS that referenced this issue May 3, 2020
Partially addresses bfix#11
Fixes bfix#12
mtrojnar added a commit to mtrojnar/Tor-DNS that referenced this issue May 5, 2020
@bfix bfix closed this as completed in #14 May 5, 2020
@phantomcraft
Copy link
Author

I tested the latest commit, but doesn't work still.

goo.gl has two IPs, one is IPv4 the other 6.

user@localhost:/dev/shm/Tor-DNS$ host -p 53 goo.gl
goo.gl has address 74.125.24.139
goo.gl has address 74.125.24.138
goo.gl has address 74.125.24.113
goo.gl has address 74.125.24.100
goo.gl has address 74.125.24.101
goo.gl has address 74.125.24.102
goo.gl has IPv6 address 2404:6800:4003:c03::71

When queried with Tor-DNS, it only shows the IPv4 address:

user@localhost:/dev/shm/Tor-DNS$ ./tor-dns -p "[::]:1053" -v
[Query:7a:1] goo.gl
[Response:7a] 216.58.208.46
[Query:a62c:28] goo.gl
[Response:a62c] 216.58.208.46
[Query:3d3b:15] goo.gl
[Response:3d3b] 216.58.208.46

user@localhost:/dev/shm/Tor-DNS$ host -p 1053 goo.gl
goo.gl has address 216.58.208.46
goo.gl has address 216.58.208.46
goo.gl has address 216.58.208.46

@mtrojnar
Copy link
Contributor

mtrojnar commented May 5, 2020

The feature you requested was AAAA and PTR support, and not returning more than one response. If you requested returning more than one response we could close your request without any further development, because SOCKS returns only one response, and there is nothing we can do about it.

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 a pull request may close this issue.

3 participants