Re: [Pdns-users] Configure PowerDNS recursor as NON RECURSIVE

2011-03-16 Thread davis_jira

Hi Adriel Torres,

Thanks for the reply. I am aware that it has two packages but I am wondering
if I could configure the pdns-recursor stand alone to work as non-recursive?
I guess I can not. 

Also could you please tell in brief how does the pdns-server (PowerDNS Auth
Server) works exactly? I am confused after reading so many things on
internet.

Thanks.


Adriel Torres wrote:
 
 Hi there,
 
 I am just trying to understand what you are trying to do.  Are you aware
 that PowerDNS has two packages? There is the powerdns-server and
 powerdns-recursor.  The pdns-server doesn't do recursion, that's what the
 recursor package is for.  I hope I am understanding your question.
 
 Kind regards
 
 On Tue, Mar 15, 2011 at 7:13 PM, davis_jira davis.j...@gmail.com wrote:
 

 Hi all,

 I am new to PowerDNS. I have downloaded the new PowerDNS recursor 3.3 tar
 file from their website. I am debugging the code to understand how it
 works.
 I can see that there are two config files being referred in the code.
 recursor.conf in pdns_recursor.cc and pdns.conf in rec_control.cc.

 I want to be able to config the PowerDNS recursor in Non Recursive mode.
 I
 know there are following parameters from whatever I read online, which
 let
 me do that. 1. allow-recursion, 2. allow-recursion-override, 3. recursor
 ...
 but I get an error when I put these parameters in recursor.conf that its
 not
 recognized.
 Also I am not sure what goes into the pdns.conf.

 I have not configured the backend database to anything. I just want to
 look
 at the flow of the functions being called when it is run in recursive
 mode
 as well as in non-recursive mode.

 Could anyone explain me how exactly am I supposed to configure the
 PowerDNS
 to be able to achieve above?

 I have been trying this since long time but not yet succeeded. I look
 forward for the help.

 Thanks.


 --
 View this message in context:
 http://old.nabble.com/Configure-PowerDNS-recursor-as-NON-RECURSIVE-tp31156937p31156937.html
 Sent from the PowerDNS mailing list archive at Nabble.com.

 ___
 Pdns-users mailing list
 Pdns-users@mailman.powerdns.com
 http://mailman.powerdns.com/mailman/listinfo/pdns-users

 
 ___
 Pdns-users mailing list
 Pdns-users@mailman.powerdns.com
 http://mailman.powerdns.com/mailman/listinfo/pdns-users
 
 

-- 
View this message in context: 
http://old.nabble.com/Configure-PowerDNS-recursor-as-NON-RECURSIVE-tp31156937p31165551.html
Sent from the PowerDNS mailing list archive at Nabble.com.

___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
http://mailman.powerdns.com/mailman/listinfo/pdns-users


Re: [Pdns-users] Configure PowerDNS recursor as NON RECURSIVE

2011-03-16 Thread Stefan Schmidt
On Wed, Mar 16, 2011 at 6:19 PM, davis_jira davis.j...@gmail.com wrote:


 Hi Adriel Torres,


Hey there,


 Thanks for the reply. I am aware that it has two packages but I am
 wondering
 if I could configure the pdns-recursor stand alone to work as
 non-recursive?
 I guess I can not.


That is correct the only purpose of PowerDNS recursor is to act as a
recursive nameserver.
Although it has been fitted with the ability to serve static zones (see the
forward-zones configuration statement [1]),
it does not have a switch to globally disable recursion.
On most distributions the PowerDNS recursor uses the
/etc/powerdns/recursor.conf file for it's configuration.



 Also could you please tell in brief how does the pdns-server (PowerDNS Auth
 Server) works exactly? I am confused after reading so many things on
 internet.


PowerDNS Server (!= recursor) features lots of backends therefore you first
need to tell it which backend to fire up and use. [2]
The most commonly used is probably the gmysql backend. In order to serve the
data from a mysql database you first need to create some tables. [3]
PowerDNS Server configuration usually resides in the /etc/powerdns/pdns.conf
file.
For a simple mysql backend configuration one would put something like the
following in there:

launch=gmysql
gmysql-host=127.0.0.1
gmysql-dbname=mydatabase
gmysql-user=pdns
gmysql-password=secret

However if you are already familiar to the way BIND is doing things maybe
you want to do your first steps into PowerDNS land with the bind backend.
[4]
That would be something like:

launch=bind
bind-config=/etc/namedb/named.conf - or where your named.conf is situated

The bind backend will simply iterate through the zone statements in
named.conf and load all zonefiles specified there.

[1] http://doc.powerdns.com/built-in-recursor.html#recursor-settings
[2] http://doc.powerdns.com/modules.html
[3] http://doc.powerdns.com/generic-mypgsql-backends.html#id419487
[4] http://doc.powerdns.com/bindbackend.html#id421440
___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
http://mailman.powerdns.com/mailman/listinfo/pdns-users


Re: [Pdns-users] Configure PowerDNS recursor as NON RECURSIVE

2011-03-16 Thread davis_jira

Hi Stefan,

Thanks for reply. It helped a lot to clear my confusion. I still have a
question regarding pdns-server. How does it perform the query lookup? 
For eg: I query for host google.com 127.0.0.1  ... if this entry is in the
database .. it returns the answer from database look up. 
But if the entry is not in the database and pdns-recursor is configured, it
will perform the recursive lookup and return the answer.
But what if pdns-recursor is not configure ? 

At this time I am working on configuring the pdns-server, hope I get it
correct. 

Thanks.

Regards

Stefan Schmidt wrote:
 
 On Wed, Mar 16, 2011 at 6:19 PM, davis_jira davis.j...@gmail.com wrote:
 

 Hi Adriel Torres,

 
 Hey there,
 
 
 Thanks for the reply. I am aware that it has two packages but I am
 wondering
 if I could configure the pdns-recursor stand alone to work as
 non-recursive?
 I guess I can not.

 
 That is correct the only purpose of PowerDNS recursor is to act as a
 recursive nameserver.
 Although it has been fitted with the ability to serve static zones (see
 the
 forward-zones configuration statement [1]),
 it does not have a switch to globally disable recursion.
 On most distributions the PowerDNS recursor uses the
 /etc/powerdns/recursor.conf file for it's configuration.
 
 

 Also could you please tell in brief how does the pdns-server (PowerDNS
 Auth
 Server) works exactly? I am confused after reading so many things on
 internet.


 PowerDNS Server (!= recursor) features lots of backends therefore you
 first
 need to tell it which backend to fire up and use. [2]
 The most commonly used is probably the gmysql backend. In order to serve
 the
 data from a mysql database you first need to create some tables. [3]
 PowerDNS Server configuration usually resides in the
 /etc/powerdns/pdns.conf
 file.
 For a simple mysql backend configuration one would put something like the
 following in there:
 
 launch=gmysql
 gmysql-host=127.0.0.1
 gmysql-dbname=mydatabase
 gmysql-user=pdns
 gmysql-password=secret
 
 However if you are already familiar to the way BIND is doing things maybe
 you want to do your first steps into PowerDNS land with the bind backend.
 [4]
 That would be something like:
 
 launch=bind
 bind-config=/etc/namedb/named.conf - or where your named.conf is situated
 
 The bind backend will simply iterate through the zone statements in
 named.conf and load all zonefiles specified there.
 
 [1] http://doc.powerdns.com/built-in-recursor.html#recursor-settings
 [2] http://doc.powerdns.com/modules.html
 [3] http://doc.powerdns.com/generic-mypgsql-backends.html#id419487
 [4] http://doc.powerdns.com/bindbackend.html#id421440
 
 ___
 Pdns-users mailing list
 Pdns-users@mailman.powerdns.com
 http://mailman.powerdns.com/mailman/listinfo/pdns-users
 
 

-- 
View this message in context: 
http://old.nabble.com/Configure-PowerDNS-recursor-as-NON-RECURSIVE-tp31156937p31167783.html
Sent from the PowerDNS mailing list archive at Nabble.com.

___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
http://mailman.powerdns.com/mailman/listinfo/pdns-users


[Pdns-users] Configure PowerDNS recursor as NON RECURSIVE

2011-03-15 Thread davis_jira

Hi all,

I am new to PowerDNS. I have downloaded the new PowerDNS recursor 3.3 tar
file from their website. I am debugging the code to understand how it works.
I can see that there are two config files being referred in the code.
recursor.conf in pdns_recursor.cc and pdns.conf in rec_control.cc. 

I want to be able to config the PowerDNS recursor in Non Recursive mode. I
know there are following parameters from whatever I read online, which let
me do that. 1. allow-recursion, 2. allow-recursion-override, 3. recursor ...
but I get an error when I put these parameters in recursor.conf that its not
recognized. 
Also I am not sure what goes into the pdns.conf. 

I have not configured the backend database to anything. I just want to look
at the flow of the functions being called when it is run in recursive mode
as well as in non-recursive mode.

Could anyone explain me how exactly am I supposed to configure the PowerDNS
to be able to achieve above? 

I have been trying this since long time but not yet succeeded. I look
forward for the help.

Thanks.


-- 
View this message in context: 
http://old.nabble.com/Configure-PowerDNS-recursor-as-NON-RECURSIVE-tp31156937p31156937.html
Sent from the PowerDNS mailing list archive at Nabble.com.

___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
http://mailman.powerdns.com/mailman/listinfo/pdns-users


Re: [Pdns-users] Configure PowerDNS recursor as NON RECURSIVE

2011-03-15 Thread Adriel Torres
Hi there,

I am just trying to understand what you are trying to do.  Are you aware
that PowerDNS has two packages? There is the powerdns-server and
powerdns-recursor.  The pdns-server doesn't do recursion, that's what the
recursor package is for.  I hope I am understanding your question.

Kind regards

On Tue, Mar 15, 2011 at 7:13 PM, davis_jira davis.j...@gmail.com wrote:


 Hi all,

 I am new to PowerDNS. I have downloaded the new PowerDNS recursor 3.3 tar
 file from their website. I am debugging the code to understand how it
 works.
 I can see that there are two config files being referred in the code.
 recursor.conf in pdns_recursor.cc and pdns.conf in rec_control.cc.

 I want to be able to config the PowerDNS recursor in Non Recursive mode. I
 know there are following parameters from whatever I read online, which let
 me do that. 1. allow-recursion, 2. allow-recursion-override, 3. recursor
 ...
 but I get an error when I put these parameters in recursor.conf that its
 not
 recognized.
 Also I am not sure what goes into the pdns.conf.

 I have not configured the backend database to anything. I just want to look
 at the flow of the functions being called when it is run in recursive mode
 as well as in non-recursive mode.

 Could anyone explain me how exactly am I supposed to configure the PowerDNS
 to be able to achieve above?

 I have been trying this since long time but not yet succeeded. I look
 forward for the help.

 Thanks.


 --
 View this message in context:
 http://old.nabble.com/Configure-PowerDNS-recursor-as-NON-RECURSIVE-tp31156937p31156937.html
 Sent from the PowerDNS mailing list archive at Nabble.com.

 ___
 Pdns-users mailing list
 Pdns-users@mailman.powerdns.com
 http://mailman.powerdns.com/mailman/listinfo/pdns-users

___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
http://mailman.powerdns.com/mailman/listinfo/pdns-users