LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-21-2014, 08:46 PM   #1
cellarweasel
LQ Newbie
 
Registered: Mar 2010
Location: Albuqueque, New Mexico
Distribution: Debian, Ubuntu, and I used Foresight and Fedora for a while.
Posts: 7

Rep: Reputation: 1
First and second DNS servers priority change.


Hello LQ,

I have a local dns server in my 10.x.x.x lan which has a few local name records configured. I also use dhcp to give out my local dns server as the first dns entry. The second is 75.75.75.75(comcast's public dns).

My issue is that sometimes I can't resolve the local servers that are in my dns. It happens intermittently and I've used wireshark to confirm that the problem is that the dns requests sometimes go directly to 75.75.75.75. Why does the second entry get used intermittently?

A simple fix is to remove the 75.75.75.75 server from dhcp but then I'm prone to complete failure when the dns server is rebooting or down. I thought that the second entry would only be used if the first was unreachable for a sufficiently long period of time (say 2 seconds or so.)

Am I right or wrong here?

Interesting details for the folks to consider are thus:
1. The DNS server is Windows Server 2008R2. It has very few errors in its logs, however there are a few which state that the remote endpoint terminated the connection.
2. The resolution problem only has happened to our people using Mac OS X, Debian or Ubuntu. The windows users have not had an issue.
3. The wireshark captures were done on Ubuntu.
 
Old 08-22-2014, 08:09 PM   #2
GaWdLy
Member
 
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457

Rep: Reputation: Disabled
How have you assigned the DNS servers? Do you use /etc/resolv.conf? Or are you using the DNS1/DNS2 stanzas in your ifconfig files?
 
Old 08-25-2014, 10:19 PM   #3
cellarweasel
LQ Newbie
 
Registered: Mar 2010
Location: Albuqueque, New Mexico
Distribution: Debian, Ubuntu, and I used Foresight and Fedora for a while.
Posts: 7

Original Poster
Rep: Reputation: 1
The DNS servers are given out by DHCP so they are auto added to /etc/resolv.conf.
 
Old 08-25-2014, 10:26 PM   #4
GaWdLy
Member
 
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457

Rep: Reputation: Disabled
You can disable peerdns by the key 'PEERDNS=no', and add 'DNS1=' and 'DNS2=' in the ifcfg-ethX files, if you want them statically assigned.
 
  


Reply

Tags
dns, dnsserver



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
replace the existing dns servers with OPEN DNS servers in fedora 13 z99 Linux - Newbie 3 03-23-2011 09:29 AM
LXer: Tweaking dhcp client configuration to change the default DNS servers to Open DN LXer Syndicated Linux News 0 08-14-2009 02:10 AM
Company DNS priority and VPN nusch Linux - Networking 2 02-16-2009 03:37 AM
How to set DNS servers? How to stop auto change of DNS servers? newtovanilla Linux - Newbie 1 10-29-2008 09:19 PM
TEMP_FAILURE: DNS Error: Timeout while contacting DNS servers when receiving emails tonysutherland Linux - Networking 2 02-10-2006 09:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration