No, the only exposed API is Dial.
- sean
On Thu, Jun 19, 2025, 18:45 Denton Gentry wrote:
> 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
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