From: "cron2 (Code Review)" Date: Tue, 13 May 2025 17:13:04 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., heiko@...515..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="WXCwBIAhisw="; charset=UTF-8 Subject: [Openvpn-devel] [L] Change in openvpn[master]: dns: apply settings via script on unixoid systems List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: d12fk Cc: flichtenheld , plaisthos , openvpn-devel --WXCwBIAhisw= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: d12fk, flichtenheld, plaisthos. cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/ope= nvpn/+/838?usp=3Demail ) Change subject: dns: apply settings via script on unixoid systems ...................................................................... Patch Set 24: Code-Review-1 (3 comments) Patchset: PS22: > What about incoming dhcp-options? These still do not make it into a `--d= ns-updown` call - having th [=E2=80=A6] Clarified that on IRC: internal "decoupling of what-goes-in from what-goes-= out" happens in gerrit#904. Patchset: PS24: getting really close :-) - OpenBSD and OpenSolaris tested, both *work*, but= have the annoying habit of leaving an extra blank line at the top of the r= estored resolv.conf (accumulating). So one `\n` needs to go. File distro/dns-scripts/resolvconf_file-dns-updown.sh: http://gerrit.openvpn.net/c/openvpn/+/838/comment/438f64f9_6cfc18d5 : PS22, Line 85: > Still does not work, but it's way more interesting now. [=E2=80=A6] We are getting very close... but... the concatenation part "new text plus e= xisting config" is adding a newline, which leads to the resulting file grow= ing an extra newline for each openvpn call ``` obsd75$ cat /etc/resolv.conf ### openvpn tun1 begin ### nameserver 10.194.0.1 nameserver fd00:abcd:194::1 ### openvpn tun1 end ### lookup file bind nameserver 195.30.0.2 nameserver 195.30.0.1 nameserver 2001:608::2 ``` ... this file started out with no empty lines... -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/838?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ifbe4ffb44d3bfcaa50adb38cacb3436fcdc71b10 Gerrit-Change-Number: 838 Gerrit-PatchSet: 24 Gerrit-Owner: d12fk Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Attention: d12fk Gerrit-Comment-Date: Tue, 13 May 2025 17:13:04 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Comment-In-Reply-To: cron2 Comment-In-Reply-To: d12fk Gerrit-MessageType: comment --WXCwBIAhisw= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: d12fk, flichtenheld, plaisthos. <= /p>

Patch set 24:Code-Review -1

V= iew Change

3 comments:

  • Patchset:

    • Patch Set #22:

      What about inco= ming dhcp-options? These still do not make it into a `--dns-updown` call -= having th [=E2=80=A6]

      Clarified that on IRC: internal "decoupling of = what-goes-in from what-goes-out" happens in gerrit#904.

    <= /li>
  • Patchset:

    • Patch Set #24:

      getting really close :-) - OpenBSD and OpenS= olaris tested, both *work*, but have the annoying habit of leaving an extra= blank line at the top of the restored resolv.conf (accumulating). So one = `\n` needs to go.

  • File distro/dns-scripts/resolvconf_file-dns-updown.sh:

    • <= p style=3D"margin-bottom: 4px;">Patch Set #22, Line 85:

      Still does not= work, but it's way more interesting now. [=E2=80=A6]

      <= p style=3D"white-space: pre-wrap; word-wrap: break-word;">We are getting ve= ry close... but... the concatenation part "new text plus existing conf= ig" is adding a newline, which leads to the resulting file growing an = extra newline for each openvpn call

      ```
      obsd75$ cat /etc/resolv.conf
      ### openvpn t= un1 begin ###
      nameserver 10.194.0.1
      nameserver fd00:abcd:194::1
      ##= # openvpn tun1 end ###


      lookup file bind
      nameserver 195.30.0.2
      nameserver 195.3= 0.0.1
      nameserver 2001:608::2
      ```

      ... this file started out with no empty lines...=

To view, visit change 838. To unsubscribe, or for hel= p writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ifbe4ffb44d3bfcaa50adb38cacb= 3436fcdc71b10
Gerrit-Change-Number: 838
Gerrit-PatchSet: 24
Gerrit-Owner: d12fk <heiko@...515...>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Attention: d12fk <heiko@...515...>= ;
Gerrit-Comment-Date: Tue, 13 May 2025 17:13:04= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: cron2 <gert@...1296...= >
Comment-In-Reply-To: d12fk <heiko@...515...= >
Gerrit-MessageType: comment
--WXCwBIAhisw=--