Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running a 3rd party vpn daemon that changes resolv.conf on init and checks for changes continuously.

I installed my own local dns cache that gets properly inside resolv.conf but the vpn daemon puts its resolvers before that and I'm getting huge timeouts.

Any idea on how could I use another config file to specify I want to resolve my own stuff or at least reducing the standard dns timeout(5 secs) without touching resolv.conf

share|improve this question

I'd be invoking the awesome power of chattr +i /etc/resolv.conf to make the file immutable, or else hunting down the author of the VPN client and beating them around the head with a clue-by-four.

share|improve this answer
Tell it who's boss. You shouldn't need to adapt around it. – Dan Carley Oct 7 '09 at 11:25
Looks like a good one, but I do need it to modify it to add vpns own dns to work, just after my own local dns, not before. – Arkaitz Jimenez Oct 7 '09 at 11:34
Add the VPN's DNS servers yourself where you want them, then chattr it. – womble Oct 8 '09 at 9:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.