Use static resolvers, if provided, in order to resolve names bypassing OpenDNS

This commit is contained in:
Frank Denis
2012-09-29 15:08:44 +02:00
parent 7bea3fbc63
commit 2f6ab604fc
2 changed files with 4 additions and 3 deletions
@@ -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