dhcpd.conf domain-name-servers
This commit is contained in:
parent
c1d16e6f77
commit
7f0b1b1601
|
@ -192,7 +192,7 @@ render_dhcpd_conf() {
|
||||||
# fetch_ip() to get the correct IP address of the VM.
|
# fetch_ip() to get the correct IP address of the VM.
|
||||||
printf "#\\n# File generated on %s\\n#\\n" "$date"
|
printf "#\\n# File generated on %s\\n#\\n" "$date"
|
||||||
printf "option domain-name \"%s\";\\n" "$DOMAIN"
|
printf "option domain-name \"%s\";\\n" "$DOMAIN"
|
||||||
printf "option domain-name-servers \"%s\";\\n\\n" "$DNS"
|
printf "option domain-name-servers %s;\\n\\n" "$DNS"
|
||||||
printf "subnet %s netmask %s {\\n" "$SUBNET" "$NETMASK"
|
printf "subnet %s netmask %s {\\n" "$SUBNET" "$NETMASK"
|
||||||
printf "\\toption routers %s;\\n" "$ROUTER"
|
printf "\\toption routers %s;\\n" "$ROUTER"
|
||||||
printf "\\tserver-name \"%s.%s\";\\n" "$SERVER" "$DOMAIN"
|
printf "\\tserver-name \"%s.%s\";\\n" "$SERVER" "$DOMAIN"
|
||||||
|
|
Loading…
Reference in New Issue