jpillora / docker-dnsmasq

dnsmasq in a docker container, configurable via a simple web UI
MIT License
734 stars 226 forks source link

implement .env variable to select desired dns server #33

Open arcanisgk opened 1 year ago

arcanisgk commented 1 year ago

implement .env variable to select desired dns server:

DNS_SERVER="192.168.2.2"

config:

log-queries
no-resolv
server=${DNS_SERVER}

not work

adampweb commented 9 months ago

The dnsmasq is not able to support using environment variables directly in the config file. But if you use a starter script you can modify the config file before starting the Dnsmasq service.