Dan Nicholson wrote: > On 9/28/06, Jonathan Oksman <[EMAIL PROTECTED]> wrote: >> >> This is my first actual post here, but I've been reading for quite >> some time. I've been using LFS since book 3 for some kind of >> relativity (not that it should indicate anything, really). > > Thanks for reporting the problem. It would also be nice if you could > create a ticket so we don't forget this. This happens on the BLFS > wiki, and you'd need an account to create a ticket. > > http://wiki.linuxfromscratch.org/blfs/ > >> The problem only occurs when dhclient attempts to resolve from a >> server that does not supply a domain-name. Debugging lead me to >> realize that it comes down to this specific line from dhclient-script >> (which is unmodified from the iproute2 patch, all versions): >> >> if [ "x$new_domain_name" != x ] && [ x"$new_domain_name_servers" != x >> ]; then >> >> If a domain-name is not passed from the router, then this line causes >> the resolv.conf update function to fail, even if it recieved >> domain-name-servers in the $new_domain_name_servers variable. Due to >> the design of the whole function, it needs to be reworked as such to >> avoid any glitches. >> >> if [ "x$new_domain_name" != x ] || [ x"$new_domain_name_servers" != x >> ]; then >> echo "# this file was generated by dhclient-script (even if you >> don't have a domain-name)." > /etc/resolv.conf >> chmod 755 /etc/resolv.conf >> fi >> if [ "x$new_domain_name" != x ]; then >> echo "search $new_domain_name" >> /etc/resolv.conf >> fi >> if [ "x$new_domain_name_servers" != x ]; then >> for nameserver in $new_domain_name_servers; do >> echo "nameserver $new_domain_name_servers" >> /etc/resolv.conf >> done >> fi > > Yeah, the dhclient script is pretty crappy. I think you did the same > thing that Jürg Billeter was doing on Paldo. Here's a copy of that > patch: > > http://www.linuxfromscratch.org/~dnicholson/dhcp-3.0.3-dns-1.patch > > Does that do the same thing?
Personally, I don't reset my resolv.conf at all but use my ISP's dns server all the time. What's the advantage of using a new one at each boot? 100ms per query? -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
