Delete valiases when removing DNS zone

henker

Well-Known Member
May 1, 2003
64
1
233
Poland
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.
 

albatroz

Well-Known Member
Mar 6, 2003
401
6
168
Virtual Orbis / Peru
cPanel Access Level
Root Administrator
Twitter
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.
 

goodmove

Well-Known Member
May 12, 2003
643
4
168
henker said:
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:

Wolli

Member
Apr 12, 2004
6
0
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?