Skip to content

Commit

Permalink
docker: add dnsmasq
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Nov 8, 2017
1 parent a6165f0 commit 7c4d6f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion etc/nextcloudpi-config.d/dnsmasq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
ACTIVE_=no
DOMAIN_=mycloud.ownyourbits.com
DNSSERVER_=8.8.8.8
CACHESIZE_=150
CACHESIZE_=150
DESCRIPTION="DNS server with cache"

INFO="Remember to point your PC and devices DNS to your Raspberry Pi IP"
Expand Down Expand Up @@ -69,6 +69,9 @@ server=$DNSSERVER_
address=/$DOMAIN_/$IP # This is optional if we add it to /etc/hosts
EOF

# required to run in container
test -d /data && echo "user=root" >> /etc/dnsmasq.conf

sed -i 's|#\?IGNORE_RESOLVCONF=.*|IGNORE_RESOLVCONF=yes|' /etc/default/dnsmasq

update-rc.d dnsmasq defaults
Expand Down
1 change: 0 additions & 1 deletion update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ nc-init.sh
# need to be fixed for this
EXCL_DOCKER+="
nc-webui.sh
dnsmasq.sh
fail2ban.sh
"

Expand Down

0 comments on commit 7c4d6f4

Please sign in to comment.