Multiple choice technology operating systems

which file need to be edited with nameserver ip to configure DNS client?

  1. /etc/hostname

  2. /etc/resolv.conf

  3. /etc/sysconfig/network

  4. /etc/named.conf

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

On Linux systems, the DNS client is configured through the /etc/resolv.conf file, which contains nameserver IP addresses, search domains, and other resolver options. This file is read by the DNS resolver library to determine which DNS servers to query. The /etc/hostname file (A) stores the system hostname, /etc/sysconfig/network (C) is for Red Hat-style network configuration, and /etc/named.conf (D) is for configuring a DNS server (not client).