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

    Help to clarify Unbound custom options formatting

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 2 Posters 589 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.
    • M
      McDing
      last edited by

      Hi
      Can somebody clarify how the content in the 'custom options' box needs to be formatted, if at all?

      I currently have one entry

      server:
      private-domain: "plex.direct"
      #log-queries: yes
      log-replies: yes
      #log-tag-queryreply: yes
      

      and I need to add a second entry, as below:

      server:
        forward-zone:
          name: "."
          forward-tls-upstream: yes
          forward-addr: 45.90.28.0#xxxxxx.dns1.nextdns.io
          forward-addr: 2a07:a8c0::#xxxxxx.dns1.nextdns.io
          forward-addr: 45.90.30.0#xxxxxx.dns2.nextdns.io
          forward-addr: 2a07:a8c1::#xxxxxx.dns2.nextdns.io
      

      What I am not sure about is the following:

      • Do I need to repeat the "server:" statement for the second entry?

      • Does the indentation of the text in each line matter (and if so what are the rules)?

      Many thanks :)

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Config in the custom field is added to the Unbound config file directly so it must be in the Unbound config format:
        https://unbound.docs.nlnetlabs.nl/en/latest/manpages/unbound.conf.html#file-format

        Steve

        1 Reply Last reply Reply Quote 0
        • M
          McDing
          last edited by

          Thanks
          It seems to work fine :)

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