On Sun, 2010-01-24 at 15:22 -0300, Aldo Caruso wrote: > That works but is a workaround to the bug which cannot be used if you > need different DNS nameservers depending on the network you are > connecting to (for example to solve internal machine names, which > aren't public). > > Surprisingly the problem arises in the simplest case ( static IP > address ), and only after rebooting: The configuration set by NM isn't > written on /etc/resolv.conf and the NM configuration must be > re-selected to get written to the file.
When resolvconf is installed and NetworkManager connects/disconnects a particular device, NM sends the nameserver configuration to resolvconf and does not write /etc/resolv.conf directly, leaving resolv.conf arbitration up to resolvconf. Does anyone know of a way to get debuginfo or whatever out of resolvconf so we can see what it's doing in cases like this? I'd like to add that info to the NetworkManagerDebugging wiki page. At least if NM is writing /etc/resolv.conf it logs what it's doing to syslog... Dan > Aldo > > > José Queiroz escribió: > > Because you didn't configured resolvconf to fix your nameserver in > > /etc/resolv.conf. > > > > You do that adding the line "nameserver 127.0.0.1" to > > "/etc/resolvconf/resolv.conf.d/head" and reconnecting. There may be a > > better way, indeed. > > > > 2010/1/24 Aldo Caruso <[email protected]>: > > > > > That doesn't solve the problem: when I select static configuration and > > > reboot, the nameserver entry is deleted from /etc/resolv.conf ( whichever > > > it > > > is, 127.0.0.1 or other ). > > > > > > José Queiroz escribió: > > > > > > Why don't you install a dns server on your machine? This way you can > > > use resolvconf to fix "nameserver 127.0.0.1" to you, and never again > > > need to guess what is your dns server right now... > > > > > > 2010/1/23 Aldo Caruso <[email protected]>: > > > > > > > > > Hi, > > > I have Ubuntu 8.0, two network manager configurations corresponding to > > > two > > > locations: one when I'm at home with a static IP address, and the other > > > for > > > using wi fi with dynamic IP addressed. > > > Everything worked well until I installed the resolvconf package. > > > When I use the dynamic configuration there is no problem. If instead I > > > select the static one, everything works fine until I reboot my machine. > > > After a boot, the file /etc/resolv.conf has no entries (only default > > > comments), and I must reselect the static configuration from network > > > manager > > > in order to get the static DNSs listed in /etc/resolv.conf > > > > > > Thanks for any clue. > > > Aldo > > > _______________________________________________ > > > NetworkManager-list mailing list > > > [email protected] > > > http://mail.gnome.org/mailman/listinfo/networkmanager-list > > > > > > > > > > > > _______________________________________________ > > > NetworkManager-list mailing list > > > [email protected] > > > http://mail.gnome.org/mailman/listinfo/networkmanager-list > > > > > > > > _______________________________________________ > > NetworkManager-list mailing list > > [email protected] > > http://mail.gnome.org/mailman/listinfo/networkmanager-list > > > _______________________________________________ > NetworkManager-list mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/networkmanager-list _______________________________________________ NetworkManager-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/networkmanager-list
