From 982babb6a250d967bc8f00e7619b29adf7487e51 Mon Sep 17 00:00:00 2001 From: unman Date: Sun, 19 Mar 2017 21:56:34 +0000 Subject: [PATCH] If there is only 1 DNS server make both DNAT rules point to it --- network/qubes-setup-dnat-to-ns | 2 ++ 1 file changed, 2 insertions(+) diff --git a/network/qubes-setup-dnat-to-ns b/network/qubes-setup-dnat-to-ns index d7e09ea..68f87ea 100755 --- a/network/qubes-setup-dnat-to-ns +++ b/network/qubes-setup-dnat-to-ns @@ -5,6 +5,8 @@ addrule() FIRSTONE=no RULE1="-A PR-QBS -d $NS1 -p udp --dport 53 -j DNAT --to $1 -A PR-QBS -d $NS1 -p tcp --dport 53 -j DNAT --to $1" + RULE2="-A PR-QBS -d $NS2 -p udp --dport 53 -j DNAT --to $1 +-A PR-QBS -d $NS2 -p tcp --dport 53 -j DNAT --to $1" else RULE2="-A PR-QBS -d $NS2 -p udp --dport 53 -j DNAT --to $1 -A PR-QBS -d $NS2 -p tcp --dport 53 -j DNAT --to $1"