Skip to main content

DNS Only - How to clear all records

Comments

3 comments

  • cPanelMichael
    Hello, You can backup the zones, remove them from the /var/named directory, and then rebuild the /etc/named.conf file via the following commands:
    cp -a /var/named /var/backup-named rm /var/named/*.db /scripts/rebuilddnsconfig
    Thank you.
    0
  • tomdchi
    Hello, You can backup the zones, remove them from the /var/named directory, and then rebuild the /etc/named.conf file via the following commands:
    cp -a /var/named /var/backup-named rm /var/named/*.db /scripts/rebuilddnsconfig
    Thank you.

    Should the files in /var/named/cache be removed as well?
    0
  • cPanelMichael
    Should the files in /var/named/cache be removed as well?

    Yes, you can remove the zone files from the /var/named/cache directory as well. Thank you.
    0

Please sign in to leave a comment.