How to manage SubDomain in VestaCP Panel while using external name server?

Questions regarding the DNS Server
BIND
tinkyawoo
Posts: 5
Joined: Wed Mar 29, 2017 9:28 am

How to manage SubDomain in VestaCP Panel while using external name server?

Postby tinkyawoo » Wed Mar 29, 2017 9:32 am

Hi.

I want to allow my users to create their own subdomain in VestaCP Control panel and I dont want to use my own DNS server but using external DNS server such as cloudflare or Digital Ocean. Is it possible to allow my users to manage their own subdomain in VestaCP?

skurudo
VestaCP Team
Posts: 7802
Joined: Fri Dec 26, 2014 2:23 pm
Location: Moscow
Contact:

Re: How to manage SubDomain in VestaCP Panel while using external name server?

Postby skurudo » Wed Mar 29, 2017 11:23 am

Make A record for your subdomain on external name server
or use wildcard and you don't need make A record every time, when you add subdomain.
-> DigitalOcean competition - please, support us
-> fix for phpmyadmin - nice and sweet now

tinkyawoo
Posts: 5
Joined: Wed Mar 29, 2017 9:28 am

Re: How to manage SubDomain in VestaCP Panel while using external name server?

Postby tinkyawoo » Thu Mar 30, 2017 12:01 am

Thanks. That work well without managing DNS on VestaCP.

One problem though, that is if I use wild cast, if the subdomain web is not created on VestaCP, it would always falls to one particular website on my host. How can I create a default dedicated website to fall on if people browse non existing subdomain?

skurudo
VestaCP Team
Posts: 7802
Joined: Fri Dec 26, 2014 2:23 pm
Location: Moscow
Contact:

Re: How to manage SubDomain in VestaCP Panel while using external name server?

Postby skurudo » Thu Mar 30, 2017 8:39 am

tinkyawoo wrote:Thanks. That work well without managing DNS on VestaCP.


Yep, if you use external dns, you should change records there ;-)

tinkyawoo wrote:One problem though, that is if I use wild cast, if the subdomain web is not created on VestaCP, it would always falls to one particular website on my host. How can I create a default dedicated website to fall on if people browse non existing subdomain?


With resctrictions in nginx conf:
viewtopic.php?t=10188#p57753
-> DigitalOcean competition - please, support us
-> fix for phpmyadmin - nice and sweet now

tinkyawoo
Posts: 5
Joined: Wed Mar 29, 2017 9:28 am

Re: How to manage SubDomain in VestaCP Panel while using external name server?

Postby tinkyawoo » Thu Mar 30, 2017 10:00 pm

thanks for your pointer, that block accessing my raw IP and that's good.
But, as I have created A record for * to bypass creating every DNS for every single new subdomains, if I access non existing subdomain on my host, it still falls to that particular website that I created first on that host.

How should I configure to fall on a particular website I created as a lending page?

John_Bour
Posts: 1
Joined: Wed Apr 12, 2017 7:23 am

Re: How to manage SubDomain in VestaCP Panel while using external name server?

Postby John_Bour » Wed Apr 12, 2017 7:31 am

I had the same problem and solved it by changing the first ligne in /etc/nginx/conf.d/default.conf from
listen 80;
to
listen IP:80;

Hopefully I have only one IP on the server and the tip is not surprising after all

Hope it help ;)

tinkyawoo
Posts: 5
Joined: Wed Mar 29, 2017 9:28 am

Re: How to manage SubDomain in VestaCP Panel while using external name server?

Postby tinkyawoo » Thu Apr 13, 2017 11:47 am

How do you set non existing subdomain to fall on a particular website you hosted?


Return to “DNS Server”



Who is online

Users browsing this forum: No registered users and 3 guests

cron