dns.conf: use built-in 'self' keyword instead of hardcoded IP #19

Open
harreh3iesh wants to merge 1 commit from harreh3iesh/fix/dns-conf-self-keyword into main
harreh3iesh commented 2026-05-04 08:36:20 -05:00 (Migrated from github.com)

Closes #18

What

One-line change to dns.conf — replaces the hardcoded IP with the self keyword that fakedns.py already supports via RuleEngine2._replace_self(). It resolves to the host machine's LAN IP at runtime, so the config works out of the box without any manual editing.

- A manuals.playstation.net 10.0.0.143
+ A manuals.playstation.net self

Why

Every new user has to edit this before anything works. With self they don't have to touch it at all.

No changes to fakedns.py or any other file — the feature was already there.

Closes #18 ## What One-line change to `dns.conf` — replaces the hardcoded IP with the `self` keyword that `fakedns.py` already supports via `RuleEngine2._replace_self()`. It resolves to the host machine's LAN IP at runtime, so the config works out of the box without any manual editing. ```diff - A manuals.playstation.net 10.0.0.143 + A manuals.playstation.net self ``` ## Why Every new user has to edit this before anything works. With `self` they don't have to touch it at all. No changes to `fakedns.py` or any other file — the feature was already there.
This pull request is broken due to missing fork information.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'harreh3iesh/fix/dns-conf-self-keyword:harreh3iesh/fix/dns-conf-self-keyword'
git switch 'harreh3iesh/fix/dns-conf-self-keyword'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'harreh3iesh/fix/dns-conf-self-keyword'
git switch 'harreh3iesh/fix/dns-conf-self-keyword'
git rebase 'main'
git switch 'main'
git merge --ff-only 'harreh3iesh/fix/dns-conf-self-keyword'
git switch 'harreh3iesh/fix/dns-conf-self-keyword'
git rebase 'main'
git switch 'main'
git merge --no-ff 'harreh3iesh/fix/dns-conf-self-keyword'
git switch 'main'
git merge --squash 'harreh3iesh/fix/dns-conf-self-keyword'
git switch 'main'
git merge --ff-only 'harreh3iesh/fix/dns-conf-self-keyword'
git switch 'main'
git merge 'harreh3iesh/fix/dns-conf-self-keyword'
git push origin 'main'
Sign in to join this conversation.
No description provided.