dns配置文件 /etc/resolv.conf中search設置詳解

簡介 search swg.local consul.local nameserver 103.224.222.222 dns配置文件 /etc/resolv.conf 中常看到有search 設置,之前覺得是根據search 中的域去指定nameserver,其實不是這樣用的。它的一個用處是程序只須要知道主機名就能夠解析到ip,沒必要知道域後綴是什麼。下面介紹下設置了search後的解析規則。h
相關文章
相關標籤/搜索