wget http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.79.tar.gz
yum -y install gcc
tar -zxvf dnsmasq-2.79.tar.gz
cd dnsmasq-2.79
make install
ln -s /usr/local/sbin/dnsmasq /usr/sbin/dnsmasq
vi /usr/lib/systemd/system/dnsmasq.service
[Unit]
Description=dnsmasq - A lightweight DHCP and caching DNS server
After=network.target
[Service]
ExecStartPre=/usr/sbin/dnsmasq --test
ExecStart=/usr/sbin/dnsmasq -k
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target