Control Web Panel

WebPanel => DNS => Topic started by: johnnn on December 25, 2014, 02:39:12 PM

Title: Wildcard DNS in centos webpanel
Post by: johnnn on December 25, 2014, 02:39:12 PM
Hi, how can I enable Wildcard DNS feature in centos webpanel ?
Tnx
Title: Re: Wildcard DNS in centos webpanel
Post by: Administrator on December 25, 2014, 05:03:43 PM
BIND is default DNS server on centos so you can check instructions for bind.
Title: Re: Wildcard DNS in centos webpanel
Post by: johnnn on December 25, 2014, 05:22:37 PM
thank your for your reply, but as I'm newbie I didn't understand what you said  :'(
would you write an instruction and publish it on this forum if you have time?
maybe in future some one search "wilcard" in this forum and can find what he need, beacuse I googled a lot today but couldn't dind any toturial about this in CWP and the whole net !


PS: I googled this phrase after your reply:
Code: [Select]
wildcard dns in BIND server
Is it what I should search for it?
and also I found this website talking about this:
http://mterry.name/log/2008/04/14/wildcard-dns-with-bind/

Is it the  awnser of my question?
Title: Re: Wildcard DNS in centos webpanel
Post by: Administrator on December 25, 2014, 05:55:13 PM
example:

* IN A 192.168.0.64
or
*.domain.com. IN A 192.168.0.64
Title: Re: Wildcard DNS in centos webpanel
Post by: johnnn on December 25, 2014, 06:43:40 PM
And from where I should start to enable wildcard?
DNS Functions --> List DNS Zones   
from here I must add a new line and copy your example? or edit it with your example?
or from the /etc/bind/named.conf  file?
please anwser completely, really tnx
Title: Re: Wildcard DNS in centos webpanel
Post by: erm3nda on December 26, 2014, 05:08:16 PM
Concept is that enabling wildcard is exactly add a "wildcard" instead a name.

Any domain has a dns entry into the bind config file.

sub.pepe.com example:
sub.pepe.com. IN A 192.168.0.64

wildcard example:
*.pepe.com IN A 192.168.0.64

Using wilcard you will redirect all misstyped subdomains to your choice.

Everything into the panel made changes into config files. Everytime you dude, go to these files. ( /etc/bind/named.conf )