Use static resolvers, if provided, in order to resolve names bypassing OpenDNS
This commit is contained in:
@@ -39,8 +39,7 @@ remove_old_exceptions() {
|
||||
}
|
||||
}
|
||||
|
||||
name_servers=$(get_dhcp_dns || get_gw)
|
||||
|
||||
name_servers=$(./get-static-resolvers.sh || get_dhcp_dns || get_gw)
|
||||
[ x"$name_servers" = 'x' ] && exit 0
|
||||
|
||||
default_domain=$(./get-current-default-domain.sh)
|
||||
|
||||
@@ -2,4 +2,6 @@
|
||||
|
||||
. ./common.inc
|
||||
|
||||
[ -r "$STATIC_RESOLVERS_FILE" ] && cat "$STATIC_RESOLVERS_FILE"
|
||||
[ -r "$STATIC_RESOLVERS_FILE" ] && cat "$STATIC_RESOLVERS_FILE" && exit 0
|
||||
exit 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user