在Linux中,配置DNS服务器地址的文件是( )。A.inetd.conf

考试题库2022-08-02  42

问题 在Linux中,配置DNS服务器地址的文件是(  )。A.inetd.confB.lilo.confC.httpd.confD.resolv.conf

选项 A.inetd.conf
B.lilo.conf
C.httpd.conf
D.resolv.conf

答案 D

解析 /etc/resolv.conf它是DNS客户机配置文件,用于设置DNS服务器的IP地址及DNS域名,还包含了主机的域名搜索顺序。
resolv.conf的关键字主要有四个,分别是:
nameserver //定义DNS服务器的IP地址
domain //定义本地域名
search //定义域名的搜索列表
sortlist //对返回的域名进行排序

A/B选项干扰项。

Apache的主配置文件:/etc/httpd/conf/httpd.conf
转载请注明原文地址:https://tihaiku.com/congyezige/2430560.html

最新回复(0)