Notes for myself and anyone else who runs into this problem…
I was checking yum for updates on one of my Plesk servers and did yum update caching-nameserver … Bad move. It blew away the Plesk named.conf file and killed named on the box.
Here’s what you need to do to get it back:
- First remove the rpms:
yum remove caching-nameserver
- Next, re-install the default file:
cp /var/named/run-root/etc/named.conf.default /var/named/run-root/etc/named.conf
- Now create a little shell script (found the info here and here), call it dns_rebuild.sh and run that script.
- Lastly restart named with
service named restartand you should be good to go.
Sounds easy now but that took 2 hours… Hopefully this note will save someone an hour!
Recent Comments