A system administrator needs to configure a Linux client to use a specific DNS server for a particular domain. Which file should be modified to achieve this?
Trap 1: Edit /etc/hosts
hosts file is for static IP-to-hostname mappings, not DNS server configuration.
Trap 2: Edit /etc/networks
networks file is for mapping network names to network numbers, not DNS configuration.
Trap 3: Edit /etc/nsswitch.conf
nsswitch.conf controls the order of name resolution services, not DNS server configuration for a specific domain.
- A
Edit /etc/hosts
Why wrong: hosts file is for static IP-to-hostname mappings, not DNS server configuration.
- B
Edit /etc/networks
Why wrong: networks file is for mapping network names to network numbers, not DNS configuration.
- C
Edit /etc/nsswitch.conf
Why wrong: nsswitch.conf controls the order of name resolution services, not DNS server configuration for a specific domain.
- D
Edit /etc/resolv.conf
resolv.conf contains DNS server IPs and domain/search directives to specify default domains.