= **Pushing DNS servers to clients** #pushdns-top ---- This page describes how to use pushed DNS servers in the client. **Contents:** 1. [#pushdns-nix Using pushed DNS servers with a Linux client] [[br]] 1. [#pushdns-win Using pushed DNS servers with a Windows client] [[br]] ---- == Using pushed DNS servers with a Linux client #pushdns-nix Linux must use an external script to update the DNS servers in `/etc/resolve.conf` Most Distro OpenVPN packages include `/etc/openvpn/update-resolv-conf` script. [[br]] Source: https://github.com/alfredopalhares/openvpn-update-resolv-conf Call the script by adding this to your client config file: {{{ script-security 2 up /etc/openvpn/update-resolv-conf down /etc/openvpn/update-resolv-conf }}} ---- == Using pushed DNS servers with a Linux client #pushdns-win Windows uses the OpenVPN built-in DHCP server to update the TAP adapter's DNS servers and no additional steps are required. You need to use `--block-outside-dns` to prevent Windows from using the system's default DNS servers (Preventing DNS leaks). ---- == Additional notes #pushdns-top TODO ---- Pushing DNS servers to clients -- [#pushdns-top return to top] ----