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 valiases when removing DNS zone

Discussion in 'Bind / DNS / Nameserver Issues' started by henker, Jul 27, 2004.

  1. henker

    henker Well-Known Member

    Joined:
    May 1, 2003
    Messages:
    60
    Likes Received:
    0
    Trophy Points:
    6
    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. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Sounds like a bug to me, I'd suggest you log it with them.
     
  3. henker

    henker Well-Known Member

    Joined:
    May 1, 2003
    Messages:
    60
    Likes Received:
    0
    Trophy Points:
    6
  4. albatroz

    albatroz Well-Known Member

    Joined:
    Mar 6, 2003
    Messages:
    258
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Virtual Orbis / Peru
    cPanel Access Level:
    Root Administrator
    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. goodmove

    goodmove Well-Known Member

    Joined:
    May 12, 2003
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    What does the valias file do once the DNS zone is deleted? Does it still pick up the mail and forward it?
     
    #5 goodmove, Aug 22, 2004
    Last edited: Aug 22, 2004
  6. Wolli

    Wolli Member

    Joined:
    Apr 12, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
Loading...

Share This Page