Super User is a question and answer site for computer enthusiasts and power users. 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

The first thing I have done was remove resolvconf cause it was block chattr +i on /etc/resolv.conf But even this not helped. After install on desktop, resolv.conf is generated by NetworkManager (so why chattr not work?) with nameserver I'm not sure where to set default one.

share|improve this question
This is unclear and confusing. What are you trying to accomplish? (“Set up DNS” isn't specific enough!) What's up with chattr; are you trying to chattr +i /etc/resolv.conf; if so, why? – Blacklight Shining Sep 21 '13 at 3:04
Well my bad. Of course I was trying to lock this file exactly this way. But at first it failed cause resolvconf has locked resolv.conf. – KamilKrzes Sep 23 '13 at 5:42
Why are you trying to prevent modifications to /etc/resolv.conf? We want to get to the root of what you're trying to do here. – Blacklight Shining Sep 23 '13 at 12:06
up vote 1 down vote accepted

Finally its working!
First apt-get remove resolvconf
Second pico /etc/NetworkManager/NetworkManager.conf and comment line starting with dns
Third edit /etc/resolv.conf as You need.

After install everything is working fine.

And strange fact. Installation process is ignoring somehow chattr +i /etc/resolv.conf.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .