nerdexam
CompTIA

XK0-004 · Question #219

An administrator needs to change the DNS domain search order of a single Linux host to localize it better. Which of the following files should the administrator edit?

The correct answer is C. /etc/nsswitch.conf. Linux Changing DNS Search Order Under Linux you need to use /etc/nsswitch.conf file which is used by system databases and Name Service Switch configuration file. Open /etc/nsswitch.conf file using text editor: # vi /etc/nsswitch.conf hosts: files dns mdns4 Set above order as…

Server Side & Network Concepts

Question

An administrator needs to change the DNS domain search order of a single Linux host to localize it better. Which of the following files should the administrator edit?

Options

  • A/etc/resolv.conf
  • B/etc/hosts
  • C/etc/nsswitch.conf
  • D/etc/dhcpd.conf

How the community answered

(21 responses)
  • A
    10% (2)
  • C
    86% (18)
  • D
    5% (1)

Explanation

Linux Changing DNS Search Order Under Linux you need to use /etc/nsswitch.conf file which is used by system databases and Name Service Switch configuration file. Open /etc/nsswitch.conf file using text editor: # vi /etc/nsswitch.conf hosts: files dns mdns4 Set above order as per your requirement. Close and save the file.

Topics

#/etc/nsswitch.conf#name resolution order#DNS search order#name service switch

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice