domain name resolution priority

Analysis of browser access process

Visit the website ——> first check on the local computer whether there is a domain name corresponding to the IP address in the hosts, how to directly access the corresponding IP,

If not, ask the DNS server on the Internet (generally, the DNS server IP is configured on the network card)

linux hosts path:
insert image description here
windows hosts path address Note that you must open C:\Windows\System32\drivers\etc
with administrator privileges

Guess you like

Origin blog.csdn.net/u013400314/article/details/131996873