Solved Can you specify the source IP address of DNS queries?

Hi,
using the built-in resolver, is there a way to specify the source address a system uses when making DNS queries?
If i'm not mistaken by default it uses the IP address of the outbound interface over which the query will be sent (although I could be wrong about this).
Thanks
 
I mean the system resolver. The one that is used when something calls gethostbyname() and friends.
 
no. we would set nameserver 127.0.0.1 and use local-unbound or some other caching resolver, and set the source interface there.
 
Nice one: that's a good workaround. I guess it's the [B]outgoing-interface[/B] option one would use in the unbound config file?
 
Back
Top