LinuxQuestions.org
Help answer threads with 0 replies.
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 03-17-2012, 02:46 PM   #1
melendro
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Rep: Reputation: Disabled
How to try next nameserver when the first one replies "No such name"?


I'm trying to resolve names that only the second nameserver in /etc/resolv.conf knows about. The first nameserver is a public one and the second is of my company, reacheable through a VPN. My company is using internally two domain names: one that doesn't exist in Internet and another one that somebody has recently registered.

When I ask for a name of the domain that doesn't exist in Internet, the first nameserver replies "Server Failure" and the resolver system tries the second nameserver which knows the name, so it works. The problem is when I ask for a name of the domain that now exists in Internet: the first nameserver replies "No such name" and the resolver system stops and doesn't ask the second nameserver.

I cannot change the order of the nameservers for two reasons: the VPN with my company is not always up so the second nameserver is not always reachable, and also I don't want to ask my company nameserver about sites I visit in Internet in my non-professional life.

Does somebody know how to configure the resolver system so it asks the second nameserver when the first one replies "No such name"?
 
Old 03-18-2012, 05:11 AM   #2
Celyr
Member
 
Registered: Mar 2012
Location: Italy
Distribution: Slackware+Debian
Posts: 321

Rep: Reputation: 81
I think that the main problem is to use valid domain internally. It would be better to use something.lan (and i suggest you so).
The only way to solve your problem now is to set up a nameserver locally. Wich will forward to the right nameserver the queries.
 
1 members found this post helpful.
Old 03-18-2012, 05:43 AM   #3
melendro
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Celyr View Post
I think that the main problem is to use valid domain internally. It would be better to use something.lan (and i suggest you so).
The only way to solve your problem now is to set up a nameserver locally. Wich will forward to the right nameserver the queries.
That's exactly what I told to the management when they decided to use names for the internal servers that could be used in Internet, which finally has happened. But you known, for the managers I'm just an IT guy that say silly and incomprehensible things... Now, the option of changing the internal domains is very complicated, as we have about 500 servers and that's a lot of work and a probable source of many problems.

Meanwhile, your solution is good, thank you for the idea, but we'd have to setup a DNS server inside every company laptop, which is also not an easy task, but is easier than changing the internal domains.

I'll do that if there's no other options, but my questions is still open: is there a way to change the resolver system's default behaviour of not asking the next nameservers when the first one replies "No such name"? Maybe there's a way and this way could be even easier to implement in all laptops.
 
Old 03-18-2012, 06:00 AM   #4
Celyr
Member
 
Registered: Mar 2012
Location: Italy
Distribution: Slackware+Debian
Posts: 321

Rep: Reputation: 81
Quote:
Originally Posted by melendro View Post
That's exactly what I told to the management when they decided to use names for the internal servers that could be used in Internet, which finally has happened. But you known, for the managers I'm just an IT guy that say silly and incomprehensible things... Now, the option of changing the internal domains is very complicated, as we have about 500 servers and that's a lot of work and a probable source of many problems.

Meanwhile, your solution is good, thank you for the idea, but we'd have to setup a DNS server inside every company laptop, which is also not an easy task, but is easier than changing the internal domains.
Maybe you can start the migration right now. You can make a new ".lan" domain and use both while the migration isn't complete. It can be the easiest way and you can go on "migrating" for a long while.

Quote:
Originally Posted by melendro View Post
I'll do that if there's no other options, but my questions is still open: is there a way to change the resolver system's default behaviour of not asking the next nameservers when the first one replies "No such name"? Maybe there's a way and this way could be even easier to implement in all laptops.
Sorry, I don't know an answer about that. I don't think is possible without rewriting resolver code.
 
Old 03-18-2012, 07:18 AM   #5
melendro
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Celyr View Post
Sorry, I don't know an answer about that. I don't think is possible without rewriting resolver code.
I was afraid you'd say that: there's no option, as it is hardcoded.

I'll study the two solutions (changing the internal domain name of all servers, or install named on all laptops). At first glance, first one seems more complicated but better (and forever), second one seems easier but it is an ugly workaround.

Thanks for your help.
 
  


Reply



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
"posts with 0 replies" search to ignore member intro forum? ror LQ Suggestions & Feedback 4 10-10-2014 09:54 PM
Sorting by "Number of Replies" in ascending order does not appear to work PTrenholme LQ Suggestions & Feedback 2 02-15-2008 11:59 AM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM
Search for "0 replies" threads only inside of the forum zahadumy LQ Suggestions & Feedback 12 12-18-2005 11:36 AM

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

All times are GMT -5. The time now is 06:42 PM.

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