国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學(xué)院 > 操作系統(tǒng) > 正文

在SUN機(jī)器上設(shè)置DNS客戶端

2024-07-26 00:29:34
字體:
供稿:網(wǎng)友
      在SUN機(jī)器上設(shè)置DNS客戶端需要二個步驟: 
      1.創(chuàng)建/etc/resolv.conf文件
      一個示例的resolv.conf文件如下:
      domain sun.com
      nameserver 127.0.0.1
      nameserver 192.1.0.11
      nameserver 192.1.0.10
      文件中主要包含二部分內(nèi)容,第一行是
      domain 你申請的域名,例,申請域名為piecust-cn.net.edu.cn,則寫為:
      domain piecust-cn.net.edu.cn
      第二行是名稱服務(wù)器,示例表示本機(jī)就是DNS服務(wù)器,其格式為
      nameserver 
      ip地址,該段可以是DNS的主域名稱服務(wù)器、備份域名稱服務(wù)器或緩沖名稱服務(wù)器,但是書寫時不可以超過3個服務(wù)器。如果網(wǎng)絡(luò)中只有一個DNS服務(wù)器且地址為192.1.0.11,則可以寫為:
      nameserver 192.1.0.11
       
      2.修改/etc/nsswitch.conf,是客戶機(jī)能夠使用DNS服務(wù)
      SUN客戶機(jī)缺省使用files作為服務(wù)器名字的解析,為了使用DNS名稱解析服務(wù)器,必須在/etc/nsswitch.conf指明使用DNS服務(wù)。
      #
      # /etc/nsswitch.files:
      #
      # An example file that could be copied over to /etc/nsswitch.conf; it
      # does not use any naming service.
      #
      # "hosts:" and "services:" in this file are used only if the
      # /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

      passwd: files
      group: files
      hosts: files dns
      networks: files dns
      PRotocols: files
      rpc: files
      ethers: files
      netmasks: files
      bootparams: files
      publickey: files
      # At present there isn't a 'files' backend for netgroup; the system will
      # figure it out pretty quickly, and won't use netgroups at all.
      netgroup: files
      automount: files
      aliases: files
      services: files
      sendmailvars: files
      如上例,只要在hosts一項添加dns項就可以
       

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 读书| 兴安盟| 彰化县| 抚州市| 兖州市| 安义县| 涞源县| 宜都市| 开阳县| 弥勒县| 赤水市| 祥云县| 荆门市| 汝南县| 昭觉县| 新余市| 辉南县| 绥化市| 福安市| 临猗县| 屏南县| 广安市| 读书| 大厂| 兰溪市| 东城区| 贵溪市| 周宁县| 旌德县| 梁山县| 龙江县| 南昌县| 扎兰屯市| 绍兴市| 长白| 蓬莱市| 楚雄市| 武威市| 屏边| 应用必备| 平陆县|