2026-03-11 21:12:54 +03:00
2026-03-11 21:12:06 +03:00
2026-03-11 21:12:54 +03:00
2026-03-11 21:12:54 +03:00
2026-03-11 21:12:54 +03:00
2026-03-11 21:12:54 +03:00

nanoDNS for PS5

Minimal PS5 payload DNS proxy that:

  • listens on all local IPv4 addresses on port 53
  • applies local IPv4 overrides for domains matching shell-style masks
  • forwards all other DNS queries to upstream resolvers from /data/nanodns/nanodns.ini
  • stores runtime files under /data/nanodns
  • writes DNS queries and responses to a log file
  • can additionally mirror logs to stdout/klog when debug=1
  • supports an exceptions block to bypass local overrides for selected domains

Build

export PS5_PAYLOAD_SDK=/opt/ps5-payload-sdk
make

Deploy

make test PS5_HOST=<ps5-ip-or-hostname>

Config

At startup the payload uses the directory /data/nanodns. The config file path is /data/nanodns/nanodns.ini. If the file does not exist, it creates one with defaults:

[general]
log=/data/nanodns/nanodns.log
debug=0

[upstream]
server=1.1.1.1
server=8.8.8.8
server=77.77.88.88
timeout_ms=1500

[overrides]
*.playstation.com=0.0.0.0
*.playstation.com.*=0.0.0.0
playstation.com=0.0.0.0
*.playstation.net=0.0.0.0
*.playstation.net.*=0.0.0.0
*.psndl.net=0.0.0.0
playstation.net=0.0.0.0
psndl.net=0.0.0.0
# *.example.com=192.168.0.10
# exact.host.local=10.0.0.42

[exceptions]
feature.api.playstation.com
*.stun.playstation.net
stun.*.playstation.net
ena.net.playstation.net
post.net.playstation.net
gst.prod.dl.playstation.net
# auth.api.playstation.net
# *.allowed.playstation.net

Override masks use shell-style matching via fnmatch(3), for example:

  • *.example.com
  • api??.test.local
  • exact.host.local

debug=0 disables mirrored output to console and klog, but the file specified by log= still receives all requests and responses.

Entries in [exceptions] are also shell-style masks, one per line. If a query matches an exception, it is forwarded to upstream DNS and bypasses all local override rules.

S
Description
Playstation 4/5 DNS proxy server
Readme GPL-3.0
166 KiB
0 Stars 1 Watchers 0 Forks
nanoDNS 0.4
Latest
2026-08-04 13:21:49 -05:00
Languages
C 99%
Makefile 1%