---
title: Pushing DHCP Options to Clients
canonical: https://openvpn.net/community-docs/pushing-dhcp-options-to-clients/
product: Community Docs
---

# Pushing DHCP Options to Clients

The OpenVPN server can push DHCP options such as DNS and WINS server addresses to clients (some [caveats](https://community.openvpn.net/openvpn/wiki/FAQ) to be aware of). Windows clients can accept pushed DHCP options natively, while non-Windows clients can accept them by using a client-side **up** script that parses the **foreign\_option\_n** environmental variable list. Refer to the [man page](https://openvpn.net/community-docs/community-articles.md) for non-Windows **foreign\_option\_n** documentation and script examples.

For example, suppose you would like to connect clients to use an internal DNS server at 10.66.0.4 or 10.66.0.5 and a WINS server at 10.66.0.8. Add this to the OpenVPN server configuration:

```
push "dhcp-option DNS 10.66.0.4"
push "dhcp-option DNS 10.66.0.5"
push "dhcp-option WINS 10.66.0.8"
```

To test this feature on Windows, run the following from a command prompt window after the machine has connected to an OpenVPN server:

```
ipconfig /all
```

The entry for the TAP-Windows adapter should show the DHCP options which were pushed by the server.

---

Prev: [Expanding the Scope of the VPN to Include Additional Machines on Either the Client or Server Subnet](https://openvpn.net/community-docs/expanding-the-scope-of-the-vpn-to-include-additional-machines-on-either-the-client-or-server-subnet.md)
Next: [Configuring Client-Specific Rules and Access Policies](https://openvpn.net/community-docs/configuring-client-specific-rules-and-access-policies.md)
Index: https://openvpn.net/community-docs/llms.txt
