Carlos Aguni

Highly motivated self-taught IT analyst. Always learning and ready to explore new skills. An eternal apprentice.


Dnsmasq lab

22 Jun 2024 »
yum -y install dnsmasq
cat <<EOF > /etc/dnsmasq.conf
bogus-priv
server=8.8.8.8

address=/test/10.180.1.1
address=/docs.customdomain.com/10.180.1.100
EOF
systemctl start dnsmasq
systemctl enable dnsmasq
mv /etc/resolv.conf /etc/resolv.conf.orig
systemctl stop systemd-resolved
systemctl disable systemd-resolved
systemctl mask systemd-resolved