[Pdns-users] How to forward the DNS query to a dedicated DNS server?

Marc Haber mh+pdns-users at zugschlus.de
Tue Jun 5 10:23:43 UTC 2012


On Tue, Jun 05, 2012 at 03:09:40AM -0700, RBK1001 wrote:
> I actually use it to handle DNS query.
> 
> I am able to get it success just nor using forward-zones.

Please give dig statements.

> One question. how I can make use of it to handle primary and secondary
> server query?
> 
> e.g. when primary is down, the query will be sent to secondary? Can i
> configure as below?
> 
>  --forward-zones=test.com=192.168.20.214, test.com=192.168.20.215

forward-zones

    Comma separated list of 'zonename=IP' pairs. Queries for zones
    listed here will be forwarded to the IP address listed.
    forward-zones= ds9a.nl=213.244.168.210, powerdns.com=127.0.0.1.
    Available since 3.1.

    Since version 3.1.5, multiple IP addresses can be specified.
    Additionally, port numbers other than 53 can be configured. Sample
    syntax: forward-zones=ds9a.nl=213.244.168.210:5300;127.0.0.1,
    powerdns.com=127.0.0.1;9.8.7.6:530, or on the command line:
    --forward-zones="ds9a.nl=213.244.168.210:5300;127.0.0.1,
    powerdns.com=127.0.0.1;9.8.7.6:530", 

(pasted from http://doc.powerdns.com/built-in-recursor.html, which is
the first hit on the major search engine when querying for "powerdns
recursor forward-zones")

So your configuration would probably be
--forward-zones=test.com=192.168.20.214;192.168.20.215

And, please do not use Domains that do not belong to you to obfuscate
your own data. Example.(com,net,org) is reserved for that, and it is
easier to help when you give actual domain names.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 31958061
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 31958062



More information about the Pdns-users mailing list