summaryrefslogtreecommitdiff
path: root/dns-ready-check.service
diff options
context:
space:
mode:
Diffstat (limited to 'dns-ready-check.service')
-rw-r--r--dns-ready-check.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/dns-ready-check.service b/dns-ready-check.service
new file mode 100644
index 0000000..a945739
--- /dev/null
+++ b/dns-ready-check.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Check if Domain Name System resolver is ready
+DefaultDependencies=no
+Requires=network-online.target
+After=network-online.target
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/host example.com
+Restart=on-failure
+RestartSec=1
+StandardOutput=null