LPIC-2 Exam 201 (Linux Engineer) — Question 59
What should be done to ensure a client machine uses the recursive nameserver running on the IP address 192.168.0.1? (Choose two.)
Answer options
- A. Add nameserver 192.168.0.1 to /etc/resolv.conf
- B. Run route add nameserver 192.168.0.1
- C. Run ifconfig eth0 nameserver 192.168.0.1
- D. Ensure that the dns service is listed in the hosts entry in the /etc/nsswitch.conf file
- E. Run bind add nameserver 192.168.0.1
Correct answer: A, D
Explanation
Correct answers A and D are necessary configurations for ensuring the client machine can use the specified nameserver. Option A directly specifies the nameserver in the resolv.conf file, while option D ensures that the dns service is properly referenced in the nsswitch.conf file. Options B, C, and E are invalid as they do not configure the nameserver in the required manner.