q
q copied to clipboard
feature request: custom ip for doh domain
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
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.
- edit
/etc/hosts
with your custom ip for domain (i.e. 2.3.4.5 dns.customdomain.net) -
curl --verbose --doh-url https://dns.customdomain.net/dns-query <domain-to-query>
- Check the start of output