One can supply a net.Resolver with a Dial function to connect to whatever DNS server one wishes.
I have a system where an alternate set of DNS servers is written to /usr/local/etc/resolv.conf. I don't see a straightforward way to supply my own dnsConfig which reads in this alternate resolv.conf to replace the configuration read from /etc/resolv.conf.
If there were a way to do this I could leave the regular Dial implementation and other functionality in place, could let it choose amongst the set of available DNS servers, etc.
Searching github hasn't turned up examples of implementing reading in an alternate dnsConfig, is there nonetheless a way to do so?