Skip to main content

How to remove a few DNS records from all zone files?

Comments

1 comment

  • cPanelPeter cPanel Staff
    Hello, You could use the replace command. First if you haven't already done so, make a backup of the /var/named directory cp -rfpd /var/named /var/named.bak
    Then you would use the replace command something like this: replace 'nsx1.hosting.com X X X IP' '' -- * replace 'nsx2.hosting.com X X X IP' '' -- *
    That should do the trick. If anything goes wrong, you still have the backup.
    0

Please sign in to leave a comment.