Am Freitag, 29. Oktober 2010, 21:55:47 schrieb davidMbrooke: > On Wed, 2010-10-27 at 22:58 +0200, KP Kirchdoerfer wrote: > > Am Mittwoch, 27. Oktober 2010, 22:14:14 schrieb davidMbrooke: > > > On Tue, 2010-10-26 at 18:44 +0100, davidMbrooke wrote: > > > > I think this is different with Bering-uClibc4 - there is a "new" > > > > dhcpcd. I am using that and I have no /etc/dhcpc/resolv.conf > > > > generated. > > > > > > Sure enough, with the "new" dhcpcd there is a > > > script /libexec/dhcpcd-hooks/20-resolv.conf which explicitly writes > > > to /etc/resolv.conf. Calling 20-resolv.conf is currently suppressed by > > > a "nohook" line in /etc/dhcpcd.conf though. > > > > > > So, I could: > > > - Change the 20-resolv.conf script to write to a different file > > > > > > instead, either /etc/dhcpc/resolv.conf or e.g. /etc/dnsmasq.resolv.conf > > > (I prefer the latter). > > > > > > - Change /etc/dhcpcd.conf to call 20-resolv.conf again > > > - Change /etc/dnsmasq.conf to refer to /etc/dnsmasq.resolv.conf via > > > > > > "resolv-file" > > > > > > Thoughts? > > > > David; > > > > I use pppoe and for a usual setup dnsmasq points to the upstream DNS > > server in /etc/ppp/resolv.conf. Though I only use that as a fallback, > > instead I have my own resolv.conf in /etc to work around some annoying > > (political-based) misbehaviour with the DNS servers of my provider. > > > > So using /etc/ppp/resolv.conf or /etc/dhcpc/resolv.conf is a safe way and > > still a user has the option to go with own DNS servers in > > /etc/resolv.conf. > > > > That is all (more or less) well documented and I don't see any win, if we > > change names yet. So my vote is to "change the 20-resolv.conf script to > > write to a different file instead, namely /etc/dhcpc/resolv.conf" > > > > kp > > Thanks for the advice kp. I guessed you were doing something like that. > I have made changes to dhcpcd.lrp to generate /etc/dhcpc/resolv.conf > from the default configuration. > > My thinking behind a different name (like /etc/dnsmasq.resolv.conf) was > that /etc/dnsmasq.conf could then reference this as standard using > "resolv-file" but we could have different packages > creating /etc/dnsmasq.resolv.conf as required - dhcpcd, ppp etc.
Hmm; that forces everyone who does not use dnsmasq has to reconfigure from our own defaults to get the standard defaults one knows from every other linux distribution. Don't know what's easier to understand for users. Otherwise in our standard setup it "just" works regardless if its dhcpcd or pppoe... not bad. I guess something to put into TRAC for later. kp ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ leaf-devel mailing list leaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-devel