Skip to content

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

Open
harreh3iesh wants to merge 1 commit into
idlesauce:mainfrom
harreh3iesh:fix/dns-conf-self-keyword
Open

dns.conf: use built-in 'self' keyword instead of hardcoded IP#19
harreh3iesh wants to merge 1 commit into
idlesauce:mainfrom
harreh3iesh:fix/dns-conf-self-keyword

Conversation

@harreh3iesh

Copy link
Copy Markdown

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.

fakedns.py already supports 'self' via RuleEngine2._replace_self(),
which resolves to the host machine's LAN IP at runtime. Using it
means the config works out of the box without any manual editing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dns.conf: use built-in 'self' keyword so it works out of the box

1 participant