<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
This is the max-ttl that I have configured manually in the config file.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
when I tried to ran a command with -T --max-ttl it didn't work.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
]# sed -e '56!d' /etc/dnsmasq.conf<br>
max-ttl=30<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
OS im using is Red Hat Enterprise Linux Server release 6.10 (Santiago)</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Dnsmasq-discuss <dnsmasq-discuss-bounces@lists.thekelleys.org.uk> on behalf of Petr Men¨ík <pemensik@redhat.com><br>
<b>Sent:</b> Tuesday, October 12, 2021 2:24 PM<br>
<b>To:</b> dnsmasq-discuss@lists.thekelleys.org.uk <dnsmasq-discuss@lists.thekelleys.org.uk><br>
<b>Subject:</b> Re: [Dnsmasq-discuss] How to Add max-ttl in DNSMASQ</font>
<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">
<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">
<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" href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk">
dnsmasq-discuss@lists.thekelleys.org.uk</a> <a class="x_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 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" href="http://www.redhat.com/">http://www.redhat.com/</a>
email: <a class="x_moz-txt-link-abbreviated" href="mailto:pemensik@redhat.com">pemensik@redhat.com</a>
PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB</pre>
</div>
</div>
</body>
</html>