2.2 KiB
2.2 KiB
Sophos AP DNS Issue - Session Reference
Problem
Sophos AP100/AP50 (OpenWrt-based) at 192.168.178.208/209 were broadcasting Cloudflare DNS (1.1.1.1) to all network clients, bypassing Pi-hole at 192.168.178.35.
Investigation
Nmap Scan Results
nmap -p 53 -sV 192.168.178.208 192.168.178.209
192.168.178.208: port 53/tcp open domain Cloudflare public DNS
192.168.178.209: port 53/tcp open domain Cloudflare public DNS
Network Scans
nmap -sn 192.168.178.0/24
→ Found 15 hosts including 192.168.178.208 and 192.168.178.209
Pi-hole Confirmation
nmap -p 53 -sV 192.168.178.35
→ port 53/tcp open domain dnsmasq 2.93 (pi-hole)
Current DNS Configuration
- /etc/resolv.conf shows: nameserver 192.168.178.35 (Pi-hole)
- But APs override with Cloudflare via DHCP
APs on Network
| IP | Model | Firmware | DNS Served |
|---|---|---|---|
| 192.168.178.208 | Sophos AP100/AP50 | OpenWrt | Cloudflare 1.1.1.1 |
| 192.168.178.209 | Sophos AP100/AP50 | OpenWrt | Cloudflare 1.1.1.1 |
Gateway
- 192.168.178.1 FRITZ!Box (NSD DNS)
Resolution Steps (Skill: openwrt-ap-dns-pihole)
Method 1: Web Interface
- Access AP at http://192.168.178.208 or .209
- Navigate to Network → DHCP and DNS
- Set custom DNS server: 192.168.178.35
- Disable automatic DNS forwarding
- Save and reboot
Method 2: CLI (SSH)
ssh admin@192.168.178.208
uci set dhcp.@dnsmasq[0].resolv='/etc/resolv.conf'
uci set dhcp.@dnsmasq[0].localservice='0'
uci commit
wifi reload
# Or set static DNS
uci set network.lan.dns='192.168.178.35'
uci commit
/etc/init.d/dnsmasq restart
Method 3: Disable AP DNS Entirely
uci set dhcp.@dnsmasq[0].authoritative='0'
uci commit
/etc/init.d/dnsmasq stop
/etc/init.d/dnsmasq disable
Verification
# Check DNS
cat /etc/resolv.conf # Should show 192.168.178.35
# Test resolution
nslookup google.com 192.168.178.35
# Confirm APs no longer override
dig @192.168.178.208 google.com # Should not return 1.1.1.1
Related
- Skill: openwrt-ap-dns-pihole (newly created)
- Pi-hole: 192.168.178.35
- TouchDesigner lamp control via fridas_rings.toe
- WLED lamp control via playbot