resolv.conf file and DNS lookups

I have a qmail SMTP server that is one of our relay servers.  Everything for the past year has been working great.  We had a small issue this weekend with looking up mx records in order to send out an email.  

Looking at our qmail logs, a valid mx record was not found for a certain domain.  The reason why they weren't found is because our qmail server (using values from resolv.conf) was doing a lookup on our internal DNS servers first, where the mx records did not exist.  Once I added them, the emails shot out just fine.

My question is - if my resolv.conf file is setup the way it is below, and the mx records were not found internally, why didn't the machine move onto the other DNS servers (which are public) where the MX records DO exist?  It seemed like it stopped performing lookups once the records did not appear on our internal DNS servers.  

How exactly does Fedora move from one DNS server to another?  Am I missing something?

nameserver      10.x.x.xx (internal DNS server 1)
nameserver      10.x.x.xx (internal DNS server 2)
nameserver      10.x.x.xx (internal DNS server 3)
nameserver (internal DNS server 4)
nameserver (public DNS server 1)
nameserver      6x.xx.xx.xx (public DNS server 2)
nameserver      6x.xx.xx.xx (public DNS server 3)
nameserver      6x.xx.xx.xx (public DNS server 4)
JWeb AdminAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

The dns query will stop once an answer is received (positive or negative). The fail over happen when the dns server is not responding. It is better to configure the internal dns server to query other public dns servers.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JWeb AdminAuthor Commented:
that's what i was thinking - dns forwarding!  also, from what i've read, the resolv.conf file only supports 3 name servers
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.