Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack
2016-02-17 14:11:13 +00:00
parent 31886b91ad
commit bcc29d49e9

View File

@@ -14,7 +14,7 @@ start()
ebegin "Testing DNS resolution" ebegin "Testing DNS resolution"
ifconfig eth0 2>1 >/dev/null && \ ifconfig eth0 2>&1 >/dev/null && \
(dig localhost 2>&1 > /dev/null || printf "nameserver 8.8.8.8\nnameserver 8.8.4.4\n" > /etc/resolv.conf) (dig localhost 2>&1 > /dev/null || printf "nameserver 8.8.8.8\nnameserver 8.8.4.4\n" > /etc/resolv.conf)
eend $? "DNS fix failed" eend $? "DNS fix failed"