nerdexam
Linux_Foundation

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.

Submitted by fatima_kr· Apr 18, 2026Service Configuration

Question

Which of the following lines in the OpenVPN server.conf file will supply a DNS server for DHCP clients to use?

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)
  • A
    93% (65)
  • B
    1% (1)
  • C
    3% (2)
  • D
    3% (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.

Apush "dhcpoption DNS 10.142.232.4"Correct

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.

Bpush "dhcp DNS 10.142.232.4"

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`.

Cpush "options DNS 10.142.232.4"

The `options` keyword is not a valid OpenVPN directive for pushing DHCP-related settings like DNS.

Dpush "dhcpoptions DNS 10.142.232.4"

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

#OpenVPN#DNS#Server Configuration#DHCP

Community Discussion

No community discussion yet for this question.

Full LFCS Practice