How to Repair named.conf in Plesk

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:

  1. First remove the rpms: yum remove caching-nameserver
  2. Next, re-install the default file: cp /var/named/run-root/etc/named.conf.default /var/named/run-root/etc/named.conf
  3. Now create a little shell script (found the info here and here), call it dns_rebuild.sh and run that script.
  4. Lastly restart named with service named restart and you should be good to go.

Sounds easy now but that took 2 hours… Hopefully this note will save someone an hour!

This entry was posted in General. Bookmark the permalink. Follow any comments here with the RSS feed for this post.

3 Responses to How to Repair named.conf in Plesk

  1. Pingback: Rubén Ortiz » Plesk - Regenar zonas DNS

  2. Thanks, but you left out an important step. Modify your up2date or yum.conf files to exclude caching-nameserver* so it doesn’t happen again.

  3. John Keegan says:

    Thanks Chris. In this case I manually did ‘yum update caching-nameserver’ so this wasn’t something that happened as a result of any automatic updates.

Leave a Reply

Your email is never published nor shared. Required fields are marked *

*

You may use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>