LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-15-2014, 05:41 PM   #1
kasl33
Member
 
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 (10.1.184.1) 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.

Thanks,
Kris

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

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

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, 08:01 PM   #3
kasl33
Member
 
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; };
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration