Page 1 of 1
Automatic subdomains config
Posted: Wed Feb 10, 2016 10:04 am
by deepslam
Hello!
I'm use Vesta CP and it s perfect!
But i'm have question: i'm need automatic subdomains 4 levels, example:
<id>.subdomain.domain.com
Where id is generated value.
Do you have any idea?
Thank you!
Re: Automatic subdomains config
Posted: Wed Feb 10, 2016 1:41 pm
by tjebbeke
You can use the API to generate your domains.
Or if all the subdomains need to point to one web directory (ex.: 1.subdomain.domain.com, 2.subdomain.domain.com need to point to subdomain.domain.com) You can create a wildcard alias. (*.subdomain.domain.com)
In your DNS section, you can create a '*' (wildcard) A record.
Re: Automatic subdomains config
Posted: Thu Feb 11, 2016 7:21 am
by deepslam
tjebbeke wrote:You can use the API to generate your domains.
Or if all the subdomains need to point to one web directory (ex.: 1.subdomain.domain.com, 2.subdomain.domain.com need to point to subdomain.domain.com) You can create a wildcard alias. (*.subdomain.domain.com)
In your DNS section, you can create a '*' (wildcard) A record.
Hello!
Thank you for answer!
Wildcard record in DNS i'm already have and it works, but when i'm visit this domain, Vesta CP return:
default.domain
How i can add wildcard subdomain in control panel? When i'm trying add *.subdomain.site.ru i'm get message:
Subdomain name is not valid :(
Thank you for reply!
Re: Automatic subdomains config
Posted: Thu Feb 11, 2016 7:54 am
by tjebbeke
Normally you can add a wildcard domain as an alias of a web domain.