Updating Network DNS Servers using CLI

Comments

4 comments

  • Avatar
    Firewalla

    Does this mean your DNS server is dynamic?  If it is, we do not have such capability to assign DNS this way, it has to be provisioned per LAN from the app

    0
    Comment actions Permalink
  • Avatar
    Demitri

    I understand. If I’m to script it myself, which config file should I update?

    0
    Comment actions Permalink
  • Avatar
    Firewalla

    It will be hard to script on the box.  The reasons is, there are a lot of code the checks for integrity of the box (configurations), and if anything that's off, it will reset what you have put in. 

    My advice is, if you can script, you can probably install dnsmasq (or like) in a docker container like pi-hole, and then point DNS service from firewalla to the container.  And inside the container, you can script to dynamically change your DNS servers with dnsmasq.   This will give you the best of both worlds, and you don't have to run into a risk of the system code change and break your implementation 

    0
    Comment actions Permalink
  • Avatar
    Demitri

    Awesome! Will do. Appreciate your insights.

    0
    Comment actions Permalink

Please sign in to leave a comment.