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 idea: query public IP using DNS (over TLS) #2

Open
andygeorge opened this issue Sep 11, 2023 · 0 comments
Open

Feature idea: query public IP using DNS (over TLS) #2

andygeorge opened this issue Sep 11, 2023 · 0 comments

Comments

@andygeorge
Copy link
Owner

Copied from here: GlenDC#13

I noticed this repo has a public IP detection package (also Go).

One useful feature I noticed is using DNS protocol itself (actually DNS over TLS) to query public IP from OpenDNS and Cloudflare. (Basically dig +short ANY myip.opendns.com @resolver1.opendns.com). They are doing it exclusively using DNS over TLS as of this commit. See this issue for explanation of specific attack that is possible using plaintext DNS.

Seems like OpenDNS and Cloudflare are the only two providers that properly support querying public IP over DoT. Google offers a similar service but not over TLS (and was removed in 320d91d for that reason).

Using DNS like this can supposedly be faster and less likely to be rate-limited than HTTP (this is just anecdotal, I haven't verified this). Might be worth adding to the mix as well as STUN.

Also, there is the option to collaborate somehow with qdm12/ddns-updater, e.g. to build a shared external IP library which can be used by that project, or vice versa.

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