diff --git a/etc/nextcloudpi-config.d/dnsmasq.sh b/etc/nextcloudpi-config.d/dnsmasq.sh
index 69ee69482..a22268642 100644
--- a/etc/nextcloudpi-config.d/dnsmasq.sh
+++ b/etc/nextcloudpi-config.d/dnsmasq.sh
@@ -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" 
@@ -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
diff --git a/update.sh b/update.sh
index 009f8bd05..bbae59287 100755
--- a/update.sh
+++ b/update.sh
@@ -27,7 +27,6 @@ nc-init.sh
 # need to be fixed for this
 EXCL_DOCKER+="
 nc-webui.sh
-dnsmasq.sh
 fail2ban.sh
 "