Skip to main content

CNAME leftovers from AutoSSL by comodoca?

Comments

6 comments

  • cPRex Jurassic Moderator

    Hey there!  Yes, I would have expected those to have been removed automatically, so feel free to delete them.

    0
  • Leif Gunnar

    Hi.

    I have the same issue her. About 20 CNAME records pointing to xxxxx.comodoca.com in about 500 *.db files.

    Have cPanel made a script to clear this mess up?

     

    0
  • cPRex Jurassic Moderator

    No, there isn't a tool to clear those up at this time, but I did reach out to the team to see if they would consider making such a tool.  I haven't heard back yet, but I'll be sure to post again if I do find out more.

    0
  • Leif Gunnar

    Hi again.

    This did the Clearing:

    WHM --> Terminal

    cd /var/named

    for file in $(grep -l "comodoca.com" *.db); do
        sed -i '/comodoca.com/d' "$file"
    done

    Explanation:

    • grep -l "comodoca.com" *.db: Lists all .db files containing the string "comodoca.com".
    • for file in $(...); do ... done: Loops through each file found by grep.
    • sed -i '/comodoca.com/d' "$file": Deletes lines containing "comodoca.com" in each file.

     

    Remember it's a good practice to test the sed command without the -i option first to see the changes without modifying the files.

     

    WHM --> Synchronize DNS Records


    Hope it can help someone :)

     

     

     

    0
  • cPRex Jurassic Moderator

    If you want to update the zones you also need to increment the serial number and reload the zone before the change is valid in BIND.

    0
  • Leif Gunnar

    Did a edit in the note ;)

    1

Please sign in to leave a comment.