From 683fdc89b0a1f29ed0dde83d2300a6bd4482ac9f Mon Sep 17 00:00:00 2001 From: r00t Date: Fri, 3 Jul 2015 15:42:27 -0400 Subject: [PATCH] fixing some dns bugs if running in VM --- extra/pre-build.d/etc/resolvconf.conf.failover | 8 ++++++++ overlay/etc/systemd/scripts/livecd.fix.sh | 2 ++ 2 files changed, 10 insertions(+) create mode 100644 extra/pre-build.d/etc/resolvconf.conf.failover diff --git a/extra/pre-build.d/etc/resolvconf.conf.failover b/extra/pre-build.d/etc/resolvconf.conf.failover new file mode 100644 index 0000000..e834bb2 --- /dev/null +++ b/extra/pre-build.d/etc/resolvconf.conf.failover @@ -0,0 +1,8 @@ +# Configuration for resolvconf(8) +# See resolvconf.conf(5) for details + +resolv_conf=/etc/resolv.conf +# If you run a local name server, you should uncomment the below line and +# configure your subscribers configuration files below. +#name_servers=127.0.0.1 +name_servers='4.2.2.1 4.2.2.2 4.2.2.3' diff --git a/overlay/etc/systemd/scripts/livecd.fix.sh b/overlay/etc/systemd/scripts/livecd.fix.sh index 62b64f4..bf3c022 100755 --- a/overlay/etc/systemd/scripts/livecd.fix.sh +++ b/overlay/etc/systemd/scripts/livecd.fix.sh @@ -39,6 +39,8 @@ do ifconfig ${i} down fi netctl restart ${i} > /dev/null 2>&1 + cat /etc/resolvconf.conf.failover > /etc/resolvconf.conf + resolvconf -u done }