If there is only 1 DNS server make both DNAT rules point to it

This commit is contained in:
unman 2017-03-19 21:56:34 +00:00
parent bd6ea489e3
commit 982babb6a2
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C

View File

@ -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"