Pit*_*tto 16
dnsmasq 默认禁用 dhcp 服务器。要启用它,您必须取消注释与 dhcp 相关的行/etc/dnsmasq.conf
要将所有请求转发到 208.67.222.222,只需添加(不涉及 dnsmasq 配置)/etc/resolv.conf
:
nameserver 127.0.0.1
# In order to configure dnsmasq to act as cache for the host on which it
# is running, put [as the first line] "nameserver 127.0.0.1" in /etc/resolv.conf to force
# local processes to send queries to dnsmasq. [...]
# dnsmasq is smart enough to ignore this line and forward all queries appropriately,
# while all other applications will send all their queries to dnsmasq.
nameserver 208.67.222.222
Run Code Online (Sandbox Code Playgroud)
就是这样 :)
归档时间: |
|
查看次数: |
33873 次 |
最近记录: |