centos 8 setup dns server code example Example: restart bind centos 8 /etc/init.d/named start /etc/init.d/named stop /etc/init.d/named restart