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

    Dnsqmasq custom options

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    3 Posts 2 Posters 1.4k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by

      Ok saw commit
      https://github.com/pfsense/pfsense/commit/683992fc993e7f9993772683691ddc909878e5bb

      User can't specify or customise some dnsmasq args in custom_options (dns-forward-max, cache-size, etc) because they are hard coded in services_dnsmasq_configure().

      So way I understand it I should be able to no put in say local-ttl=86400 vs local-ttl=1 being hard coded.

      But I can not seem to get it to work, if I put in local-ttl=86400 in advanced options then dnsmasq does not start.

      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.7.2, 24.11

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Try this fix:
        https://github.com/pfsense/pfsense/commit/41567e0639d1e7541e2dbf249e3e569f017e984e

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

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

          Sweet! That fixed it

          Before;
          –----------
          ;; QUESTION SECTION:
          ;pfsense.local.lan.             IN      A

          ;; ANSWER SECTION:
          pfsense.local.lan.      1       IN      A       192.168.1.253

          ;; Query time: 2 msec
          ;; SERVER: 192.168.1.253#53(192.168.1.253)
          ;; WHEN: Thu May 16 11:30:14 2013
          ;; MSG SIZE  rcvd: 51

          After new gitsync and putting in - dnsmasq restarts and works

          local-ttl=86400

          In advanced


          ;; QUESTION SECTION:
          ;pfsense.local.lan.             IN      A

          ;; ANSWER SECTION:
          pfsense.local.lan.      86400   IN      A       192.168.1.253

          ;; Query time: 2 msec
          ;; SERVER: 192.168.1.253#53(192.168.1.253)

          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.7.2, 24.11

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