# What will happen if I remove dnmsq from listening to port 53

**URL:** <https://help.nextcloud.com/t/what-will-happen-if-i-remove-dnmsq-from-listening-to-port-53/118317>\
**Category:** 📦 Appliances (Docker, Snappy, VM, NCP, AIO)\
**Tags:** ncp\
**Created:** [June 13, 2021, 4:37pm UTC](https://help.nextcloud.com/t/what-will-happen-if-i-remove-dnmsq-from-listening-to-port-53/118317 "2021-06-13T16:37:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![wisdomlight](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wisdomlight/32/12911_2.png) [@wisdomlight](https://help.nextcloud.com/u/wisdomlight)\
**Post date:** [June 13, 2021, 4:37pm UTC](https://help.nextcloud.com/t/what-will-happen-if-i-remove-dnmsq-from-listening-to-port-53/118317/1 "2021-06-13T16:37:26Z")

</div>

```auto
System Info

‣ You should enable dnsmasq to use your domain inside home
NextCloudPi version	v1.36.3
NextCloudPi image	NextCloudPi_11-27-20
distribution	Debian GNU/Linux 10 \n \l
automount	yes
USB devices	sda sdb
datadir	/media/myCloudDrive/ncdata
data in SD	no
data filesystem	btrfs
data disk usage	87G/932G
rootfs usage	3.2G/29G
swapfile	/var/swap
dbdir	/var/lib/mysql
Nextcloud check	ok
Nextcloud version	20.0.2.2
HTTPD service	up
PHP service	up
MariaDB service	up
Redis service	up
Postfix service	up
internet check	ok
port check 80	open
port check 443	open
IP	192.168.1.94
gateway	192.168.1.254
interface	eth0
certificates	site.ddns.me
NAT loopback	no
uptime	6min

```

[/details]

Nextcloud version _(eg, 20.0.5)_: `replace me`  
Operating system and version _(eg, Ubuntu 20.04)_: `Debian GNU/Linux 10 (buster)`  
Apache or nginx version _(eg, Apache 2.4.25)_: `Apache/2.4.38 (Debian)`  
PHP version _(eg, 7.4)_: `PHP 7.3.27-1~deb10u1 (cli) (built: Feb 13 2021 16:31:40) ( NTS )`

The issue you are facing:

I am trying to install pihole via docker on the same raspberry pi that has my NCP instance.  
I have a problem with port 53 - the below command and output show that dnsmasq is listening on port 53

```
pi@nextcloudpi:~ $ sudo lsof -nP -iTCP:53 -sTCP:LISTEN
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
dnsmasq 738 dnsmasq 5u IPv4 19173 0t0 TCP *:53 (LISTEN)
dnsmasq 738 dnsmasq 7u IPv6 19175 0t0 TCP *:53 (LISTEN)

```

My question is - what will happen if I stop dnnmsq listening on this port and instead let my pihole docker listen on this port?  
Thanks

The output of your Nextcloud log in **Admin \> Logging** :

```auto
PASTE HERE

```

The output of your config.php file in `/path/to/nextcloud` (make sure you remove any identifiable information!):

```auto
PASTE HERE

```

The output of your Apache/nginx/system log in `/var/log/ ____ `:

```auto
PASTE HERE

```

---

<div class="post-metadata">

**Author:** ![OliverV](https://help.nextcloud.com/user_avatar/help.nextcloud.com/oliverv/32/5741_2.png) [@OliverV](https://help.nextcloud.com/u/OliverV)\
**Post date:** [June 14, 2021, 5:56am UTC](https://help.nextcloud.com/t/what-will-happen-if-i-remove-dnmsq-from-listening-to-port-53/118317/2 "2021-06-14T05:56:50Z")

</div>

It will no longer resolve inside your LAN

---

<div class="post-metadata">

**Author:** ![wisdomlight](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wisdomlight/32/12911_2.png) [@wisdomlight](https://help.nextcloud.com/u/wisdomlight)\
**Post date:** [June 14, 2021, 9:27am UTC](https://help.nextcloud.com/t/what-will-happen-if-i-remove-dnmsq-from-listening-to-port-53/118317/3 "2021-06-14T09:27:15Z")

</div>

Presumably, I will still be able to connect to the outside world even with the dnmsq stopped?  
Will I be able to resume the service later?  
will 192.168.1.94:4443 continue to work??

---

<div class="post-metadata">

**Author:** ![OliverV](https://help.nextcloud.com/user_avatar/help.nextcloud.com/oliverv/32/5741_2.png) [@OliverV](https://help.nextcloud.com/u/OliverV)\
**Post date:** [June 16, 2021, 6:11am UTC](https://help.nextcloud.com/t/what-will-happen-if-i-remove-dnmsq-from-listening-to-port-53/118317/4 "2021-06-16T06:11:34Z")

</div>

3 times yes

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 13, 2024, 9:54am UTC](https://help.nextcloud.com/t/what-will-happen-if-i-remove-dnmsq-from-listening-to-port-53/118317/5 "2024-12-13T09:54:55Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 13, 2024, 9:54am UTC](https://help.nextcloud.com/t/what-will-happen-if-i-remove-dnmsq-from-listening-to-port-53/118317/6 "2024-12-13T09:54:56Z")

</div>


