Add VRF Support
Description
I want to run a bind instance which listens on a VRF interface. We have all external traffic isolated through VRF and are not able to answer queries on that interface.
Lets say 1.2.3.4 in only available in VRF so the "normal routing/networking stack" does not know that this IP and the routing related to that even exists. Hence the unability of bind9 to listen on those IPs when I want to listen-on
that IP.
Request
I want to be able to listen-on
and listen-on-v6
to an IP address which is only available on a VRF.
Links / references
For more "Why do we need VRF support?" you might have a look here: https://github.com/raspberrypi/linux/issues/3253#issuecomment-534235017
Implementation hint: PowerDNS has implemented that for dnsdist as well by issuing SO_BINDTODEVICE
:
https://github.com/PowerDNS/pdns/pull/8372/files#diff-0bc4a9fbf9980ff5a860e9bc3020c52bR85