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: custom ip for doh domain #60

Open
lessload opened this issue Aug 16, 2023 · 1 comment
Open

feature request: custom ip for doh domain #60

lessload opened this issue Aug 16, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@lessload
Copy link

your apps so good.
for some diagnostic use case i need to custom ip for @https://dns.customdomain.net , now i need to custom host file for it.
It would be great if your apps support it

@natesales natesales added the enhancement New feature or request label Aug 16, 2023
@rahilarious
Copy link

rahilarious commented Mar 4, 2024

This could be very easy by editing /etc/hosts file. But it seems since this is a Go package it doesn't respect it. So as a workaround if somebody really want to quickly test specific ip.

  1. edit /etc/hosts with your custom ip for domain (i.e. 2.3.4.5 dns.customdomain.net)
  2. curl --verbose --doh-url https://dns.customdomain.net/dns-query <domain-to-query>
  3. Check the start of output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants