From 371c3a846758cc0ef0aa0c7ecd9fc5071b7725ad Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Wed, 26 Feb 2014 14:01:39 +0100 Subject: [PATCH] Allow nameserver to be specified --- vinst | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.39.5