We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9cb861c + cca335e commit 00bfd50Copy full SHA for 00bfd50
1 file changed
dns.ks.in
@@ -30,9 +30,10 @@ else
30
fi
31
32
33
-curl fedoraproject.org
34
-if [[ $? != 0 ]]; then
35
- echo '*** curl fedoraproject.org failed' >> /root/RESULT
+HOSTNAME=fedoraproject.org
+getent hosts ${HOSTNAME}
+if [[ $? -ne 0 ]]; then
36
+ echo "*** Failed check: name resolution on ${HOSTNAME} in %post script" >> /root/RESULT
37
38
39
# No error was written to /root/RESULT file, everything is OK
0 commit comments