test localhost dns lookup as it doesnt time out slowly if no network access

Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
This commit is contained in:
Justin Cormack 2016-01-18 17:13:31 +00:00
parent 5acf36affa
commit 366973ea80

View File

@ -12,7 +12,7 @@ start()
{
ebegin "Testing DNS resolution"
dig www.docker.com 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"
}