Skip to content

Instantly share code, notes, and snippets.

@ericbisme
Last active January 21, 2019 01:13
Show Gist options
  • Save ericbisme/e59e48700783209b29b64573c2703adb to your computer and use it in GitHub Desktop.
Save ericbisme/e59e48700783209b29b64573c2703adb to your computer and use it in GitHub Desktop.
dnsmasq supplementary config for local DNS
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