Specifying DNS Server for client config in automatic script as the first

one in the chosen subnet.

Signed-off-by: Shreshth Goyal <abrattic@protonmail.com>
This commit is contained in:
Shreshth Goyal
2022-05-02 02:14:42 +05:30
parent da13b9cf3b
commit 1132af1fd4
+1
View File
@@ -29,6 +29,7 @@ For each new client, the following steps must be taken. For the sake of simplici
echo "[Interface]" > "${name}.conf"
echo "Address = $ipv4/32, $ipv6/128" >> "${name}.conf"
echo "DNS = ${serv4}, ${serv6}" >> "${name}.conf" #Specifying DNS Server
echo "PrivateKey = $(cat "${name}.key")" >> "${name}.conf"
echo "" >> "${name}.conf"
echo "[Peer]" >> "${name}.conf"