Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member henker's Avatar
    Join Date
    May 2003
    Posts
    60

    Default Delete valiases when removing DNS zone

    Why does cPanel remove /etc/valiases/domainname when one removes the DNS zone of domainname ?
    This hit me a couple of times now when you (or a customer in that case) use an external DNS and there is no need to have those zones in your DNS.
    From /scripts/killdns:
    Code:
    if (-e "/etc/valiases/${domain}") { unlink("/etc/valiases/${domain}"); }
    I don't think this behaviour is correct, because the domain is supposed to be existent, it's just that the zone should be deleted.

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Sounds like a bug to me, I'd suggest you log it with them.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member henker's Avatar
    Join Date
    May 2003
    Posts
    60

  4. #4
    Member albatroz's Avatar
    Join Date
    Mar 2003
    Location
    Virtual Orbis / Peru
    Posts
    122
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    BTW if you delete the dns zone it does not remove the domain from the
    /etc/localdomains file.

    If ever have a your customer who only wants to have web (and not email)
    with you. You will have to remove it manually.

    I wonder why is not an automatic way to handle this, as others panels (eg. HELM)
    do.

  5. #5
    Member
    Join Date
    May 2003
    Posts
    613

    Default

    Quote Originally Posted by henker
    Why does cPanel remove /etc/valiases/domainname when one removes the DNS zone of domainname ?
    This hit me a couple of times now when you (or a customer in that case) use an external DNS and there is no need to have those zones in your DNS.
    I don't think this behaviour is correct, because the domain is supposed to be existent, it's just that the zone should be deleted.
    What does the valias file do once the DNS zone is deleted? Does it still pick up the mail and forward it?
    Last edited by goodmove; 08-22-2004 at 07:38 PM.

  6. #6
    Member
    Join Date
    Apr 2004
    Posts
    6

    Default

    Yes, it still picks up the mail and forward it.

    I manually put an alias file for our hostname (hostname.domain.com) in etc/valiases but this alias file is deleted automatically by cpanel or any script always. Why? Can I prevent that?

Similar Threads & Tags
Similar threads

  1. Replies: 3
    Last Post: 01-18-2010, 10:11 PM
  2. delete DNS zone
    By TaneNZ in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-24-2008, 11:33 PM
  3. manually delete a dns zone?
    By LuckDragon in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-03-2008, 12:01 PM
  4. cant delete a dns zone in whm
    By kaveh_cdeb in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-24-2005, 08:18 AM
  5. removing domain dns zone crashs server (new bug?)
    By zaitsev in forum cPanel and WHM Discussions
    Replies: 14
    Last Post: 08-20-2005, 05:04 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube