unbound updating host host_entries.conf
-
Hi All,
I have a Docker swarm, and due to the limitations, I can not give the MCVLAN nic's a static IP.
Could I run a simple script that will ssh into the firewall and call the unbound-control command to update the host_entries.conf with an updated A record possible?
I might be looking at this the wrong way. And able to achieve this some other way, so open to options.
Any help would be great thanks
Cheers
Rich
-
@dawsnet said in unbound updating host host_entries.conf:
I can not give the MCVLAN nic's a static IP.
Why can you not set a reservation for the mac your devices are using via mcvlan always get the same IP?
When you use mcvlan, each container gets a unique mac address.
Or why can you not just set the static IP with --ip
But unbound can register dhcp addresses, the problem is this restarts unbound so depending on the number of dhcp clients and the amount of dhcp traffic being seen unbound can restart quite often which is problematic for stable dns..
-
I am sure the DHCP is handled via Docker Swarm and therefore unable to be controlled via the DHCP reservation in Netgate
Cheers
Rich
-
@dawsnet said in unbound updating host host_entries.conf:
handled via Docker Swarm
That is not normally how mcvlan works - any device that is on network X with its own unique mac and set for dhcp would and should get an IP from the dhcp server running on the network... If its not, then its not really fully on the network..
So your moving the container to a different host, that is on a different network? Then it would get an IP from that dhcp server, so you could setup a reservation for it on that network as well, etc.
If it moves to host on a different network it would get say 192.168.1.x and when it moves to 192.168.2 it would get 192.168.2.x etc..