Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

i have a wired connection that is not managed by network manager due to nm not yet supporting bridge.

on the other hand all my wireless connections are managed by network manager. problem is, when i use my wired connection, nm instead of not doing anything, it out my /etc/resolv.conf by putting

# Generated by NetworkManager

and nothing more. i suspect this is because there's no connection and per default nm reset my resolv.conf. how can i tell nm to not overwrite /etc/resolv.conf if there's no connection ?

i know i can chattr -i that file or putting a post-up command in my /etc/network/interfaces but i'd like a cleaner way rather than a hack or a workaround for this strange behavior of network manager

share|improve this question
This is a long standing "bug" that nm does not support bridges. The resolution sort of depends on what you are doing exactly (virtualization ?) . IMO , it is easiest to remove network manager and manually configure your bridge and wireless card. This shows you how - askubuntu.com/questions/16584/… . The alterante is to configure nm properly. See askubuntu.com/questions/2321/… –  bodhi.zazen Jun 2 '14 at 15:15
problem is i have also a 3g modem that works only with network manager. on the other hand i can't configure nm on the wired connection because i need bridges. i would live with this hybrid conf, my problem is i don't know how to tell to nm to leave my resolv.conf untouched –  samu Jun 2 '14 at 15:54
See the second link I gave you. If you have a problem, update your question. –  bodhi.zazen Jun 2 '14 at 16:16

Your Answer


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

Browse other questions tagged or ask your own question.