outgoing-interface with dhcp
Tom Samplonius
tom at samplonius.org
Tue Apr 13 21:40:48 UTC 2021
You may not need to use outgoing-interface at all. If your DHCP-client adds a default route over the WAN interface, then that is the interface used for outgoing requests.
outgoing-interface is most useful, if you want to use some other source IP, other than the actual outgoing (default route) interface, like a loopback address. Or if your WAN interface doesn’t have a routable IP, or something.
Tom
> On Apr 13, 2021, at 1:51 PM, Louis Garcia via Unbound-users <unbound-users at lists.nlnetlabs.nl> wrote:
>
> The system that unbound runs on has 4 nics. nic1 is the wan port to
> the internet with an ip address that comes from dhcp. How can I tell
> unbound to send queries to wan0 if the ip changes?
>
> outgoing-interface only takes ip addresses not ports. It would be nice
> if I can have outgoing-interface: wan0
>
> I guess I can make a script but for now I comment this out.
>
> Thanks, Louis
More information about the Unbound-users
mailing list