You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -42,14 +42,16 @@ otherwise the configuration provided by this script will only work on domains
42
42
that cannot be resolved by the currently configured DNS servers (i.e. they must
43
43
fall back after trying the ones set by your LAN's DHCP server).
44
44
45
-
Finally, update your OpenVPN configuration file and set the `up` and `down-pre`
46
-
options:
45
+
Finally, update your OpenVPN configuration file and set the `up` and `down`
46
+
options to point to the script, and `down-pre` to ensure that the script is run
47
+
before the device is closed:
47
48
48
49
```
49
50
script-security 2
50
51
setenv PATH /usr/bin
51
52
up /etc/openvpn/update-systemd-resolved
52
-
down-pre /etc/openvpn/update-systemd-resolved
53
+
down /etc/openvpn/update-systemd-resolved
54
+
down-pre
53
55
```
54
56
55
57
## Usage
@@ -63,7 +65,7 @@ OpenVPN, either through the server, or the client, configuration:
63
65
|`DOMAIN`|`example.com`| The primary domain for this host. If set multiple times, the last provided is used. Will be the primary search domain for bare hostnames. All requests for this domain as well will be routed to the `DNS` servers provided on this link. |
64
66
|`DOMAIN-SEARCH`|`example.com`| Secondary domains which will be used to search for bare hostnames (after any `DOMAIN`, if set) and in the order provided. All requests for this domain will be routed to the `DNS` servers provided on this link. |
65
67
|`DOMAIN-ROUTE`|`example.com`| All requests for these domains will be routed to the `DNS` servers provided on this link. They will *not* be used to search for bare hostnames, only routed. |
66
-
|`DNSSEC`|`yes`<br />`no`</br >`default`| Control of DNSSEC should be enabled (`yes`) or disabled (`no`) for any queries over this link only, or use the system default (`default`). |
68
+
|`DNSSEC`|`yes`<br />`no`</br >`allow-downgrade`</br >`default`| Control of DNSSEC should be enabled (`yes`) or disabled (`no`), or `allow-downgrade` to switch off DNSSEC only if the server doesn't support it, for any queries over this link only, or use the system default (`default`). |
67
69
68
70
*Note*: There are no local or system options to be configured. All configuration
69
71
for this script is handled though OpenVPN, including, for example, the name of
0 commit comments