DNS是計(jì)算機(jī)域名系統(tǒng)(Domain Name System 或Domain Name Service) 的縮寫(xiě),它是由域名解析器和域名服務(wù)器組成的。域名服務(wù)器是指保存有該網(wǎng)絡(luò)中所有主機(jī)的域名和對(duì)應(yīng)IP地址,并具有將域名轉(zhuǎn)換為IP地址功能的服務(wù)器。 |
桑日ssl適用于網(wǎng)站、小程序/APP、API接口等需要進(jìn)行數(shù)據(jù)傳輸應(yīng)用場(chǎng)景,ssl證書(shū)未來(lái)市場(chǎng)廣闊!成為創(chuàng)新互聯(lián)的ssl證書(shū)銷售渠道,可以享受市場(chǎng)價(jià)格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:028-86922220(備注:SSL證書(shū)合作)期待與您的合作!
DNS是計(jì)算機(jī)域名系統(tǒng)(Domain Name System 或Domain Name Service) 的縮寫(xiě),它是由域名解析器和域名服務(wù)器組成的。域名服務(wù)器是指保存有該網(wǎng)絡(luò)中所有主機(jī)的域名和對(duì)應(yīng)IP地址,并具有將域名轉(zhuǎn)換為IP地址功能的服務(wù)器。
[root@localhost ~]# cat /etc/resolv.conf nameserver 192.168.xxx.xxx #search localdomain [root@localhost ~]#
[root@localhost ~]# nslookup 127.0.0.1 | grep Server Server: 192.168.xxx.xxx [root@localhost ~]#
root@localhost ~]# dig ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5 <<>> ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 36888 ;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 3 ;; QUESTION SECTION: ;. IN NS ;; ANSWER SECTION: . 86163 IN NS m.root-servers.net. . 86163 IN NS a.root-servers.net. . 86163 IN NS j.root-servers.net. . 86163 IN NS l.root-servers.net. . 86163 IN NS e.root-servers.net. . 86163 IN NS d.root-servers.net. . 86163 IN NS k.root-servers.net. . 86163 IN NS f.root-servers.net. . 86163 IN NS h.root-servers.net. . 86163 IN NS c.root-servers.net. . 86163 IN NS g.root-servers.net. . 86163 IN NS b.root-servers.net. . 86163 IN NS i.root-servers.net. ;; ADDITIONAL SECTION: a.root-servers.net. 3599 IN A 112.4.20.71 b.root-servers.net. 86163 IN A 192.228.79.201 i.root-servers.net. 86173 IN A 192.36.148.17 ;; Query time: 8 msec ;; SERVER: 192.168.xxx.xxx#53(192.168.xxx.xxx) ;; WHEN: Sat Apr 16 07:34:37 2016 ;; MSG SIZE rcvd: 289 [root@localhost ~]# dig | grep SERVER: | awk -F# '{ print $1 }' | awk -F: '{ print $2 }' 192.168.xxx.xxx
原文地址: https://www.linuxprobe.com/dns-linux.html