From 5a19056aa23b833e30fda7cae2f24ad635c9df2b Mon Sep 17 00:00:00 2001 From: Abhinandan Prateek Date: Wed, 7 Sep 2011 05:10:12 +0530 Subject: [PATCH] bug 10824: clearing up older entries in resolv.conf and dnsmasq-resolv.conf before adding so that duplicate entries do not end up in these files. status 10842: resolved fixed --- patches/systemvm/debian/config/etc/init.d/cloud-early-config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/patches/systemvm/debian/config/etc/init.d/cloud-early-config b/patches/systemvm/debian/config/etc/init.d/cloud-early-config index 680875213d7..f604ba517cd 100755 --- a/patches/systemvm/debian/config/etc/init.d/cloud-early-config +++ b/patches/systemvm/debian/config/etc/init.d/cloud-early-config @@ -225,6 +225,8 @@ setup_common() { hostname $NAME #Nameserver + sed -i -e "/^nameserver.*$/d" /etc/resolv.conf # remove previous entries + sed -i -e "/^nameserver.*$/d" /etc/dnsmasq-resolv.conf # remove previous entries if [ -n "$internalNS1" ] then echo "nameserver $internalNS1" > /etc/dnsmasq-resolv.conf