LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-02-2012, 11:45 AM   #16
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,170
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038

You need recursion, but only for specific clients. If you use "recursion yes;", then as I've told you, anyone in the world can use your server as a resolver, resulting in cache poisoning, DOS etc
Quote:
Is this my problem? Am I using the wrong zone config type? Would a slave configuration be more what I am striving for? If so, what is the point to a forwarding config?
I don't like forwarders, so I use the hint zone, so my dns servers are both authoritative and caching.
 
Old 10-03-2012, 05:33 AM   #17
kavius
Member
 
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71

Original Poster
Rep: Reputation: 16
This leaves the questions standing: If I'm not supposed to use recursion, but I need it for forwarding, what am I supposed to do?

Does forwarding act as a proxy agent (my assumption), or does it act as a redirecting agent (what it looks like at this point)?

How would "hint" achieve the desired effect? For that matter... what does hint do?
 
Old 10-03-2012, 05:37 AM   #18
kavius
Member
 
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71

Original Poster
Rep: Reputation: 16
Last night, I started configuring it as a master/slave. The reason I chose forwarding was because I didn't want any caching whatsoever and forwarding appeared to achieve that. Forwarding doesn't act as a proxy though.... so there isn't much point in using it.

Slave zones appear closer to what I want. Of course they aren't working either.
 
Old 10-03-2012, 08:12 AM   #19
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,170
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
Quote:
This leaves the questions standing: If I'm not supposed to use recursion, but I need it for forwarding, what am I supposed to do?
I don't tell you not to use recursion. What I'm telling to you, is to specify the clients (hosts/networks) that can do recursive queries to your sever using the "allow-recursion" option, for security reasons.

Regarding your problem, the only difference I can see from here, is that resolving sharoncave.ca using 208.88.5.245 gives a SERVFAIL, not a REFUSED as it did earlier
 
Old 10-03-2012, 08:15 AM   #20
kavius
Member
 
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71

Original Poster
Rep: Reputation: 16
Is recursion a prerequisite for forwarding?

At this point, I'm actually questioning if forwarding is what I want.

Last edited by kavius; 10-03-2012 at 08:21 AM.
 
Old 10-03-2012, 10:09 AM   #21
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,170
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
Quote:
Is recursion a prerequisite for forwarding?
Recursion is not mandatory for an authoritative nameserver. Your dns is authoritative even though it forwards queries to another dns.
You need recursion if you want to use your dns as a caching nameserver (resolver) you your clients. Have a look here for more details.
 
Old 10-03-2012, 10:38 AM   #22
kavius
Member
 
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71

Original Poster
Rep: Reputation: 16
So I can have both non-recursion and forwarding. Do I want forwarding?

As I now understand it, based on
Forwarding behaves like this (not the behaviour I am trying to achieve):
Code:
       0
      -+-                +--------------+           +--------------+
       |                 + 208.88.5.245 +           + 208.88.4.232 +
______/_\______          +--------------+           +--------------+
       |                         |                          |
       |----- sharoncave.ca? --->|                          |
       |                         |                          |
       |<-- frwd:208.88.4.232 ---|                          |
       |                                                    |
       |----------------------------- sharoncave.ca? ------>|
       |                                                    |
       |<---------------------------- A rec:208.88.4.232 ---|
       |                                                    |

This is the behaviour I am trying to achieve this:
Code:
       0
      -+-                  +--------------+           +--------------+
       |                   + 208.88.5.245 +           + 208.88.4.232 +
______/_\______            +--------------+           +--------------+
       |                           |                          |
       |----- sharoncave.ca? ----->|                          |
       |                           |                          |
       |                           |--- sharoncave.ca? ------>|
       |                           |                          |
       |                           |<-- A rec:208.88.4.232 ---|
       |                           |                          |
       |<--- A rec:208.88.4.232 ---|                          |
       |                           |                          |
If this is the behaviour I am seeking, should I be using a different type? (slave?)

Last edited by kavius; 10-03-2012 at 11:02 AM. Reason: better text/illustration division
 
Old 10-03-2012, 11:21 AM   #23
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,170
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
Quote:
Do I want forwarding?
Do you?
The authoritatives nameservers for your domain are 208.88.5.245 208.88.6.207, that both give a SERVFAIL (instead of REDUSED previously)
Anyway looking closer at named.conf you've posted, you have
Quote:
forwarders{208.88.4.232;};
You need to add a blank space after forwarders. I guess that this is because it fails
 
Old 10-03-2012, 11:32 AM   #24
kavius
Member
 
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by bathory View Post
Do you?
I'm not sure.

I want the behaviour identified here. If that is called "forwarding", then "yes", otherwise "no".
 
Old 10-03-2012, 11:58 AM   #25
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,170
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
I'm not sure if I understand well your figures, so I'm trying to explain how your dns is supposed to work.
When a client on the internet wants to visit sharoncave.ca, it queries his dns.
His dns looks a way to resolve the domain and somehow it finds that the authoritative nameservers are 208.88.5.245 208.88.6.207, so it has to ask one of them.
Say it queries 208.88.5.245.If this server was working correctly, it will forward the query to 208.88.4.232, get the A RR and give the answer to the client. This is dns forwarding, so make sure that this is what you're trying to achieve.

Now both the authoritative nameservers fail because of some misconfiguration (see my previous post if that's the case), so no one can do its job to resolve your domain.
 
Old 10-03-2012, 02:38 PM   #26
kavius
Member
 
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71

Original Poster
Rep: Reputation: 16
I think it would be best if I used a master/slave configuration (slave=208.88.5.245, master=208.88.4.232). I believe this behaviour best matches my desired results. I will spend a few days tinkering with that on my own.

One last question: Does 208.88.4.232 appear to be working correctly at this point (it does to me)?
 
Old 10-04-2012, 12:40 AM   #27
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,170
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
Quote:
Originally Posted by kavius View Post
I think it would be best if I used a master/slave configuration (slave=208.88.5.245, master=208.88.4.232). I believe this behaviour best matches my desired results. I will spend a few days tinkering with that on my own.

One last question: Does 208.88.4.232 appear to be working correctly at this point (it does to me)?
I second that. It's better to use a master/slave dns combination, so if one of them fails, the other can still answer authoritatively for your domain(s).

The fact is, that now I cannot connect to 208.88.4.232 so I can use it as a resolver for your domain, but I can ping it.
Quote:
; <<>> DiG 9.9.1-P3 <<>> sharoncave.ca @208.88.4.232
;; global options: +cmd
;; connection timed out; no servers could be reached
Check if bind is running and there is no firewall blocking port 53 udp/tcp and things like that.

Regards
 
Old 10-04-2012, 05:34 AM   #28
kavius
Member
 
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71

Original Poster
Rep: Reputation: 16
I seem to have this problem now:

http://www.google.ca/url?sa=t&rct=j&...pdZGO5smSLhbrQ

Thanks for your help but suddenly I am dealing with more fundamental problems.
 
  


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
Can bind dlz work with the mysql stored procedure? oranix Linux - Server 1 01-22-2011 06:58 AM
Information about bind dlz‏ coffee777 Linux - Server 2 09-18-2009 01:01 AM
Run two instances of a dlz engine in BIND 9.5? fmillion Linux - Networking 3 06-14-2008 01:48 AM
BIND forward AD zones to DC psychobyte Linux - Networking 1 09-24-2006 11:46 AM
bind forward lookup problems blanny Linux - Networking 2 08-14-2006 04:50 PM

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

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