ITMan Documents

This Weblog Just Created For Document Sysadmin Challenges

DNSMASQ

Install DNSMASQ On Ubuntu 18.04

sudo systemctl disable systemd-resolved
sudo systemctl stop systemd-resolved
ls -lh /etc/resolv.conf
sudo rm /etc/resolv.conf
echo "nameserver 8.8.8.8" > /etc/resolv.conf
sudo apt-get install dnsmasq
sudo vim /etc/dnsmasq.conf
port=53
domain-needed
bogus-priv
strict-order
expand-hosts
domain=smip.ir
listen-address=127.0.0.1
server=/gitlab.com/185.51.200.2
server=/gitlab.com/178.22.122.100
server=/googleapis.com/185.51.200.2
server=/googleapis.com/178.22.122.100
server=/local.boshrapardaz.ir/172.16.1.1
server=8.8.8.8
server=8.8.4.4
server=1.1.1.1
server=1.0.0.1
sudo systemctl restart dnsmasq
sudo systemctl enable dnsmasq
echo "nameserver 127.0.0.1" > /etc/resolv.conf
Last updated on 26 Oct 2019
Published on 23 Nov 2018