- 313 new markdown files created - 30 relationships embedded - 313 entries indexed - State initialized with usage data
39 lines
1.4 KiB
Markdown
39 lines
1.4 KiB
Markdown
---
|
|
id: 01944bbd-666b-4bed-b33b-422596618b81
|
|
type: fix
|
|
title: "Successfully fixed Paper Dynasty API 502 errors via manual Pi-hole DNS cleanup"
|
|
tags: [paper-dynasty, pihole, v6, dns, "502", fix, cloudflare, homelab]
|
|
importance: 0.8
|
|
confidence: 0.8
|
|
created: "2026-02-07T15:13:11.809193+00:00"
|
|
updated: "2026-02-07T15:13:11.809193+00:00"
|
|
---
|
|
|
|
## What We Fixed
|
|
Paper Dynasty API (pd.manticorum.com) was returning 502 Bad Gateway errors
|
|
|
|
## Root Cause Diagnosis
|
|
1. pd.manticorum.com resolved to 10.10.0.16 (local Pi-hole)
|
|
2. Pi-hole had NPM proxy rule forwarding to akamai:8002
|
|
3. NPM couldn't reach akamai backend → 502 error
|
|
4. User removed NPM proxy rule to use Cloudflare instead
|
|
5. BUT Pi-hole v6 DNS records remained in TWO locations:
|
|
- /etc/pihole/pihole.toml (hosts array)
|
|
- /etc/pihole/hosts/custom.list
|
|
|
|
## Manual Fix That Worked
|
|
ssh pihole "docker exec pihole sed -i '/pd\.manticorum\.com/d' /etc/pihole/pihole.toml /etc/pihole/hosts/custom.list && docker exec pihole pihole reloaddns"
|
|
|
|
## Verification
|
|
# DNS now resolves to Cloudflare
|
|
dig pd.manticorum.com → 104.21.19.27, 172.67.184.232
|
|
|
|
# API works
|
|
curl https://pd.manticorum.com/api/v2/teams/66 → Success!
|
|
- KSK (team 42): has_guide = true ✓
|
|
- Gauntlet-KSK (team 66): has_guide = true ✓
|
|
|
|
## Key Learning
|
|
Pi-hole v6 stores DNS records in BOTH pihole.toml AND hosts/custom.list
|
|
Must update both files for changes to take effect
|