resolv-file:从文件读取 DNSMasq 上游的 DNS 服务器配置。 strict-order:resolv-file 文件中如果指定了多个 DNS 服务器,严格安装 DNS 服务器的先后顺序查询域名。 listen-address:监听地址,配置为本机 IP 即可。 addn-hosts:从文件读取本地 DNS 域名和 IP 的对应关系,格式为 。其实可以把 IP 和域名的对应关系写在 /etc/hosts 文件中,DNSMasq 默认从那里读取,但如果要支持一个域名对应多个 IP,就必须使用 addn-hosts 选项了。
❯ kubectl debug -it vault-0 -n vault --image=k8s.org/cs/netshoot -- sh
Defaulting debug container name to debugger-8z7lk. If you don’t see a command prompt, try pressing enter. root $ nslookup vault-internal Server: 10.96.1.10 Address: 10.96.1.10#53
Aug 29 18:16:12 dnsmasq[28763]: read /opt/tools/dns/hostname - 12 names Aug 29 18:16:21 dnsmasq[28763]: query[A] es.local.org from 127.0.0.1 Aug 29 18:16:21 dnsmasq[28763]: config es.local.org is 192.168.122.1 Aug 29 18:16:21 dnsmasq[28763]: query[AAAA] es.local.org from 127.0.0.1 Aug 29 18:16:21 dnsmasq[28763]: forwarded es.local.org to 202.96.128.86 Aug 29 18:16:21 dnsmasq[28763]: reply es.local.org is NODATA-IPv6
Running make install will by default install the daemon binaries (zabbix_server, zabbix_agentd, zabbix_proxy) in /usr/local/sbin and the client binaries (zabbix_get, zabbix_sender) in /usr/local/bin.