Created
March 23, 2020 08:41
-
-
Save mister2d/3e4b37e60823f9071b5d4a22150c1d55 to your computer and use it in GitHub Desktop.
Disable systemd dns listener
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I’m using a simple dnsmasq. | |
# Enable forward lookup of the 'consul' domain: | |
server=/consul/127.0.0.1#8600 | |
# Accept DNS queries only from hosts whose address is on a local subnet. | |
local-service | |
If systemd resolver is running you’ll hit an issue since it’s already binding 127.0.0.1:53. | |
Add this to /etc/systemd/resolved.conf | |
DNSStubListener=no | |
Then use the dns_servers directive to point your containers to dnsmasq. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment