dnsmasq_dns
Пример настройки DNS сервера
mcedit /etc/dnsmasq.d/local.conf
port=53 # Disable resolv.conf no-resolv # Upstream DNS servers server=8.8.8.8 server=1.1.1.1 #A-records address=/mail.example.local/192.168.150.105 #CNAME-records cname=mx.example.local,mail.example.local #MX-records mx-host=example.local,mail.example.local,10 #Добавлять домен к простым именам expand-hosts domain=example.local #Выдать вместо IP адреса 89.89.89.89 - IP адрес 192.168.150.4 #если upstream DNS выдал 89.89.89.89 на DNS запрос alias=89.89.89.89,192.168.150.4
cat /etc/dnsmasq.conf | grep conf-dir
#conf-dir=/etc/dnsmasq.d #conf-dir=/etc/dnsmasq.d,.bak #conf-dir=/etc/dnsmasq.d/,*.conf conf-dir=/etc/dnsmasq.d/,*.conf #conf-dir=/etc/dnsmasq.d,.rpmnew,.rpmsave,.rpmorig
systemctl restart dnsmasq
dnsmasq_dns.txt · Last modified: 2025/11/25 21:09 by admin