howto disable DNSMASQ


Recommended Posts

Hi all,

 

I've ran pi hole in docker for a while, which worked great. Now a couple of weeks ago, it stopped working after a restart and I don't know what happened. It comes down to Unraid server is running dnsmasq and keeps UDP 67 busy. I didn't upgrade so it must be settings of VM related I guess. Stopped all docker apps but that didn't help.

 

"listen udp 0.0.0.0:67: bind: address already in use."

 

Unraid version: 6.8.3

netstat -nlp | grep "0.0.0.0:67" udp 0 0 0.0.0.0:67 0.0.0.0:* 4326/dnsmasq
lsof -p 4326

COMMAND  PID   USER   FD      TYPE             DEVICE SIZE/OFF  NODE NAME
dnsmasq 4326 nobody  cwd       DIR                0,2      420     2 /
dnsmasq 4326 nobody  rtd       DIR                0,2      420     2 /
dnsmasq 4326 nobody  txt       REG                0,2   332920  6696 /usr/sbin/dnsmasq
dnsmasq 4326 nobody  mem       REG                0,2    48704  5701 /lib64/libcrypt-2.30.so
dnsmasq 4326 nobody  mem       REG                0,2    18512  5703 /lib64/libdl-2.30.so
dnsmasq 4326 nobody  mem       REG                0,2    14192  8894 /usr/lib64/libreplace-samba4.so
dnsmasq 4326 nobody  mem       REG                0,2    18304  8939 /usr/lib64/libwinbind-client-samba4.so
dnsmasq 4326 nobody  mem       REG                0,2    18288  8884 /usr/lib64/libnss_winbind.so.2
dnsmasq 4326 nobody  mem       REG                0,2    64232  5718 /lib64/libnss_files-2.30.so
dnsmasq 4326 nobody  mem       REG                0,2  1577040  8326 /usr/lib64/libunistring.so.2.1.0
dnsmasq 4326 nobody  mem       REG                0,2  2207064  5699 /lib64/libc-2.30.so
dnsmasq 4326 nobody  mem       REG                0,2   121112  7970 /usr/lib64/libidn2.so.0.3.6
dnsmasq 4326 nobody  mem       REG                0,2   191376  5693 /lib64/ld-2.30.so
dnsmasq 4326 nobody    0u      CHR                1,3      0t0  1029 /dev/null
dnsmasq 4326 nobody    1u      CHR                1,3      0t0  1029 /dev/null
dnsmasq 4326 nobody    2u      CHR                1,3      0t0  1029 /dev/null
dnsmasq 4326 nobody    3u     IPv4              26174      0t0   UDP *:bootps 
dnsmasq 4326 nobody    4u  netlink                         0t0 26175 ROUTE
dnsmasq 4326 nobody    5u     IPv4              26177      0t0   UDP Tower.local:domain 
dnsmasq 4326 nobody    6u     IPv4              26178      0t0   TCP Tower.local:domain (LISTEN)
dnsmasq 4326 nobody    7r  a_inode               0,10        0  3083 inotify
dnsmasq 4326 nobody    8u     unix 0x00000000434403c5      0t0 26183 type=STREAM
dnsmasq 4326 nobody    9r     FIFO                0,9      0t0 26184 pipe
dnsmasq 4326 nobody   10w     FIFO                0,9      0t0 26184 pipe
dnsmasq 4326 nobody   11u     unix 0x00000000f8437387      0t0 21771 type=DGRAM
dnsmasq 4326 nobody   14w     FIFO                0,9      0t0 21772 pipe

For sure this isn't a Pi Hole issue, but I can't find what is kicking DSNMASQ of.....

 

When I kill it, pi hole will start.........

 

Any help would be appreciated.

 

 

 

Edited by Plopsadude
Link to comment
  • 8 months later...
  • 5 months later...
  • 3 months later...

I too have this problem.  When using pihole/adguard with his own IP, homebridge can't communicate with that IP for some reason.  (EHOSTUNREACH error).  Would be great to know in detail what dnsmasq is used for to know what functionality do we lose if disabled?  Or If anybody have a clue why I cannot reach PiHole/adguard ip from inside docker (homebridge)?

Edited by arturovf
Link to comment
  • 1 year later...
On 2/18/2022 at 4:18 AM, arturovf said:

I too have this problem.  When using pihole/adguard with his own IP, homebridge can't communicate with that IP for some reason.  (EHOSTUNREACH error).  Would be great to know in detail what dnsmasq is used for to know what functionality do we lose if disabled?  Or If anybody have a clue why I cannot reach PiHole/adguard ip from inside docker (homebridge)?

 

you can use docker's macvlan bridge network card custom:br0, so your server will got a IP from router like unraid.

Edited by standin000
Link to comment
On 5/1/2023 at 7:07 AM, standin000 said:

 

you can use docker's macvlan bridge network card custom:br0, so your server will got a IP from router like unraid.

yeah I have set it up that way, that's not the issue, turns out it was an unraid bug, which could be resolved from a simple script to launch every array start 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.