Last active
January 21, 2019 01:13
-
-
Save ericbisme/e59e48700783209b29b64573c2703adb to your computer and use it in GitHub Desktop.
dnsmasq supplementary config for local DNS
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
echo 'address=/ericbisme.net/192.168.10.128 # K8s Ingress' > /etc/dnsmasq.d/10-thepit.conf && \ | |
echo 'address=/pi.hole/192.168.10.128 # pi-hole address' >> /etc/dnsmasq.d/10-thepit.conf && \ | |
echo 'server=/thepit.ericbisme.net/1.1.1.1 # Resolve externally' >> /etc/dnsmasq.d/10-thepit.conf && \ | |
service dnsmasq restart | |
address=/ericbisme.net/192.168.10.128 # K8s Ingress | |
address=/pi.hole/192.168.10.128 # pi-hole address | |
server=/thepit.ericbisme.net/1.1.1.1 | |
{ | |
"service": { | |
"dns": { | |
"forwarding": { | |
"cache-size": "10000", | |
"except-interface": [ | |
"eth0" | |
], | |
"options": [ | |
"address=/ericbisme.net/192.168.10.128 # K8s Ingress", | |
"address=/pi.hole/192.168.10.128 # pi-hole address", | |
"server=/thepit.ericbisme.net/1.1.1.1" | |
] | |
} | |
} | |
"name-server" : [ | |
"192.168.10.129" | |
], | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment