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!

delete one nameserver entry in all zones

Discussion in 'Bind/DNS/Nameserver' 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:
    44,344
    Likes Received:
    1,852
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice