Ralf Hildebrandt wrote:
* Matus UHLAR - fantomas <[EMAIL PROTECTED]>:
I guess that setting timeout, rotate and attempts options in resolv.conf
could help you more than such script
Nice tip, but there's no option that will "back off" from a dead DNS.
Of course timeout/attempts and rotate will help a bit.
You missed it - there is:
nc -w 0 -z $ns 53 | cut -d \ -f 3 | sed -e 's/^.*$/nameserver \0/' >>
/etc/resolv.conf
This only creates a line IF the nameserver is working. The idea is that
it automatically culls out the dead servers.