Which of the following keywords can be used in the file /etc/resolv.conf? (Choose TWO correct answers.)
A. substitute
B. nameserver
C. search
D. lookup
E. method
题解
GNU C 语言的函数库会根据「/etc/resolv.conf」设置档所定义的网域名称服务器来查找网域名称实际对应的 IP 地址。可以使用的关键字如下:- nameserver:要查找的网域名称服务器。
- domain:本地的网域名称。
- search:查找主机名称的时候所串接的网域名称。
- sortlist:排序 gethostbyname 函数的回传结果。
- options
所以答案是选项 B 和选项 C。
