<div dir="ltr">Hello Peter<br><br><br>On Tue, 29 Oct 2019 at 11:58, Peter Korsgaard <<a href="mailto:peter@korsgaard.com">peter@korsgaard.com</a>> wrote:<br>><br>> >>>>> "Einar" == Einar Jon Gunnarssson <<a href="mailto:tolvupostur@gmail.com">tolvupostur@gmail.com</a>> writes:<br>><br>>  > From: Einar Jon Gunnarsson <<a href="mailto:tolvupostur@gmail.com">tolvupostur@gmail.com</a>><br>>  > Version 3.9.2 strips the trailing comments generated by udhcpc<br>><br>> What does this mean exactly? I take it you refer to the '# ethX' we add<br>> to /etc/resolv.conf so we can remove the lines once the interface is<br>> again down.<br><br><br>Exactly those, and similar lines (if any) in head/tail files.<br><br>> Did older openresolv versions not work correctly with this?<br><br>Openresolv 3.9.0 and older turned "nameserver 1.2.3.4 # ethX" to<br>nameserver 1.2.3.4<br>nameserver  #<br>nameserver ethX<br>See this email (and the rest of that thread): <br><a href="https://roy.marples.name/archives/openresolv-discuss/0000041.html">https://roy.marples.name/archives/openresolv-discuss/0000041.html</a><br> <br>><br>> E.G. is this<br>> something that should be backported to 2019.02.x / 2019.08.x<div><br></div><div><div>If this was broken until July this year I don't think many people are using a</div><div>combo of udhcpc+openresolv, so I doubt that backporting is very urgent.</div><div><div></div></div></div><div><div>We need it because we have to use NetworkManager for the modem, but </div><div>we don't want NetworkManager for ethX and the rest of the system. </div><div>That's probably a pretty unique use-case.</div><div></div></div><div><br></div><div>> or is it<div>> just the new version of openresolv that removes the commit? <br><br>See above. The linked mail explains in detail. The new version removes<div>trailing commits, and plays more nice with udhcpc.<br>It's just that the older versions would have extra garbage like <br>"nameserver #" and "nameserver ethX". Not harmful, but not useful, <br><br></div><div>



  If so, how are those lines cleaned up again?  <br></div><div><br></div><div>All versions of openresolv are pretty good at cleaning up what is added. <br>There is a folder in /var/run that stores all the entries by $interface.$type, <br>and those are deleted when the interface goes down. So that is fine in <div>all versions.<br>Run "resolvconf -l" to see a breakdown of all entries by origin.<br><br><div><div>Best regards, </div><div>Einar Jón</div><div><br></div><div>><br>> --<br>> Bye, Peter Korsgaard<br><br><br></div></div></div></div></div></div></div>