From 1132af1fd4e05a34851113cfd9daf8168e1e62ff Mon Sep 17 00:00:00 2001 From: Shreshth Goyal Date: Mon, 2 May 2022 02:14:42 +0530 Subject: [PATCH] Specifying DNS Server for client config in automatic script as the first one in the chosen subnet. Signed-off-by: Shreshth Goyal --- docs/guides/vpn/wireguard/client.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/guides/vpn/wireguard/client.md b/docs/guides/vpn/wireguard/client.md index 93ee6dc..263e095 100644 --- a/docs/guides/vpn/wireguard/client.md +++ b/docs/guides/vpn/wireguard/client.md @@ -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"