The NoteBook of EricKong

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            611 Posts :: 1 Stories :: 190 Comments :: 0 Trackbacks
          domain 聲明主機的域名。很多程序用到它,如郵件系統;當為沒有域名的主機進行DNS 查詢時,也要用到。如果沒有域名,主機名將被使用,刪除所有在第一個點( . )前面的內容。
          search 它的多個參數指明域名查詢順序。當要查詢沒有域名的主機,主機將在由search 聲明的域中分別查找。domain 和search 不能共存;如果同時存在,后面出現的將會被使用。

          下面的說明更清晰

          /etc/resolv.conf 配置文件:domain 和search作用是一樣的

          domain linpro.no
          search linpro.no uio.no ifi.uio.no

          domain function:

          Had I typed telnet math.uio.no. with the trailing dot, the resolver would have known it was an FQDN and would have looked up math.uio.no at once, without trying to append the specified domain first. Not all applications are tolerant of the trailing dot, though, so it can't always be specified.

          search function:

          When ssh gram is executed, the resolver first looks for gram.linpro.no, which does not exist; thengram.uio.no, which does not exist, either; and finally gram.ifi.uio.no, which will succeed because it does exist

          posted on 2015-07-21 12:49 Eric_jiang 閱讀(667) 評論(0)  編輯  收藏 所屬分類: Linux
          主站蜘蛛池模板: 石景山区| 横山县| 清远市| 绥德县| 鄯善县| 鄄城县| 廉江市| 行唐县| 武义县| 嵊泗县| 赫章县| 大港区| 基隆市| 乌鲁木齐县| 得荣县| 北碚区| 宜丰县| 湘乡市| 九江市| 灵寿县| 合作市| 旬阳县| 阳春市| 福清市| 聂荣县| 仙居县| 建瓯市| 肇州县| 启东市| 岑溪市| 浦东新区| 晴隆县| 漾濞| 萍乡市| 洪湖市| 米林县| 马公市| 专栏| 涿州市| 兴和县| 辽阳县|