q icon indicating copy to clipboard operation
q copied to clipboard

feature request: custom ip for doh domain

Open lessload opened this issue 1 year ago • 1 comments

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

lessload avatar Aug 16 '23 07:08 lessload

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

rahilarious avatar Mar 04 '24 04:03 rahilarious