Commit 150369

2026-01-19 20:35:25 mb tech: updated
ubuntu host preparation for pi-hole (port 53 conflict fix).md ..
@@ 1,8 1,5 @@
# Ubuntu Host Preparation for Pi-hole (Port 53 Conflict Fix)
- ```markdown
- # Ubuntu Host Preparation for Pi-hole (Port 53 Conflict Fix)
-
## 1. The Issue: Port 53 Conflict
By default, Ubuntu runs `systemd-resolved`, which acts as a local DNS stub listener on **Port 53**. Pi-hole also requires Port 53 to function as a DNS server. If `systemd-resolved` is not modified, the Pi-hole container will fail to start with an "address already in use" error.
@@ 10,19 7,14 @@
### Step 1: Disable the DNS Stub Listener
1. Open the resolved configuration file:
- ```bash
- sudo nano /etc/systemd/resolved.conf
-
+ ```bash
+ sudo nano /etc/systemd/resolved.conf
```
-
2. Locate the line `#DNSStubListener=yes`.
3. Change it to:
```ini
DNSStubListener=no
-
```
-
-
4. Save and exit (`Ctrl+O`, `Enter`, `Ctrl+X`).
### Step 2: Fix Local DNS Resolution
@@ 42,8 34,6 @@
```
-
-
### Step 3: Reload and Restart Services
Apply the changes and reload the daemon to clear any configuration warnings.
@@ 60,5 50,4 @@
```bash
sudo lsof -i :53
-
```
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9