diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index 21341c7d8..54cfb84f6 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -1050,7 +1050,7 @@ sub addnet } push @netent, "zone $domain. {\n"; my $ddnserver = $nameservers; - $ddnsserver =~ s/,.*//; + $ddnserver =~ s/,.*//; push @netent, "$domain. {\n"; push @netent, " primary $ddnserver; key xcat_key; \n"; push @netent, " }\n";