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 41c1689ab4
commit 4980c1a80e

View File

@ -14,7 +14,7 @@ start()
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)
eend $? "DNS fix failed"