15

请教一下大家关于 dnsmasq 查找上游 DNS 的两个问题

 3 years ago
source link: https://www.v2ex.com/t/816663
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  DNS

请教一下大家关于 dnsmasq 查找上游 DNS 的两个问题

  zhoudaiyu · 14 小时 42 分钟前 via iPhone · 214 次点击
首先是查找上游 DNS 的读取配置的顺序,我的理解找上游优先级从高到低应该是:本地 hosts > /etc/resolv.conf > dnsmasq.conf 中的 server 配置 > dnsmasq.conf 中的 resolv-file 中配置的上游 dns ,不知道对不对?还有一个问题是,如果 dnsmasq 中没有配 strict-order ,那是不是如果某次 DNS 查询走到了读 resolv-file ,且 resolv-file 中配置了多个 nameserver ,那可能随机选择一个上游 DNS ?

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK