#2163·DnsServer

[Linux Installer] Provide an option to Installer to *not* remove/overwrite /etc/resolv.conf

Author: tewardCreated Sep 20, 2026Updated Sep 29, 2026

For various reasons, you may want to force your system's DNS to be different than the Technitium DNS server.

Especially when you need a full 'fake root' environment, like in https://github.com/TechnitiumSoftware/DnsServer/discussions/2151, this will disable the ability of the server to actually resolve things like updates, etc.

For DNS servers that're being used as fakeroots like this, there's usually a reason to do this - lab environments, intentional catch-alls, etc. and you may want the host system to not use the DNS server that's on-system for that reason for things like apt update or similar.

To that end, the Technitium DNS installer script at https://download.technitium.com/dns/install.sh simply removes/overwrites /etc/resolv.conf regardless. To fix this, the servers I've installed Technitium DNS on have a chattr +i'd /etc/resolv.conf that prevents the installer from changing it (and doesn't hard fail either).

It'd be easier if the Technitium DNS installer defaulted to not overwriting the system resolv.conf and instead relied on on the server admin making those changes instead of defaulting to forcing Technitium DNS only.

Source: TechnitiumSoftware/DnsServer