For dns Problems In debian, refer to Debian, the Linux release technology. For details, refer to the following section. A debian machine cannot ping the Domain Name
The error message "unknow hosts" indicates that DNS is not set.
Cat/etc/reslove. conf
Nameserver 202.106.0.20
It is strange to use the nslookup and dig commands. The two packages are not installed.
First, apt-get install dnsutils.
Then dig-t a www.baidu.com
; <> DiG 9.4.2 <>-t a www.baidu.com
; Global options: printcmd
; Got answer:
;-> HEADER <-opcode: QUERY, status: NOERROR, id: 5977
; Flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 4, ADDITIONAL: 0
; Question section:
; Www.baidu.com. IN
; Answer section:
Www.baidu.com. 1137 in cname www.a.shifen.com.
Www.a.shifen.com. 1137 in a 202.108.22.5
Www.a.shifen.com. 1137 in a 202.108.22.43
; Authority section:
A.shifen.com. 71693 in ns ns6.a.shifen.com.
A.shifen.com. 71693 in ns ns1.a.shifen.com.
A.shifen.com. 71693 in ns ns3.a.shifen.com.
A.shifen.com. 71693 in ns ns5.a.shifen.com.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.