Re: Neat trick to bypass /etc/resolv.conf and use your own resolv.conf for dnscache

Charles Cazabon <[email protected]> Wed, 10 May 2017 15:52:47 -0600
Newsgroups gmane.mail.qmail.general
Message-ID <[email protected]>
Manvendra Bhangui <[email protected]> wrote:
> I had a situation where I am running dnscache [...] However my resolv.conf
> would get updated by NetworkManager or by vpn client.
[...]
> Here is a neat solution using unshare [...]

Looks like overkill.  Why not just make resolv.conf immutable?  i.e. chattr +i
It's always worked for me.

Charles
-- 
--------------------------------------------------------------------------
Charles Cazabon
GPL'ed software available at:                  http://pyropus.ca/software/
Read http://pyropus.ca/personal/writings/12-steps-to-qmail-list-bliss.html
--------------------------------------------------------------------------