Attention is currently required from: d12fk, flichtenheld, plaisthos.

cron2 has posted comments on this change. ( 
http://gerrit.openvpn.net/c/openvpn/+/838?usp=email )

Change subject: dns: apply settings via script on unixoid systems
......................................................................


Patch Set 23: Code-Review-1

(4 comments)

Patchset:

PS22:
> So, tested on FreeBSD, script works.  Great :-) […]
What about incoming dhcp-options?  These still do not make it into a 
`--dns-updown` call - having that fixed in a later patch in the series is fine, 
but I need to know what the intention is, to move ahead.


Patchset:

PS23:
Getting closer - Gentoo ("resolv.conf") works now, OpenBSD breaks in more 
exciting ways, and I need an answer on the plan for dhcp-option handling.


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

http://gerrit.openvpn.net/c/openvpn/+/838/comment/df4e47af_a1042fd9 :
PS22, Line 85:
> Done
Still does not work, but it's way more interesting now.

While OpenVPN runs

```
obsd75$ cat /etc/resolv.conf
### openvpn tun1 begin ###nnameserver 10.194.0.1nnameserver 
fd00:abcd:194::1n### openvpn tun1 end ###nlookup file bind
nameserver 195.30.0.2
nameserver 195.30.0.1
nameserver 2001:608::2
```
which hints at shell/echo/"\n" madness...

After OpenVPN finishes, it "cleans up":
``
obsd75$ cat /etc/resolv.conf
obsd75$ `
```

(this is on OpenBSD 7.6, the naming/prompt is a bit stale)


File distro/dns-scripts/systemd-dns-updown.sh:

http://gerrit.openvpn.net/c/openvpn/+/838/comment/d260ed1a_af935874 :
PS22, Line 231: }
> Done
This works now!

```
gert@gentoo ~ $ cat /etc/resolv.conf
### openvpn tun8 begin ###
nameserver 10.194.0.1
nameserver fd00:abcd:194::1
### openvpn tun8 end ###
# Generated by netifrc for interface enp2s1
domain ov.greenie.net
nameserver 2001:608::2
nameserver 195.30.0.1
nameserver 195.30.0.2
```



--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/838?usp=email
To unsubscribe, or for help writing mail filters, visit 
http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ifbe4ffb44d3bfcaa50adb38cacb3436fcdc71b10
Gerrit-Change-Number: 838
Gerrit-PatchSet: 23
Gerrit-Owner: d12fk <he...@openvpn.net>
Gerrit-Reviewer: cron2 <g...@greenie.muc.de>
Gerrit-Reviewer: flichtenheld <fr...@lichtenheld.com>
Gerrit-Reviewer: plaisthos <arne-open...@rfc2549.org>
Gerrit-CC: openvpn-devel <openvpn-devel@lists.sourceforge.net>
Gerrit-Attention: plaisthos <arne-open...@rfc2549.org>
Gerrit-Attention: flichtenheld <fr...@lichtenheld.com>
Gerrit-Attention: d12fk <he...@openvpn.net>
Gerrit-Comment-Date: Tue, 13 May 2025 09:44:32 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: cron2 <g...@greenie.muc.de>
Comment-In-Reply-To: d12fk <he...@openvpn.net>
Gerrit-MessageType: comment
_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to