Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 08-15-2014, 06:41 PM   #1
Registered: Oct 2004
Location: USA
Distribution: Ubuntu-Server, Mac OS X, Arch Linux
Posts: 356

Rep: Reputation: 48
DNS client will not resolve when DHCP DNS entry exists

Hi all,

I am using Chef to deploy instances in an OpenStack environment. Therefore, since this OpenStack infrastructure is used as IaaS, I need to have the DHCP DNS server set, or I will lose all of the local network connectivity due to unresolved DNS requests.

I have an issue where as long as DHCP is putting that default nameserver ( in /etc/resolv.conf, my own DNS server entries (which are currently using public IP addresses until I get VPN in place) will not resolve.

If I remove the DHCP nameserver entry, then my stuff resolves as I need it to, but then none of the OpenStack network connectivity works.

It doesn't matter if the DHCP DNS record is on the top or bottom in /etc/resolv.conf, it still won't let me resolv my DNS servers.


Last edited by kasl33; 08-18-2014 at 11:08 AM.
Old 08-24-2014, 01:23 AM   #2
Registered: Aug 2010
Location: Seattle
Distribution: CentOS, RHEL, Oracle Enterprise Linux, Solaris, BSD
Posts: 64

Rep: Reputation: 21
What server are you using internally? (

What it sounds like is happening is that your internal DNS server is set to disallow recursion (fetching DNS data from upstream sources when it receives a non-local request).

I can provide more guidance if I know what DNS daemon you're using.
1 members found this post helpful.
Old 08-24-2014, 09:01 PM   #3
Registered: Oct 2004
Location: USA
Distribution: Ubuntu-Server, Mac OS X, Arch Linux
Posts: 356

Original Poster
Rep: Reputation: 48
I actually found the answer last week and soarisguy, you are 100% correct in your answer. I ended up prepending my DNS servers in /etc/dhcp/dhclient.conf so they would be at the top in /etc/resolvconf/resolv.conf.d/head. Additionally, I added the following to /etc/bind/named.conf.options and now it all works fine (Later on I will replace `any` with specific networks/hosts:

recursion yes;
allow-recursion { any; };


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
dns client cannot resolve on dns server jtvillegas Linux - Software 3 03-12-2016 04:30 PM
Update DNS Entry using dhcp client bhushanmhatre Linux - Networking 2 08-31-2012 07:13 AM
Client can't resolve dns sovicheth Linux - Newbie 1 09-28-2009 12:07 PM
How does a client resolve dns queries with transparent proxy ? amitsharma_26 Linux - Security 5 09-17-2006 12:49 PM
dns entry - client side without proxy basbosco Linux - General 0 03-08-2004 05:57 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:35 PM.

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