diff --git a/ct/debian-v4.sh b/ct/debian-v4.sh
index f3ddea2f..64625a86 100644
--- a/ct/debian-v4.sh
+++ b/ct/debian-v4.sh
@@ -88,6 +88,7 @@ function default_settings() {
   echo -e "${DGN}Using Static IP Address: ${BGN}dhcp${CL}"
   NET=dhcp
   echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
+  NS=""
   GATE=""
   echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
   MAC=""
@@ -184,10 +185,11 @@ function advanced_settings() {
   exitstatus=$?
   if [ $exitstatus = 0 ]; then
     if [ -z $GATE1 ]; then
+      NS=""
       GATE1="Default" GATE=""
       echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
     else
-      NS=$GATE1
+      NS="-nameserver=$GATE1"
       GATE=",gw=$GATE1"
       echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
     fi
@@ -258,7 +260,7 @@ export PCT_DISK_SIZE=$DISK_SIZE
 export PCT_OPTIONS="
   -features $FEATURES
   -hostname $HN
-  -nameserver=$NS
+  $NS
   -net0 name=eth0,bridge=$BRG$MAC,ip=$NET$GATE$VLAN
   -onboot 1
   -cores $CORE_COUNT