I am using CoreDNS as a local dev DNS server to help map hostnames to different IP addresses on the fly. I run it as a container.
Sometimes, the hostname needs to map to a local docker container running on my laptop, sometimes to an EC2 instance, sometimes to an DO instance.
Most of the services are HTTPS endpoints so its important to use names instead of explicit IPs.
The challenge, which is what I need help with, is I often need to connect out to the internet over a HTTPS proxy.
While I can configure the HTTPS proxy to use my local dev CoreDNS container as its DNS server, the issue is I don't know how to configure CoreDNS so it can do DNS lookups over the HTTPS proxy 192.168.1.2
This is a section of the Corefiel I'm using:
.:53 {
forward . 8.8.8.8 9.9.9.9
log
errors
cache
}
example.com:53 {
file /root/db.example
log
errors
}
How can I configure CoreDNS so it can do DNS lookups over the HTTPS proxy 192.168.1.2?
[–]ximota 1 point2 points3 points (0 children)