BTS

Issue1234

Title dns bootoption is limited to 2 name servers
Priority bug Status chatting
Superseder Nosy List 6opo9a, lvdh
Assigned To Topics

Created on 2013-03-01.09:06:41 by 6opo9a, last changed 2015-08-12.07:45:27 by lvdh.

Messages
msg5230 (view) Author: lvdh Date: 2015-08-12.07:45:27
Hi Mika,

Thank you for your update!

No worries, I get the situation. I'm happy that you guys decided to still pick up this 
old request :)

If you have any suggestions at all regarding the pull request, don't hesitate to put 
comments on GitHub.

Best regards,
Laurens
msg5221 (view) Author: mika Date: 2015-08-10.09:29:45
Hi!

Thanks for pinging us, what a shame we didn't provide any further feedback,
sorry about that. :(
Sadly this issue was assigned to someone who no longer is active in the Grml
team, we'll try to take care of it ASAP. Your patch in
https://github.com/grml/live-boot-grml/pull/4 LGTM, I'll talk to Evgeni who
takes care of our live-boot-grml to get it merged.

regards,
Mika
msg5209 (view) Author: lvdh Date: 2015-08-06.20:04:16
Any chance someone would be willing to have a look at this issue? I realize the 
reauest is quite old, however the issue is still relevant.

Earlier on I created a pull request with a possible patch;

https://github.com/grml/live-boot-grml/pull/4

Please do provide constructive feedback if I got that patch wrong.
msg4537 (view) Author: 6opo9a Date: 2013-03-17.13:53:21
Maybe try to do like this (according https://github.com/grml/live-boot-
grml/blob/master/debian/patches/26_support_dns_bootoption.patch):
1) +++ live-boot-grml/scripts/boot/9990-cmdline-old
leave only:
+dns=*)
+DNSSERVERS="${_PARAMETER#*=}"
+export DNSSERVERS
;;
2) in +++ live-boot-grml/scripts/boot/9990-grml-networking.sh make:
+# dns bootoption
+if [ -n "$DNSSERVERS" ]
+then
+	# disable any existing entries
+	if [ -r $RESOLVCONF ]
+	then
+		sed -i 's/nameserver/# nameserver/' $RESOLVCONF
+	fi
+       DNSSERVERS=`echo $DNSSERVERS| sed 's/,/ /g'`
+	for i in $DNSSERVERS
+	do
+		echo "nameserver $i" >> $RESOLVCONF
+	done
+fi
+
msg4522 (view) Author: bionix Date: 2013-03-06.07:27:59
The fault is in package "live-boot-grml" ( https://github.com/grml/live-boot-grml 
).
Files:
* /scripts/boot/9990-networking.sh
* debian/patches/26_support_dns_bootoption.patch
msg4521 (view) Author: bionix Date: 2013-03-06.07:24:19
Actually our kernel patch supports only two dns servers not three.
I will test a solution/fix to improve the feature to support three dns servers.

If you have a solution, too... welcome and send us a patch. :D
msg4515 (view) Author: 6opo9a Date: 2013-03-01.09:06:41
Trying to set more than 2 DNS in the dns bootoption:
dns=1.1.1.1,2.2.2.2,3.3.3.3
expecting:
cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 1.1.1.1
nameserver 2.2.2.2
nameserver 3.3.3.3

Current result:
cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 1.1.1.1,2.2.2.2
nameserver 2.2.2.2,3.3.3.3
History
Date User Action Args
2015-08-12 07:45:27lvdhsetmessages: + msg5230
2015-08-10 09:29:45mikasetassignedto: bionix ->
messages: + msg5221
2015-08-06 20:04:16lvdhsetnosy: + lvdh, - bionix
messages: + msg5209
2013-09-25 10:52:22mikasetnosy: bionix, 6opo9a
title: dns bootoption bug -> dns bootoption is limited to 2 name servers
2013-03-17 13:53:216opo9asetnosy: bionix, 6opo9a
messages: + msg4537
2013-03-06 07:28:25bionixsetassignedto: bionix
nosy: + bionix
2013-03-06 07:27:59bionixsetmessages: + msg4522
2013-03-06 07:24:19bionixsetstatus: unread -> chatting
messages: + msg4521
2013-03-01 09:06:416opo9acreate