Current time: 04-19-2024, 10:43 AM Hello There, Guest! (LoginRegister)


Post Reply 
Wildcard dns
Author Message
Jillian Offline
Junior Member
*

Posts: 51
Joined: Mar 2009
Reputation: 1
Post: #1
Wildcard dns
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?
11-11-2010 05:32 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Kika Offline
Member
***

Posts: 293
Joined: Feb 2007
Reputation: 8
Post: #2
RE: Wildcard dns
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.
(This post was last modified: 11-16-2010 07:41 PM by Kika.)
11-16-2010 07:40 PM
Find all posts by this user Quote this message in a reply
hawara Offline


Posts: 2
Joined: Nov 2011
Reputation: 0
Post: #3
RE: Wildcard dns
(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
11-24-2011 07:32 PM
Find all posts by this user Quote this message in a reply
Kika Offline
Member
***

Posts: 293
Joined: Feb 2007
Reputation: 8
Post: #4
RE: Wildcard dns
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>
11-24-2011 07:55 PM
Find all posts by this user Quote this message in a reply
hawara Offline


Posts: 2
Joined: Nov 2011
Reputation: 0
Post: #5
RE: Wildcard dns
(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. ^.^
11-24-2011 07:58 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)