restart network in centos 8 code example
Example 1: restart server centos
reboot -h now
Example 2: restart bind centos 8
/etc/init.d/named start
/etc/init.d/named stop
/etc/init.d/named restart
reboot -h now
/etc/init.d/named start
/etc/init.d/named stop
/etc/init.d/named restart