In my container i’m bringing up an additional interface called
sl0. I need to have dnsmasq listen to port 53 on that interface as well. Normally I would do this by adding:
echo "interface=sl0" >> /etc/dnsmasq.conf
However, this doesn’t work in my container. I read that I should be using dbus for this, however I cannot find an Dbus API call to add this interface. Maybe i’m just not looking at the right place, I got the API from: https://github.com/imp/dnsmasq/blob/master/dbus/DBus-interface
I did look at Pi-Hole project, DNSMASQ_LISTENING, and using “bind-interface” but I didn’t get it working with these settings either.
Hopefully someone can point me in the right direction, would be great it’s possible with dbus.