mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 09:39:08 +00:00
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:
parent
5acf36affa
commit
366973ea80
@ -12,7 +12,7 @@ start()
|
|||||||
{
|
{
|
||||||
ebegin "Testing DNS resolution"
|
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"
|
eend $? "DNS fix failed"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user