Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    unbound updating host host_entries.conf

    Scheduled Pinned Locked Moved DHCP and DNS
    4 Posts 2 Posters 499 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dawsnet
      last edited by

      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

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @dawsnet
        last edited by

        @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..

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • D
          dawsnet
          last edited by

          I am sure the DHCP is handled via Docker Swarm and therefore unable to be controlled via the DHCP reservation in Netgate

          Cheers

          Rich

          johnpozJ 1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @dawsnet
            last edited by johnpoz

            @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..

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.