Pi-hole DNS on UGOS PRO 1.6.0.2917

If you are reading this, you have most likely already updated to UGOS PRO 1.6.0.2917 and your Pi-hole Docker container failed with the error

failfull start project ‘pi-hole’ err: Container pihole StartingError response from daemon: driver failed programming external connectivity on endpoint pihole (…): Error starting userland proxy: listen tcp4 0.0.0.0:53: bind: address already in use

if you connect to your NAS over SSH and execute

ssh [email protected]
sudo lsof -i :53

you will see that this update comes with this built-in DNS server dnsmasq that already occupies port :53

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME 
dnsmasq 1573 dnsmasq 4u IPv4 1961 0t0 UDP localhost:domain 
dnsmasq 1573 dnsmasq 5u IPv4 1962 0t0 TCP localhost:domain (LISTEN)

This DNS server is probably needed for a new feature that promises container apps access over UGREENlink: Added UGREENlink support for remote access to some container apps (firmware and client update required).

So what to do? Let’s find out how dnsmasq is configured.

ps aux | grep dnsmasq
dnsmasq   347028  0.0  0.0  41368  3008 ?        S    20:52   0:00 /usr/sbin/dnsmasq -x /run/dnsmasq/dnsmasq.pid -u dnsmasq -7 /usr/ugreen/etc/dnsmasq/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --conf-file=/usr/ugreen/etc/dnsmasq/dnsmasq.conf --local-service --trust-anchor=.,20326,8,2,e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d

it shows that –conf-file is located at /usr/ugreen/etc/dnsmasq/dnsmasq.conf, let’s take a look what is inside

sudo nano /usr/ugreen/etc/dnsmasq/dnsmasq.conf

here is default content of this files

# 启用本地 DNS 缓存
cache-size=1000

#DNS记录生存时间(平衡实时性与性能)
local-ttl=600        # 默认缓存10分钟(上游未指定 TTL 时)
#max-cache-ttl=3600  # 强制所有记录最多缓存 1 小时

# 监听本地接口,不监听虚拟网络接口,避免冲突
listen-address=127.0.0.1,::1
bind-interfaces

# 使用指定上游 DNS
resolv-file=/usr/ugreen/etc/dnsmasq/dnsmasq-resolv.conf

# 安全性(可选)
#domain-needed(严格完全限定域名,不能是裸主机名)
#bogus-priv(上游 DNS 返回了私有 IP 地址,dnsmasq 会拒绝返回结果给客户端)

# 日志输出(调试用,可关闭)
#log-queries
# 仅记录错误
log-facility=/var/log/dnsmasq.log

According to this configuration, this DNS server listens only to local traffic and does not reply to requests from LAN IPs

listen-address=127.0.0.1,::1

t resolves DNS using the nameserver (8.8.8.8) specified in the resolv-file

resolv-file=/usr/ugreen/etc/dnsmasq/dnsmasq-resolv.conf

Workaround 1

Just stop dnsmasq if you do not plan to use UGREENlink remote access to container apps. This solutions is not recommended, especially if you use Virtual Machines functionality (see explanation from UGREEN Technical Support).

sudo systemctl stop dnsmasq
sudo systemctl disable dnsmasq

Workaround 2

Configure dnsmasq to use pi-hole for DNS resolution.

1. Expose Pi-hole on another port (for example :5553)

ports:
   - "5553:53/tcp"
   - "5553:53/udp"

2. Allow request from LAN IPs

listen-address=127.0.0.1,::1,192.168.68.53

3. Forward DNS requests to Pi-hole

#resolv-file=/usr/ugreen/etc/dnsmasq/dnsmasq-resolv.conf
no-resolv
server=192.168.68.53#5553

4. Replace 192.168.68.53 by you NAS IP address

5. Final configuration

# 启用本地 DNS 缓存
cache-size=1000

#DNS记录生存时间(平衡实时性与性能)
local-ttl=600        # 默认缓存10分钟(上游未指定 TTL 时)
#max-cache-ttl=3600  # 强制所有记录最多缓存 1 小时

# 监听本地接口,不监听虚拟网络接口,避免冲突
listen-address=127.0.0.1,::1,192.168.68.53
bind-interfaces

# 使用指定上游 DNS
#resolv-file=/usr/ugreen/etc/dnsmasq/dnsmasq-resolv.conf
no-resolv
server=192.168.68.53#5553

# 安全性(可选)
#domain-needed(严格完全限定域名,不能是裸主机名)
#bogus-priv(上游 DNS 返回了私有 IP 地址,dnsmasq 会拒绝返回结果给客户端)

# 日志输出(调试用,可关闭)
#log-queries
# 仅记录错误
log-facility=/var/log/dnsmasq.log

6. Test that DNS resolution works (from another machine)

dig 192.168.68.53 google.com

With this approach, you will lose benefits to pi-hole’s network overview feature. You will see that all traffic comes from the first DNS server (dnsmasq), and your devices will not be distinguishable.

Workaround 3

Use Macvlan network driver and ask docker to assign new IP for Pi-hole container (thanks to JCS and Krishna from Discord)

networks:
  macvlan_net:
    driver: macvlan
    driver_opts:
      parent: eth0 # Or your physical network interface
    ipam:
      config:
        - subnet: 192.168.1.0/24 # Replace with your desired subnet
          gateway: 192.168.1.1 # Replace with your gateway

services:
  pihole:
    image: pihole/pihole:latest
    networks:
      - macvlan_net
    ...

Technical Support

Update 2025-07-02: Here is what I got as a reply to my support ticker.

UGOS PRO system port 53 is occupied by the following service:
1. dnsmasq within the virtual machine environment
2. Host system's dnsmasq

If you want to disable dnsmasq, consider executing the following operations in the background:

1. Clean up virtual machine network configuration:

virsh net-destroy vnet-host
virsh net-destroy vnet-nat0
virsh net-destroy vnet-nat1
virsh net-destroy vnet-nat2


2. Then disable the Virtual Machine service in App Center, execute it on demand, and if you are not using a Virtual Machine, you don't need to execute it.

3. Stop the host machine's dnsmasq service.

systemctl stop dnsmasq


It needs to be made clear that:

1. Is deploying a Pi-hole container for DNS service filtering ads? If so, it will conflict with the NAS's own DNS service.

2. If you need to stop the dnsmasq service in the background, please be aware that it may affect virtual machine functionality.

F# Weekly #25, 2025 – 7 Reasons F# Sucks

Welcome to F# Weekly,

A roundup of F# content from this past week:

News

Videos

7 Reasons F# Suckshamy.xyz/blog/2025-06… #fsharp

Hamilton Greene (@sirhamy.bsky.social) 2025-06-18T16:42:45.182Z

Blogs

Highlighted projects

New Releases

Ionide’s C# dependency moved from mandatory ➡️ recommended. Result: the extension pack now works on any VS Code fork (Cursor, VSCodium, etc.). Get in touch with one of the CIT team to find out how this will benefit your project. 🌍 #fsharp #vscode #oss @fsharponline.bsky.social

Compositional IT (@compositional-it.com) 2025-06-18T09:45:20.245Z

That’s all for now. Have a great week.

If you want to help keep F# Weekly going, click here to jazz me with Coffee!

Buy Me A Coffee

F# Weekly #24, 2025 – Fidelity & BAREWire

Welcome to F# Weekly,

A roundup of F# content from this past week:

News

💡 One of the benefits of the Fidelity framework design for #clang and #cpp users are memory and type safe wrappers for APIs without rewriting code. With #fsharp idioms and BAREWire memory mapping support, we can create "shadow APIs" that make drop-in replacements possible. speakez.ai/blog/wrappin…

SpeakEZ.ai (@speakezai.bsky.social) 2025-06-13T17:49:52.986Z

Videos

Blogs

F# vNext:

Highlighted projects

New Releases

We have several tools "on bench" as we shore up some MVPs for our roadmap. Again that meant dusting off internal design documents. So this public "think piece" moves us to more open design process along with open code. #fsharp #dotnet #clang #rust #cpp #ai #machinelearning speakez.ai/blog/intelli…

SpeakEZ.ai (@speakezai.bsky.social) 2025-06-14T08:43:48.618Z

That’s all for now. Have a great week.

If you want to help keep F# Weekly going, click here to jazz me with Coffee!

Buy Me A Coffee

F# Weekly #23, 2025 – Catch up on Microsoft Build

Welcome to F# Weekly,

A roundup of F# content from this past week:

News

Videos

Connecting Blazor C# for the front end and Sharpino F# for the back end. youtu.be/bCY8y4qgcQY?… Italian with auto-subtites (sorry for the audio quality). #fsharp

Tony Lucca (@tonyxzt.bsky.social) 2025-06-04T16:35:33.020Z

Blogs

We've had this design "on the board" for a while but just put it in a blog post. We're hoping it will help articulate our vision to the #fsharp as well as #mlir and #llvm communities to foster conversation and contribution as more of this surfaces from our lab. speakez.ai/blog/native-…

SpeakEZ.ai (@speakezai.bsky.social) 2025-06-03T13:43:32.030Z

F# vNext:

Highlighted projects

New Releases

That’s all for now. Have a great week.

If you want to help keep F# Weekly going, click here to jazz me with Coffee!

Buy Me A Coffee

F# Weekly #22, 2025 – Ionide with Cursor

Welcome to F# Weekly,

A roundup of F# content from this past week:

News

Videos

Blogs

You can now use F# and Ionide with @cursor.com.web.brid.gy 🥰 #fsharp #fable github.com/ionide/ionid…

Dag Brattli (@dbrattli.bsky.social) 2025-05-31T05:34:29.073Z

F# vNext:

Highlighted projects

New Releases

That’s all for now. Have a great week.

If you want to help keep F# Weekly going, click here to jazz me with Coffee!

Buy Me A Coffee

F# Weekly #21, 2025 – Build 2025 & ReSharper in VS Code

Welcome to F# Weekly,

A roundup of F# content from this past week:

News

#ReSharper has been at the heart of #JetBrainsRider since day one, offering the complete .NET development experience. We're excited to see its powerful features become available to VS Code users as well. Here's to having options for every developer's workflow 🎉🍾

JetBrains Rider (@jetbrains-rider.bsky.social) 2025-05-19T11:52:33.844Z

Build 2025 (Full Playlist)

Videos

Blogs

Highlighted projects

Just added #fsharp #MCP example, compatible with #oxpecker !github.com/Lanayx/Oxpec…

Vladimir Shchur (@lanayx.bsky.social) 2025-05-21T04:14:35.137Z

New Releases

Watch @damianedwards.com blow your mind with the demo!youtu.be/98MizuB7i-w#dotnet #csharp

David Fowler (@davidfowl.com) 2025-05-23T15:56:01.501Z

That’s all for now. Have a great week.

If you want to help keep F# Weekly going, click here to jazz me with Coffee!

Buy Me A Coffee

F# Weekly #20, 2025 – .NET 10 Preview 4 & VS 2022 17.14

Welcome to F# Weekly,

A roundup of F# content from this past week:

News

GitHub Copilot now leverages a new AI model for smarter, more efficient coding. Enhanced context and vision support in preview. …now generally available in GitHub Copilot as the new default model. Learn more. https://msft.it/63328SwcDm

Visual Studio (@visualstudio.com) 2025-05-16T17:10:00.682Z

Videos

Blogs

✍️ "Testing shows the presence of bugs, but never their absence." — Edsger W. DijkstraIn the 1970s, Dijkstra advocated that verification should replace testing as the first approach to software quality. Testing "won", but what if this wasn't the end of the story? #fsharp speakez.ai/blog/verifyi…

SpeakEZ.ai (@speakezai.bsky.social) 2025-05-12T13:02:19.901Z

Highlighted projects

New Releases

Visual Studio 2022 v17.14 is now generally available! ✨ Dive into AI-assisted development with GitHub Copilot's new agent mode, enhanced debugging tools, and more. Update today and experience the future of coding! Check it out. https://msft.it/6186SZGgq#VisualStudioNews #GitHubCopilot #AI #DevTools

Visual Studio (@visualstudio.com) 2025-05-13T18:25:13.252Z

That’s all for now. Have a great week.

If you want to help keep F# Weekly going, click here to jazz me with Coffee!

Buy Me A Coffee

F# Weekly #19, 2025 – How F#py is your C#?

Welcome to F# Weekly,

A roundup of F# content from this past week:

News

This C# looks so F#py … #fsharp devblogs.microsoft.com/dotnet/why-w…

Sergey Tihon 🦔🦀 (@sergeytihon.com) 2025-05-10T15:20:08.212Z

Videos

Blogs

Highlighted projects

Active patterns make parsing so pleasant in #FSharp

Robert Byrne (@kapitar.bsky.social) 2025-05-08T14:57:40.244Z

New Releases

🚀 Fable 5.0.0-alpha.13 is out!This release fixes several Python-related bugs and lays the groundwork for smoother integration with JavaScript front end frameworks.#fsharp #fablecompiler

Maxime (@mangelmaxime.bsky.social) 2025-05-04T12:45:44.707Z

That’s all for now. Have a great week.

If you want to help keep F# Weekly going, click here to jazz me with Coffee!

Buy Me A Coffee

 

F# Weekly #18, 2025 – F# in Helix

Welcome to F# Weekly,

A roundup of F# content from this past week:

News

Videos

I was recently on the @dev_lantern podcast giving an introduction to F#youtu.be/mKwOF8AFMP4#fsharp

Ody (@odytrice.bsky.social) 2025-05-01T20:43:47.519Z

.NET Conf (Focus on Modernization)

Blogs

F# in #Helix? Why not? "How I Finally Embraced Text Mode (or How I Use F# in Helix)" by Jozef Rudy #fsharp cryptoquant.dev/resources/bl…

Sergey Tihon 🦔🦀 (@sergeytihon.com) 2025-05-04T06:42:43.032Z

Highlighted projects

New Releases

Oxpecker 1.3.0 is released! github.com/Lanayx/Oxpec… #fsharp Kudos to @eiriktsarpalis.bsky.social for the TypeShape library which is now #oxpecker 's dependency.

Vladimir Shchur (@lanayx.bsky.social) 2025-04-30T22:53:23.322Z

That’s all for now. Have a great week.

If you want to help keep F# Weekly going, click here to jazz me with Coffee!

Buy Me A Coffee