LX0-104 · 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". This question tests knowledge of OpenVPN server configuration directives used to push DNS server information to clients.
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
(32 responses)- A88% (28)
- B3% (1)
- C6% (2)
- D3% (1)
Why each option
This question tests knowledge of OpenVPN server configuration directives used to push DNS server information to clients.
The `push "dhcp-option DNS <IP_ADDRESS>"` directive (where `dhcp-option` is often shortened to `dhcpoption` within the pushed string) is the standard OpenVPN configuration command used to send a DHCP DNS server option to connecting clients. This tells the client to use the specified IP address as its DNS server.
`dhcp DNS` is not the correct directive for pushing a DNS server option to OpenVPN clients.
`options DNS` is not the correct directive for pushing a DNS server option to OpenVPN clients.
`dhcpoptions` is not the correct directive; the correct form is `dhcp-option` (or `dhcpoption` when pushed).
Concept tested: OpenVPN DNS configuration push
Source: https://openvpn.net/community-resources/reference-manual-for-openvpn-2-x/#dhcp-option
Topics
Community Discussion
No community discussion yet for this question.