File: //usr/share/doc/sendmail-base/examples/resolvconf/update-libc.d/sendmail
#!/bin/sh
# Make sendmail aware of changes to resolv.conf
# so that we can reset the statistics for unresolvable hostnames
# Bring in some script functions to handle dynamic configuration
test -r /usr/share/sendmail/dynamic || exit 0
. /usr/share/sendmail/dynamic
# Note the interface that just changed - unfortunately, we know not how :(
update_resolv;
# If anything has been changed, update sendmail.cf and reload
update_sendmail;