diff --git a/Dockerfile b/Dockerfile index d1dd1067e27ae4c6d4675f1dc0c42681b55b86db..1647109507a6c36de34bc46d0af34f9889309d8a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM ubuntu:20.04 MAINTAINER root@recolic.net RUN apt update -RUN apt install -y curl netcat iputils-ping python3.8 +RUN DEBIAN_FRONTEND=noninteractive apt install -y curl netcat iputils-ping python3.8 dnsutils RUN ln -s /usr/bin/python3.8 /usr/bin/python3 # RUN pacman -Sy # RUN pacman -S --noconfirm curl netcat iputils grep diff --git a/datafile_gen_daemon_conf.py b/datafile_gen_daemon_conf.py index 968d722c19575333b24a3344c3c1e6dc5273ecf2..9df5f31aad097ead859090050223e615d5d73257 100644 --- a/datafile_gen_daemon_conf.py +++ b/datafile_gen_daemon_conf.py @@ -20,6 +20,7 @@ tests = [ ('./do.bash shortlink', 'Short Link'), ('./do.bash cc-dns', 'recolic.cc DNS'), ('./do.bash home-http', 'Home NAS & DDNS & HTTP'), + ('./do.bash domain2ip', 'Domain to IP'), ] # ('./do.bash ddns-home', 'DDNS home'), diff --git a/do.bash b/do.bash index e2eae8e23c3991bb72411d5d105a77a06e88a7dc..6b4529c3918d906400d9dedade1b656b379871c5 100755 --- a/do.bash +++ b/do.bash @@ -153,6 +153,9 @@ function do_test () { # NO icmp required. curl -L https://recolic.net/hms.php | grep betterlisting || return $? ;; + domain2ip ) + dig +short 1.1.1.1.ip.recolic.cc | grep 1.1.1.1 || return $? + ;; * ) echo PROGRAMMING ERROR: NO TARGET "$1" available. return 1 @@ -186,7 +189,8 @@ if [[ "$1" = all ]]; then do_test_twice shortlink && do_test_twice dl && do_test_twice cc-dns && - do_test_twice home-http + do_test_twice home-http && + do_test_twice domain2ip exit $? fi