-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 08/27/2010 02:43 AM, Thomas Moschny wrote: > 2010/8/27 Jesse Keating <jkeating@xxxxxxxxxxxxxxx>: >> That's strange. I use it on my laptop, which has a caching local DNS >> server (dnsmasq) and it works just fine. I do have a script in >> /etc/NetworkManager/dispatcher.d/ that waits for bringup and vpn bring >> up to make adjustments to the running local DNS server (which seems >> easier with NM than it would be with the old scripts). > > How can it be easier than this line in /etc/dhcp/dhclient-eth0-up-hooks: > new_domain_name_servers="127.0.0.1 $new_domain_name_servers" That only does half the job. That just forces your dns resolution to use the local host, but that does nothing for updating the local resolver for any new upstream DNS servers it should become aware of, such as a vpn coming online. It's catching the VPN coming up / down, and reacting to that which is easier with NetworkManager. > > This doesn't work with NM anymore however, so care to share your NM script? export LC_ALL=C if [ "$2" = "vpn-up" ]; then <do some stuff here, like touching /etc/resolv.conf, touching dnsmasq config, restarting dnsmasq> fi if [ "$2" = "vpn-down" ]; then <do some stuff to undo the above> fi > (Imho NM should offer a configuration option for this, seems a common case.) > > Thanks > Thomas - -- Jesse Keating Fedora -- Freedom² is a feature! identi.ca: http://identi.ca/jkeating -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iEYEARECAAYFAkx4IIIACgkQ4v2HLvE71NV5mQCgrD7D8h2mpz3SHxi+Qqv1P8ec 7t0An1c/ZP5inWR4szePDuTs0qx4Nb5b =wx67 -----END PGP SIGNATURE----- -- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/devel