国产探花免费观看_亚洲丰满少妇自慰呻吟_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ā)表
主站蜘蛛池模板: 会东县| 浑源县| 鄂伦春自治旗| 溧水县| 镇江市| 赣榆县| 凉山| 中江县| 五家渠市| 贡山| 中山市| 兴义市| 澳门| 阜宁县| 汕头市| 白银市| 包头市| 嘉义市| 广东省| 东光县| 那坡县| 怀宁县| 陕西省| 乐昌市| 镇康县| 莎车县| 临江市| 青岛市| 天水市| 唐海县| 周宁县| 太白县| 库尔勒市| 嵊泗县| 广西| 阿瓦提县| 齐齐哈尔市| 佛坪县| 进贤县| 云浮市| 湘潭县|