LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-08-2012, 03:43 AM   #1
dezo
LQ Newbie
 
Registered: Nov 2010
Posts: 7

Rep: Reputation: 0
DNS resolving: ask the next nameserver if the first doesn't know the answer but resps


Hello,
I am connected to the company's VPN and resolving works just fine for all company's machines and also for the global ones (google for example).
The thing is that I want to use those company's DNS servers only for resolving company's hostnames, not the global ones. If I put my local DNS server before the company's ones in /etc/resolv.conf, I cannot resolv company's hostnames, because the local server responds, but doesn't know the answer. And the machanism doesn't ask the next nameserver... If I put the local DNS server at the end, the company's DNS server knows all the answers and my local DNS server is never asked.

Can this be solved somehow?
Thanks!
 
Old 02-08-2012, 05:09 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Hi,

You can setup the company zone as a forward only zone in your dns and forward requests to the company's dns servers

Regards
 
Old 02-08-2012, 06:23 AM   #3
dezo
LQ Newbie
 
Registered: Nov 2010
Posts: 7

Original Poster
Rep: Reputation: 0
And let's say I don't have any admin access to the local DNS server. Can this be managed via client-only /etc/resolv.conf?
 
Old 02-08-2012, 06:54 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Nope.
The client gets a response from the 1st nameserver in rersolv.conf and it doesn't bother to search further.
 
Old 02-08-2012, 07:25 AM   #5
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Put company's hostnames in /etc/hosts and remove company's DNS servers from /etc/resolv.conf ?
 
Old 02-08-2012, 10:08 AM   #6
dezo
LQ Newbie
 
Registered: Nov 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Yes, that would work but this is a solution I tried to avoid... (there's quite a lot of hostnames I use)
 
Old 02-08-2012, 11:27 AM   #7
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
From dnsmasq's home page: "Dnsmasq can be configured to send queries for certain domains to upstream servers handling only those domains. This makes integration with private DNS systems easy".
 
  


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
No Nameserver found - Nameserver (DNS) failure EPS Linux - Networking 10 01-14-2012 08:11 AM
Resolving Nameserver Problem bottlerocket Linux - Laptop and Netbook 2 03-30-2010 03:24 PM
Only resolving via first nameserver robsteele Linux - Networking 2 07-22-2009 11:11 PM
Mandriva DNS works but doesn't answer clients vlad-the-emailer Mandriva 2 04-11-2007 03:29 PM
No Nameserver resolving using TDSL opa_munster Linux - Networking 1 09-03-2003 08:04 AM

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

All times are GMT -5. The time now is 09:51 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