[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


resolv.conf file and DNS lookups

Posted on 2008-11-10
Medium Priority
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?

domain ourdomain.net
search ourdomain.net
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      10.x.x.xxx (internal DNS server 4)
nameserver      6x.xxx.xx.xx (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

omarfarid earned 2000 total points
ID: 22927385
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
ID: 31515139
that's what i was thinking - dns forwarding!  also, from what i've read, the resolv.conf file only supports 3 name servers

Featured Post

Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses

834 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