I have a local DNS server with a couple of custom DNS entries.
Docker’s internal DNS server seems to bypass said local DNS server and tries to lookup with an unknown dns server and I can’t even check which upstream dns server it is even using.
I have checked resolv.conf
and it has said dns server in there and even tried editing daemon.json to
{
"dns": ["192.168.1.31", "208.67.222.222"]
}
but it still doesn’t use the first DNS server I provided
I’m checking it by running docker run --rm --network="web" busybox nslookup domain.tld
“web” being the network that my docker-compose stack is using, and “domain.tld” being a placeholder for the actual domain I’m using.
Here’s the output (I have changed the values in the actual output becuase globally said domain actually points to my IP address):
Server: 127.0.0.11
Address: 127.0.0.11:53
Non-authoritative answer:
Name: domain.tld
Address: 1.2.3.4
*** Can't find domain.tld: No answer