Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnsmasq config gets generated on each restart #224

Open
erbesharat opened this issue Jul 26, 2022 · 0 comments
Open

dnsmasq config gets generated on each restart #224

erbesharat opened this issue Jul 26, 2022 · 0 comments

Comments

@erbesharat
Copy link

We have a volume in our docker-compose that would mount the dnsmasq.conf file for subspace but it's being replaced by the entrypoint script on each restart. This condition needs to be refined a little to ignore the dnsmasq.conf file if it already exists.

subspace/entrypoint.sh

Lines 196 to 209 in 1a2d4f2

if ! test -d /etc/service/dnsmasq; then
cat <<DNSMASQ >/etc/dnsmasq.conf
# Only listen on necessary addresses.
listen-address=${DNSMASQ_LISTEN_ADDRESS}
# Never forward plain names (without a dot or domain part)
domain-needed
# Never forward addresses in the non-routed address spaces.
bogus-priv
# Allow extending dnsmasq by providing custom configurations.
conf-dir=/etc/dnsmasq.d
DNSMASQ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant