docker run --hostname dns.mageddo --name dns-proxy-server -p 5380:5380 \
--restart=unless-stopped -d \
-v /opt/dns-proxy-server/conf:/app/conf \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /etc/resolv.conf:/etc/resolv.conf \
defreitas/dns-proxy-server
$ sudo ./dns-proxy-server -service=docker
$ tail -f /var/log/dns-proxy-server.log
this way it will start with the OS
if you want to stop
$ sudo service dns-proxy-server stop
Stopping serviceā¦
Service stopped
if you don’t want this service anymore
$ sudo service dns-proxy-server uninstall
Are you really sure you want to uninstall this service? That cannot be undone. [yes|No]
yes