Solved sendmail starts slow when dns server hasn't started yet

I have my DNS server in a jail which starts after sendmail. Sendmail takes a long time to start because of this.

I have the machine in /etc/hosts and /etc/host.conf has hosts before dns. The ping command looks up the hostname right away.

Any way to get senmail to start faster or get it to start after jails?
 
After trying dozens of solutions posted on the internet, I finally figured it out. My hosts file had hostname.local for my ipv4 address but not for my ipv6 address which had my full public domain name. Added the .local name to the ipv6 entry and it starts really quick without a dns server now.
 
Back
Top