<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello Omair,</p>
    <p>dnsmasq 2.48 in RHEL6 is quite old and does not contain support
      for max-ttl. That was added in dnsmasq 2.53 and would be present
      in RHEL7 if you can consider upgrade. Even that version is
      receiving only important updates and is also rock-stable. I am
      afraid no supported parameter has the same effect. Only local-ttl
      and neg-ttl are supported for adjusting TTL in 2.48.<br>
    </p>
    <p>Other option would be building your own build of dnsmasq, where
      you could build something more recent. RHEL6 would not receive any
      updates except critical bugs and security issues, it won't change
      in the distribution.<br>
    </p>
    <p>Best Regards,<br>
      Petr<br>
    </p>
    <div class="moz-cite-prefix">On 10/13/21 17:40, OMair Siddiquii
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:TYZPR06MB438306ECFBBC2AF1962D64A0A9B79@TYZPR06MB4383.apcprd06.prod.outlook.com">
      <div>
        This is the max-ttl that I have configured manually in the
        config file.</div>
      <div>
        when I tried to ran a command with -T --max-ttl it didn't work.</div>
      <div>
        <br>
      </div>
      <div>
        ]# sed -e '56!d' /etc/dnsmasq.conf<br>
        max-ttl=30<br>
      </div>
      <div>
        <br>
      </div>
      <div>
        OS im using is Red Hat Enterprise Linux Server release 6.10
        (Santiago)</div>
      <div>
        <div>
          <br>
        </div>
        <hr tabindex="-1">
        <div id="divRplyFwdMsg" dir="ltr"><b>From:</b> Dnsmasq-discuss
          <a class="moz-txt-link-rfc2396E" href="mailto:dnsmasq-discuss-bounces@lists.thekelleys.org.uk"><dnsmasq-discuss-bounces@lists.thekelleys.org.uk></a> on
          behalf of Petr Menšík <a class="moz-txt-link-rfc2396E" href="mailto:pemensik@redhat.com"><pemensik@redhat.com></a><br>
          <b>Sent:</b> Tuesday, October 12, 2021 2:24 PM<br>
          <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk">dnsmasq-discuss@lists.thekelleys.org.uk</a>
          <a class="moz-txt-link-rfc2396E" href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk"><dnsmasq-discuss@lists.thekelleys.org.uk></a><br>
          <b>Subject:</b> Re: [Dnsmasq-discuss] How to Add max-ttl in
          DNSMASQ
          <div> </div>
        </div>
        <div>
          <p>Please report what is on line 56.</p>
          <p>Following command would print just that:<br>
          </p>
          <p>sed -e '56!d' /etc/dnsmasq.conf</p>
          <p>I doubt that is about max-ttl option. Are you still using
            RHEL6 (or derivate) for some reason? I thought every option
            is supported in more recent versions. I would like to know
            what option were supported in the old but is not in current
            version. Please Share.</p>
          <p>Cheers,<br>
            Petr<br>
          </p>
          <div class="x_moz-cite-prefix">On 10/11/21 19:41, OMair
            Siddiquii wrote:<br>
          </div>
          <blockquote type="cite">
            <div>
              <ol>
                <li><span>I stopped DNSMASQ service.</span></li>
                <li><span><span>I ran "dnsmasq --max-ttl=30"</span></span></li>
                <li>Got this error "dnsmasq: bad command line options:
                  try --help<span>"</span></li>
                <li><span>Tried to manually add max-ttl=<time> in
                    dnsmasq.conf</span></li>
                <li><span>Got this error "Starting dnsmasq:
                    <div>dnsmasq: bad option at line 56 of
                      /etc/dnsmasq.conf <span>[FAILED]</span><span>"</span></div>
                  </span></li>
              </ol>
            </div>
            <div>
              <div><br>
              </div>
              <hr tabindex="-1">
              <div id="x_divRplyFwdMsg" dir="ltr"><b>From:</b>
                Dnsmasq-discuss <a class="x_moz-txt-link-rfc2396E"
                  href="mailto:dnsmasq-discuss-bounces@lists.thekelleys.org.uk"
                  moz-do-not-send="true">
<dnsmasq-discuss-bounces@lists.thekelleys.org.uk></a> on behalf of
                Matus UHLAR - fantomas via Dnsmasq-discuss
                <a class="x_moz-txt-link-rfc2396E"
                  href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk"
                  moz-do-not-send="true">
                  <dnsmasq-discuss@lists.thekelleys.org.uk></a><br>
                <b>Sent:</b> Monday, October 11, 2021 9:25 PM<br>
                <b>To:</b> <a class="x_moz-txt-link-abbreviated
                  moz-txt-link-freetext"
                  href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk"
                  moz-do-not-send="true">
                  dnsmasq-discuss@lists.thekelleys.org.uk</a> <a
                  class="x_moz-txt-link-rfc2396E"
                  href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk"
                  moz-do-not-send="true">
                  <dnsmasq-discuss@lists.thekelleys.org.uk></a><br>
                <b>Subject:</b> Re: [Dnsmasq-discuss] How to Add max-ttl
                in DNSMASQ
                <div> </div>
              </div>
              <div class="x_BodyFragment"><span>
                  <div class="x_PlainText">On 11.10.21 16:01, OMair
                    Siddiquii wrote:<br>
                    >Even after upgrading to version 2.85 it didn't
                    work.<br>
                    <br>
                    what exactly does "didn't work" mean?<br>
                    does dnsmasq still refuse to start?<br>
                    do you have any error message?<br>
                    did you try to stop it before starting?<br>
                    <br>
                    <br>
                  </div>
                </span></div>
            </div>
          </blockquote>
          <pre class="x_moz-signature" cols="72">-- 
Petr Menšík
Software Engineer
Red Hat, <a class="x_moz-txt-link-freetext moz-txt-link-freetext" href="http://www.redhat.com/" moz-do-not-send="true">http://www.redhat.com/</a>
email: <a class="x_moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:pemensik@redhat.com" moz-do-not-send="true">pemensik@redhat.com</a>
PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB</pre>
        </div>
      </div>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Petr Menšík
Software Engineer
Red Hat, <a class="moz-txt-link-freetext" href="http://www.redhat.com/">http://www.redhat.com/</a>
email: <a class="moz-txt-link-abbreviated" href="mailto:pemensik@redhat.com">pemensik@redhat.com</a>
PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB</pre>
  </body>
</html>