resolv.conf file and DNS lookups

Posted on 2008-11-10
Last Modified: 2013-12-06
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)
Question by:JWeb Admin
    LVL 40

    Accepted Solution

    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.


    Author Closing Comment

    by:JWeb Admin
    that's what i was thinking - dns forwarding!  also, from what i've read, the resolv.conf file only supports 3 name servers

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Creating a Samba server for a small office. Ubuntu Linux and Samba can breathe new life into a retired PC and save an office money on new hardware/software. Our example server will have two hard disks, one exclusively for storing shared data. …
    Users are often faced with high disk consumption without really knowing where the largest amount of data resides. Disk Usage Analyzer (aka Baobab) is is a graphical, menu-driven application to analyse disk usage in any Gnome environment and can e…
    This video discusses moving either the default database or any database to a new volume.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now