I m trying to setup a bind server in a docker host.
As it s very difficult to change ip of the dns server in all my computer i would like to “fix” the ip of my bind server.
Then i would like to specify the ip only for my bind server
then on my docker host i have the
eth0 with 10.0.0.1 adresse
and a subinterface eth0.1 with 10.0.0.2 adresse
i ran my docker with the following command
docker create --name bind-slave -p 10.0.0.2:53:53 -p 10.0.0.2:53:53/udp bind-slave.
The server answer to request on the 10.0.0.2 adresse that s nice
but when it does the zone transfer it use the 10.0.0.1 ip adresse.
then the command work nice for in going packet but not for out going packet.
then the bind on the ip adress is not complete.
is there a way to mimic more accurately the bind on an interface?