From 5fe80ff4ab2b1fd62a01ce98fcdf50bf1cee99d1 Mon Sep 17 00:00:00 2001
From: "Leigh B. Stoller" <stoller@flux.utah.edu>
Date: Wed, 4 May 2005 19:30:48 +0000
Subject: [PATCH] Awful hack to allow newnode MFS to work in both inner and
 outer emulab. Okay, its awful but its simple, which is good for getting it
 into the release!

---
 db/dhcpd_makeconf.in | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/db/dhcpd_makeconf.in b/db/dhcpd_makeconf.in
index a3c5f4db2d..c6734f0c50 100755
--- a/db/dhcpd_makeconf.in
+++ b/db/dhcpd_makeconf.in
@@ -209,6 +209,7 @@ while (<IF>) {
 		    my $node_id;
 		    my $next_server = "";
 		    my $hostname = "";
+		    my $dns = "";
 
 		    if ($vnames && defined($row{"vname"})) {
 			$node_id = $row{"vname"};
@@ -224,6 +225,7 @@ while (<IF>) {
 			
 			$next_server = "${spaces}\tnext-server " .
 			    $bossnodes{$tag} . ";\n";
+			$dns = "${spaces}\toption domain-name-servers 1.1.1.1;\n";
 		    }
 		    else {
 			$hostname =
@@ -235,6 +237,7 @@ while (<IF>) {
 
 		    print $OUT "${spaces}host $ip {\n";
 		    print $OUT $next_server;
+		    print $OUT $dns;
 		    print $OUT "${spaces}\thardware ethernet $mac;\n";
 		    print $OUT $hostname;
 		    print $OUT "${spaces}\tfixed-address $ip;\n";
-- 
GitLab