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

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

  1. henker

    henker Well-Known Member

    Joined:
    May 1, 2003
    Messages:
    60
    Likes Received:
    0
    Trophy Points:
    231
    Location:
    Ireland
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,470
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Sounds like a bug to me, I'd suggest you log it with them.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. henker

    henker Well-Known Member

    Joined:
    May 1, 2003
    Messages:
    60
    Likes Received:
    0
    Trophy Points:
    231
    Location:
    Ireland
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. albatroz

    albatroz Well-Known Member

    Joined:
    Mar 6, 2003
    Messages:
    315
    Likes Received:
    0
    Trophy Points:
    166
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. goodmove

    goodmove Well-Known Member

    Joined:
    May 12, 2003
    Messages:
    624
    Likes Received:
    1
    Trophy Points:
    168
    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:
    151
    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

  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