ispCP - Board - Support
Wildcard dns - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: Wildcard dns (/thread-12102.html)



Wildcard dns - Jillian - 11-11-2010 05:32 AM

Im using ispcp on my main server and I had little problem with manual dns records.
I have domain (domain.tld) in my main server and I have assigned sub domain (sub.domain.tld) to my second server.
Now Im trying to make new alias to second server (*.sub.domain.tld), but only get error:
Cannot validate A record. Reason 'Use of disallowed char("*") in NAME

Is there some other way to assign all *.sub.domain.tld records to second server?


RE: Wildcard dns - Kika - 11-16-2010 07:40 PM

you can add manually the wildcard to the zone file of the domain.

Open the /var/cache/bind/domain.tld.db file. Insert the wildcard entry and set the correct serial. Save the file and copy this to the /etc/ispcp/bind/working directory. Restart the bind.


RE: Wildcard dns - hawara - 11-24-2011 07:32 PM

(11-16-2010 07:40 PM)Kika Wrote:  you can add manually the wildcard to the zone file of the domain.

Open the /var/cache/bind/domain.tld.db file. Insert the wildcard entry and set the correct serial. Save the file and copy this to the /etc/ispcp/bind/working directory. Restart the bind.

Hello,

I chaged the mydomain.tld.db to enanble wildcard dns but I did test go to http://www.mydomain.com it work and for sub.mydomain.com it always go to login page for ispcp controlpanel so how should I do?.

Thanks a lot.
Hawara


RE: Wildcard dns - Kika - 11-24-2011 07:55 PM

You just modified the DNS, but you forgot to redirect the all subdomain to http://www.mydomain.com. You must modify the apache settings to:

Code:
# NameVirtualHost ...:80
<VirtualHost ...:80>
    ServerName www.mydomain.com
    # This is your main domain
</VirtualHost>

<VirtualHost .....:80>
    ServerName mydomain.com
    ServerAlias *.mydomain.com
    # This is to make sure that foo.mydomain.com gets redirected too
    # If you want to use more virtual hosts on subdomains,
    # just define them earlier
    Redirect / http://www.mydomain.com/
</VirtualHost>



RE: Wildcard dns - hawara - 11-24-2011 07:58 PM

(11-24-2011 07:55 PM)Kika Wrote:  You just modified the DNS, but you forgot to redirect the all subdomain to http://www.mydomain.com. You must modify the apache settings to:

Code:
# NameVirtualHost ...:80
<VirtualHost ...:80>
    ServerName www.mydomain.com
    # This is your main domain
</VirtualHost>

<VirtualHost .....:80>
    ServerName mydomain.com
    ServerAlias *.mydomain.com
    # This is to make sure that foo.mydomain.com gets redirected too
    # If you want to use more virtual hosts on subdomains,
    # just define them earlier
    Redirect / http://www.mydomain.com/
</VirtualHost>

Where is file i have to modifiy? please. ^.^