You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
443 B
20 lines
443 B
10 months ago
|
#!/bin/bash
|
||
|
|
||
|
t_Log "Running $0 - testing to see if DNS works"
|
||
|
if [ $SKIP_QA_HARNESS -eq 1 ]; then
|
||
|
HOST=www.centos.org
|
||
|
else
|
||
|
HOST=repo.centos.qa
|
||
|
fi
|
||
|
|
||
|
# its important we dont hit a dns record with a wildcard like centos.org
|
||
|
getent hosts $HOST >/dev/null
|
||
|
|
||
|
t_CheckExitStatus $?
|
||
|
|
||
|
# implied results:
|
||
|
# - network works
|
||
|
# - default route is really routeable
|
||
|
# - atleast one network link on the machine is working
|
||
|
# - kernel' ip stack is functional
|