<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">With this configuration<br><div><br></div><div><div>eth0: 10.1.1.1  10.1.1.2 </div><div>ip route add default via 10.1.1.100 dev eth0 src 10.1.1.1</div><div><br></div><div>query-local-address=10.1.1.2</div></div><div><br></div><div>What IP would take  10.1.1.1 or 10.1.1.2?<br></div><div><br></div><div>Thanks,</div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">El mié., 19 dic. 2018 a las 12:19, <<a href="mailto:sthaug@nethelp.no">sthaug@nethelp.no</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">>    Which source ip address does pdns-recursor use to contact root dns?<br>
<br>
Have you tried to read the PowerDNS recursor documentation? From the<br>
recursor.conf file:<br>
<br>
#################################<br>
# query-local-address   Source IP address for sending queries<br>
#<br>
# query-local-address=0.0.0.0<br>
<br>
#################################<br>
# query-local-address6  Source IPv6 address for sending queries. IF UNSET, IPv6 WILL NOT BE USED FOR OUTGOING QUERIES<br>
#<br>
# query-local-address6=<br>
<br>
Thus the default address used for outgoing queries is the one chosen<br>
by the operating system.<br>
<br>
>     Can you specify a specific source ip?<br>
<br>
Yes, by explicitly setting query-local-address / query-local-address6.<br>
<br>
Steinar Haug, AS2116<br>
</blockquote></div>