diff --git a/templates/etc/dhcp/dhcpd.conf.erb b/templates/etc/dhcp/dhcpd.conf.erb index 733d413..dc50cc0 100644 --- a/templates/etc/dhcp/dhcpd.conf.erb +++ b/templates/etc/dhcp/dhcpd.conf.erb @@ -16,8 +16,8 @@ subnet 10.112.0.0 netmask 255.255.192.0 { authoritative; range <%= @dhcprange_start %> <%= @dhcprange_end %>; - # DNS: srv01 (10.112.1.1) & gw01 (10.112.14.1) - option domain-name-servers 10.112.1.1, 10.112.14.1; + # DNS: this gateway (<%= @gw_ipv4 %>) & srv01 (10.112.1.1) + option domain-name-servers <%= @gw_ipv4 %>, 10.112.1.1; option routers <%= @gw_ipv4 %>; }