LFCS · Question #369
Which of the following lines in the OpenVPN server.conf file will supply a DNS server for DHCP clients to use?
The correct answer is A. push "dhcpoption DNS 10.142.232.4". OpenVPN servers can push specific network configuration options, such as DNS server addresses, to connected clients using a particular directive in the server configuration file.
Question
Options
- Apush "dhcpoption DNS 10.142.232.4"
- Bpush "dhcp DNS 10.142.232.4"
- Cpush "options DNS 10.142.232.4"
- Dpush "dhcpoptions DNS 10.142.232.4"
How the community answered
(70 responses)- A93% (65)
- B1% (1)
- C3% (2)
- D3% (2)
Why each option
OpenVPN servers can push specific network configuration options, such as DNS server addresses, to connected clients using a particular directive in the server configuration file.
The `push "dhcp-option DNS <IP_ADDRESS>"` directive is the correct OpenVPN server configuration command to instruct clients to use the specified IP address as their DNS server, formatted as a DHCP option.
The `dhcp` keyword alone is not a valid OpenVPN configuration option for pushing DNS server information to clients; it must be part of `dhcp-option`.
The `options` keyword is not a valid OpenVPN directive for pushing DHCP-related settings like DNS.
The `dhcpoptions` keyword is misspelled and not a valid OpenVPN command; the correct directive uses `dhcp-option`.
Concept tested: OpenVPN server DHCP options (DNS push)
Source: https://openvpn.net/community-resources/how-to/#configuring-dns-for-clients
Topics
Community Discussion
No community discussion yet for this question.