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。