<div dir="ltr"><div># user editable stuff:</div><div>SBINDIR=/usr/local/sbin/</div><div>BINDIR=/usr/local/bin/</div><div style>CONFIGDIR=/usr/local/etc/pdns/</div><div style><br></div><div style>And I have my recursor.conf in /usr/local/etc/pdns/</div>

<div style><br></div><div style>I start pdns_recursor as with the following script in FreeBSD:</div><div style><br></div><div style><div>#!/bin/sh</div><div>#</div><div># $$</div><div>#</div><div><br></div><div># PROVIDE: pdns_recursor</div>

<div># REQUIRE: SERVERS cleanvar</div><div># BEFORE:  DAEMON</div><div># KEYWORD: shutdown</div><div><br></div><div>#</div><div># Add the following lines to /etc/rc.conf to enable pdns_recursor:</div><div>#</div><div># pdns_recursor_enable="YES"</div>

<div># pdns_recursor_flags="<set as needed>"</div><div>#</div><div># See pdns_recursor(8) for flags.</div><div>#</div><div><br></div><div>. /etc/rc.subr</div><div><br></div><div>name=pdns_recursor</div><div>

rcvar=pdns_recursor_enable</div><div><br></div><div>command="/usr/local/sbin/pdns_recursor"</div><div><br></div><div># set defaults</div><div><br></div><div>pdns_recursor_enable=${pdns_recursor_enable:-"NO"}</div>

<div>pdns_recursor_conf=${pdns_recursor_conf:-"/usr/local/etc/pdns/recursor.conf"}</div><div><br></div><div>load_rc_config ${name}</div><div><br></div><div>required_files=${pdns_recursor_conf}</div><div><br></div>

<div>run_rc_command "$1"</div><div><br></div><div><br></div><div style>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. </div>

<div style><br></div><div style>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..</div>

<div style><br></div><div style>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:</div>

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

<div><br></div><div style>According to me, it should not be looking for this file in /etc/powerdns/, but rather the one in /usr/local/etc/pdns.</div><div style><br></div><div style><br></div></div></div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On 8 April 2013 17:05, Peter van Dijk <span dir="ltr"><<a href="mailto:peter.van.dijk@netherlabs.nl" target="_blank">peter.van.dijk@netherlabs.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hello,<br>
<div class="im"><br>
On Apr 8, 2013, at 16:00 , Odhiambo Washington wrote:<br>
<br>
><br>
> Apr  8 16:57:56 jaribu pdns_recursor[41916]: [1] <a href="http://gw.cmehtanbo.com" target="_blank">gw.cmehtanbo.com</a>.: timeout resolving<br>
> Apr  8 16:57:56 jaribu pdns_recursor[41916]: [1] <a href="http://gw.cmehtanbo.com" target="_blank">gw.cmehtanbo.com</a>.: Trying to resolve NS '<a href="http://ns0.accesskenya.com" target="_blank">ns0.accesskenya.com</a>.' (2/2)<br>


> Apr  8 16:57:56 jaribu pdns_recursor[41916]: [1]   <a href="http://ns0.accesskenya.com" target="_blank">ns0.accesskenya.com</a>.: Looking for CNAME cache hit of 'ns0.accesskenya.com.|CNAME'<br>
> Apr  8 16:57:56 jaribu pdns_recursor[41916]: [1]   <a href="http://ns0.accesskenya.com" target="_blank">ns0.accesskenya.com</a>.: No CNAME cache hit of 'ns0.accesskenya.com.|CNAME' found<br>
> Apr  8 16:57:56 jaribu pdns_recursor[41916]: [1]   <a href="http://ns0.accesskenya.com" target="_blank">ns0.accesskenya.com</a>.: Found cache hit for A: 196.200.16.8[ttl=86398]<br>
> Apr  8 16:57:56 jaribu pdns_recursor[41916]: [1] <a href="http://gw.cmehtanbo.com" target="_blank">gw.cmehtanbo.com</a>.: Resolved '<a href="http://cmehtanbo.com" target="_blank">cmehtanbo.com</a>.' NS <a href="http://ns0.accesskenya.com" target="_blank">ns0.accesskenya.com</a>. to: 196.200.16.8<br>


> Apr  8 16:57:56 jaribu pdns_recursor[41916]: [1] <a href="http://gw.cmehtanbo.com" target="_blank">gw.cmehtanbo.com</a>.: Trying IP <a href="http://196.200.16.8:53" target="_blank">196.200.16.8:53</a>, asking 'gw.cmehtanbo.com.|ANY'<br>


<br>
</div>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.<br>
<br>
Note that your log does not at all match your config - your config mentioned forward-zones-recurse, but you are querying remote auths individually.<br>
<br>
Also note that you have two .= entries in forward-zones-recurse - PowerDNS will only use the last one.<br>
<div class="HOEnZb"><div class="h5"><br>
Kind regards,<br>
--<br>
Peter van Dijk<br>
Netherlabs Computer Consulting BV - <a href="http://www.netherlabs.nl/" target="_blank">http://www.netherlabs.nl/</a><br>
<br>
<br>
_______________________________________________<br>
Pdns-users mailing list<br>
<a href="mailto:Pdns-users@mailman.powerdns.com">Pdns-users@mailman.powerdns.com</a><br>
<a href="http://mailman.powerdns.com/mailman/listinfo/pdns-users" target="_blank">http://mailman.powerdns.com/mailman/listinfo/pdns-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Best regards,<br>Odhiambo WASHINGTON,<br>Nairobi,KE<br>+254733744121/+254722743223<br>"I can't hear you -- I'm using the scrambler."<br>


</div>