Vendredi 23 novembre 2018

DnsMasq

Installation

sudo apt install dnsmasq

Configuration

sudo nano /etc/default/dnsmasq
IGNORE_RESOLVCONF=yes
sudo nano /etc/dnsmasq.conf
domain-needed
expand-hosts

listen-address=127.0.0.1
resolv-file=/etc/resolv.dnsmasq.conf
cache-size=256
sudo nano /etc/dnsmasq.d/cinay.pw 
address=/cinay.pw/193.70.43.101
txt-record=cinay.pw,"v=spf1 mx a -all"
mx-host=cinay.pw,cinay.pw,5
#srv-host=_xmpp-client._tcp.cinay.pw,cinay.pw,5222,0,5
#srv-host=_xmpp-server._tcp.cinay.pw,cinay.pw,5269,0,5
address=/cinay.pw/2001:41d0:302:2200::1d0f
sudo nano /etc/resolv.dnsmasq.conf
nameserver 141.255.128.101
nameserver 84.200.70.40
nameserver 89.234.141.66
nameserver 80.67.169.40
nameserver 213.73.91.35
nameserver 84.200.69.80
nameserver 89.233.43.71
nameserver 141.255.128.100
nameserver 80.67.188.188
nameserver 89.234.186.18
nameserver 91.239.100.100
nameserver 80.67.169.12
nameserver 85.214.20.141

Relancer le service dnsmasq

sudo systemctl restart dnsmasq

Status

systemctl status dnsmasq
[...]