Draymonders / Code-Life

The marathon continues though.
27 stars 3 forks source link

/etc/hosts 解析 #70

Open Draymonders opened 4 years ago

Draymonders commented 4 years ago

/etc/hosts:the static table lookup for host name(主机名查询静态表)

所以 hosts是为了DNS解析的(DNS即 域名映射到ip)

优先级是dns缓存>hosts>dns服务

配置规则是 ipv4/ipv6 域名/主机名

因此在域名/主机名处填写ip,是不会生效的