<div dir="ltr">Team,<div><br></div><div>I have set up rbldns. During DIG command, It is working fine for the zone file we specify, for there it throws refused error. I would like to forward the all unresolved queries or connection refused queries to other dns server.</div><div><br></div><div>Example:</div><div>1) I configured rbldnsd using below command</div><div>-> <span style="color:rgb(69,69,69);font-family:Helvetica;font-size:12px">/usr/sbin/rbldnsd -b <a href="http://172.31.1.191/53">172.31.1.191/53</a> dnsbl-1.uceprotect.net:ip4set:/home/ubuntu/rbldns/data/<a href="http://dnsbl-1.uceprotect.net">dnsbl-1.uceprotect.net</a></span></div><div><span style="color:rgb(69,69,69);font-family:Helvetica;font-size:12px"><br></span></div><div><span style="color:rgb(69,69,69);font-family:Helvetica;font-size:12px">2) </span><span style="font-family:Menlo;font-size:11px">~# <b>dig <a href="http://3.128.0.1.dnsbl-1.uceprotect.net">3.128.0.1.dnsbl-1.uceprotect.net</a> @<a href="http://172.31.1.251">172.31.1.251</a></b></span></div>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">; <<>> DiG 9.9.5-3ubuntu0.6-Ubuntu <<>> <a href="http://3.128.0.1.dnsbl-1.uceprotect.net">3.128.0.1.dnsbl-1.uceprotect.net</a> @<a href="http://172.31.1.251">172.31.1.251</a></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">;; global options: +cmd</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">;; Got answer:</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">;; ->>HEADER<<- opcode: QUERY, status: <b>NOERROR</b>, id: 11308</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">;; WARNING: recursion requested but not available</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">;; QUESTION SECTION:</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">;<a href="http://3.128.0.1.dnsbl-1.uceprotect.net">3.128.0.1.dnsbl-1.uceprotect.net</a>. IN<span class="" style="white-space:pre">    </span>A</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">;; ANSWER SECTION:</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><a href="http://3.128.0.1.dnsbl-1.uceprotect.net">3.128.0.1.dnsbl-1.uceprotect.net</a>. 2100 IN A<span class="" style="white-space:pre">      </span>127.0.0.2</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">;; Query time: 0 msec</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">;; SERVER: 172.31.1.251#53(172.31.1.251)</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">;; WHEN: Sat May 14 18:40:50 IST 2016</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">;; MSG SIZE  rcvd: 66</p><div><span style="color:rgb(69,69,69);font-family:Helvetica;font-size:12px"><br></span></div><div><span style="color:rgb(69,69,69);font-family:Helvetica;font-size:12px"><br></span></div><div><span style="color:rgb(69,69,69);font-family:Helvetica;font-size:12px">3) </span><span style="font-family:Menlo;font-size:11px">~# <b>dig <a href="http://google.com">google.com</a> mx @<a href="http://172.31.1.251">172.31.1.251</a></b></span><span style="font-family:Menlo;font-size:11px"><b> </b></span></div>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">; <<>> DiG 9.9.5-3ubuntu0.6-Ubuntu <<>> <a href="http://google.com">google.com</a> mx @<a href="http://172.31.1.251">172.31.1.251</a></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">;; global options: +cmd</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">;; Got answer:</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">;; ->>HEADER<<- opcode: QUERY, status: <b>REFUSED</b>, id: 44344</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">;; WARNING: recursion requested but not available</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">;; QUESTION SECTION:</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">;<a href="http://google.com">google.com</a>.<span class="" style="white-space:pre">                   </span>IN<span class="" style="white-space:pre">        </span>MX</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">;; Query time: 0 msec</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">;; SERVER: 172.31.1.251#53(172.31.1.251)</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">;; WHEN: Sat May 14 18:41:22 IST 2016</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">;; MSG SIZE  rcvd: 28</p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">How can I resolve this?</p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Thanks.</p></div>