From 5eed1bbba483494559a6234645ea833914e4b3ca Mon Sep 17 00:00:00 2001 From: Micah R Ledbetter Date: Sat, 27 Jan 2018 14:01:12 -0600 Subject: [PATCH] Use dns_servers in dnsmasq.conf (#794) --- roles/dns_adblocking/templates/dnsmasq.conf.j2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/roles/dns_adblocking/templates/dnsmasq.conf.j2 b/roles/dns_adblocking/templates/dnsmasq.conf.j2 index 3b8c4c5..3424d54 100644 --- a/roles/dns_adblocking/templates/dnsmasq.conf.j2 +++ b/roles/dns_adblocking/templates/dnsmasq.conf.j2 @@ -88,8 +88,9 @@ # You can control how dnsmasq talks to a server: this forces # queries to 10.1.2.3 to be routed via eth1 # server=10.1.2.3@eth1 -server=8.8.8.8 -server=8.8.4.4 +{% for host in dns_servers.ipv4 %} +server={{ host }} +{% endfor %} # and this sets the source (ie local) address used to talk to # 10.1.2.3 to 192.168.1.1 port 55 (there must be a interface with that