Which of the following files are used to resolve hostnames to IP addresses? (Choose TWO correct answers.)
A. /etc/systems
B. /etc/hosts
C. /etc/network
D. /etc/dns.conf
E. /etc/resolv.conf
题解
选项 A,没有「/etc/systems」文件。
选项 B,「/etc/hosts」文件用来进行 IP 地址和主机名称的对应。
选项 C,没有「/etc/network」文件。
选项 D,没有「/etc/dns.conf」文件。
选项 E,GNU C 语言的函数库会根据「/etc/resolv.conf」设置档所定义的网域名称服务器来查找网域名称实际对应的 IP 地址。
