[Pdns-users] Recursor fails to resolve domains

Odhiambo Washington odhiambo at gmail.com
Mon Apr 8 14:51:55 UTC 2013


# user editable stuff:
SBINDIR=/usr/local/sbin/
BINDIR=/usr/local/bin/
CONFIGDIR=/usr/local/etc/pdns/

And I have my recursor.conf in /usr/local/etc/pdns/

I start pdns_recursor as with the following script in FreeBSD:

#!/bin/sh
#
# $$
#

# PROVIDE: pdns_recursor
# REQUIRE: SERVERS cleanvar
# BEFORE:  DAEMON
# KEYWORD: shutdown

#
# Add the following lines to /etc/rc.conf to enable pdns_recursor:
#
# pdns_recursor_enable="YES"
# pdns_recursor_flags="<set as needed>"
#
# See pdns_recursor(8) for flags.
#

. /etc/rc.subr

name=pdns_recursor
rcvar=pdns_recursor_enable

command="/usr/local/sbin/pdns_recursor"

# set defaults

pdns_recursor_enable=${pdns_recursor_enable:-"NO"}
pdns_recursor_conf=${pdns_recursor_conf:-"/usr/local/etc/pdns/recursor.conf"}

load_rc_config ${name}

required_files=${pdns_recursor_conf}

run_rc_command "$1"


Question is - how do I pass the config file as a parameter to the recursor
in the above startup script (-c? -f) ? Maybe that is one of the problems I
need to address. My assumption has been that I don't need to specify it
anyway, since the path is built-in during compile.

It's a bit confusing, because even when I use the provided control script,
it doesn't seem to obey my recursor.conf - whether I put that in
/etc/powerdns/ or /usr/local/etc/pdns as per my compile time settings..

Correct me if I am wrong but it would appear that recursor ignores the
CONFIGDIR directive when compiling. I have just checked this now by
appending "...." and starting it using the init script in the source and it
failed to start with:


[root at jaribu] ~wash/Tools/PDNS/pdns-recursor-3.5-rc5#
./pdns-recursor.init.d start
Starting PowerDNS recursing nameserver: Apr 08 17:48:30 Exception: Trying
to set unexisting parameter '....'

According to me, it should not be looking for this file in /etc/powerdns/,
but rather the one in /usr/local/etc/pdns.




On 8 April 2013 17:05, Peter van Dijk <peter.van.dijk at netherlabs.nl> wrote:

> Hello,
>
> On Apr 8, 2013, at 16:00 , Odhiambo Washington wrote:
>
> >
> > Apr  8 16:57:56 jaribu pdns_recursor[41916]: [1] gw.cmehtanbo.com.:
> timeout resolving
> > Apr  8 16:57:56 jaribu pdns_recursor[41916]: [1] gw.cmehtanbo.com.:
> Trying to resolve NS 'ns0.accesskenya.com.' (2/2)
> > Apr  8 16:57:56 jaribu pdns_recursor[41916]: [1]   ns0.accesskenya.com.:
> Looking for CNAME cache hit of 'ns0.accesskenya.com.|CNAME'
> > Apr  8 16:57:56 jaribu pdns_recursor[41916]: [1]   ns0.accesskenya.com.:
> No CNAME cache hit of 'ns0.accesskenya.com.|CNAME' found
> > Apr  8 16:57:56 jaribu pdns_recursor[41916]: [1]   ns0.accesskenya.com.:
> Found cache hit for A: 196.200.16.8[ttl=86398]
> > Apr  8 16:57:56 jaribu pdns_recursor[41916]: [1] gw.cmehtanbo.com.:
> Resolved 'cmehtanbo.com.' NS ns0.accesskenya.com. to: 196.200.16.8
> > Apr  8 16:57:56 jaribu pdns_recursor[41916]: [1] gw.cmehtanbo.com.:
> Trying IP 196.200.16.8:53, asking 'gw.cmehtanbo.com.|ANY'
>
> Either you can't reach 196.200.16.8 and friends, or they are treating you
> in a different way, perhaps because you are in the same network.
>
> Note that your log does not at all match your config - your config
> mentioned forward-zones-recurse, but you are querying remote auths
> individually.
>
> Also note that you have two .= entries in forward-zones-recurse - PowerDNS
> will only use the last one.
>
> Kind regards,
> --
> Peter van Dijk
> Netherlabs Computer Consulting BV - http://www.netherlabs.nl/
>
>
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> http://mailman.powerdns.com/mailman/listinfo/pdns-users
>



-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
"I can't hear you -- I'm using the scrambler."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20130408/4c3fe38c/attachment-0001.html>


More information about the Pdns-users mailing list