From e582db0a8b7ff060831aacc8eb7e07e2609b5f3b Mon Sep 17 00:00:00 2001 From: ohrensessel Date: Mon, 2 Jun 2014 09:38:18 +0200 Subject: [PATCH] DHCP: Announce this gateway and srv01 as DNS servers --- templates/etc/dhcp/dhcpd.conf.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 %>; }