Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

delete one nameserver entry in all zones

Discussion in 'Bind / DNS / Nameserver Issues' started by SF-Hosting, Nov 20, 2017.

  1. SF-Hosting

    SF-Hosting Registered

    Joined:
    Nov 14, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Germany
    cPanel Access Level:
    Reseller Owner
    Hello,

    I'm searching for a way how to delete one old nameserver entry in all zone files.

    I've only found how to replace the entries in the zone files with the replace command.

    Can anyone help?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,802
    Likes Received:
    1,714
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You may find some of the answers on the following third-party URL helpful as proof-of-concept:

    Delete lines in a text file that containing a specific string

    As a reminder, you should backup your /var/named directory before making any manual changes in-case something goes wrong. EX:

    Code:
    cp -a /var/named /var/named-backup
    Thank you.
     
  3. SF-Hosting

    SF-Hosting Registered

    Joined:
    Nov 14, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Germany
    cPanel Access Level:
    Reseller Owner
    thx that helps
     
Loading...

Share This Page