On Sun, May 13, 2018 at 9:34 AM, Paul pa011@web.de wrote:
How do i protect against overwriting best in FreeBSD (maybe there could be a hint on https://trac.torproject.org/projects/tor/wiki/TorRelayGuide#DNSonExitRelays ) as well?
On FreeBSD, the simple default answer to the OP subject is...
Attempt to undo at least some of whatever unknown things you were trying to do thus hopefully restoring the system back to the install defaults provided in base.txz of the latest release...
rm /etc/resolv.conf rm /etc/resolv.conf.bak rm /etc/resolvconf.conf rm -r /var/run/resolvconf
And let the system do it...
/etc/rc.conf.local:local_unbound_enable=YES reboot
If your interfaces are managed by dhcp / rtsold / vpn, see the manpages: resolvconf, dhclient, rtsold, openvpn
And even things like this if still needed... chflags schg /etc/resolv.conv