From: martin f. krafft Date: Wed, 26 Feb 2014 13:01:39 +0000 (+0100) Subject: Allow nameserver to be specified X-Git-Url: https://git.madduck.net/code/vinst.git/commitdiff_plain/371c3a846758cc0ef0aa0c7ecd9fc5071b7725ad Allow nameserver to be specified --- diff --git a/vinst b/vinst index 66b70aa..c6abe72 100755 --- a/vinst +++ b/vinst @@ -35,6 +35,14 @@ while [ -n "$1" ]; do esac IPADDRESS="$1" ;; + (-d|--dns) + shift + if [ -z "$1" ]; then + echo >&2 'E: --dns/-d needs IP address' + exit 1 + fi + NAMESERVER="$1" + ;; (-g|--gateway) shift if [ -z "$1" ]; then