Skip to content

Commit

Permalink
Modified process_rules to use Googles DNS when using FQDN based rules
Browse files Browse the repository at this point in the history
  • Loading branch information
bentasker committed Apr 17, 2015
1 parent c9ecc7c commit 577098d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/process_rules.sh
Expand Up @@ -28,8 +28,7 @@ while read -r DNFIELD
do

# Run a nameserver lookup on the domain

IPS=$( host `echo $DNFIELD | awk -F\: '{print $1}'` | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' );
IPS=$( host `echo $DNFIELD 8.8.4.4 | awk -F\: '{print $1}'` | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' );
GW=$(echo $DNFIELD | awk -F\: '{print $2}')
NAT=$(echo $DNFIELD | awk -F\: '{print $2}')

Expand Down

0 comments on commit 577098d

Please sign in to comment.