PDA

View Full Version : Wildcard DNS -Using SB DNS -How to?


hoover
2003-09-09, 14:17 PM
I saw in an admin post that wildcard dns exists when using geodns / sb nameservers.

anyone know how to set this up? I went into the DNS tool, but couldn't find it as an option.

thanks.

QT
2003-09-09, 14:26 PM
Originally posted by hoover
I saw in an admin post that wildcard dns exists when using geodns / sb nameservers.

anyone know how to set this up? I went into the DNS tool, but couldn't find it as an option.

thanks.

You can do wildcards by adding a record with * as the name so you end up with something like this in the zone file:

* IN A 66.139.72.12 <- using your ip address of course.


:)

hoover
2003-09-09, 14:30 PM
thanks.. I'll give it a try.

hoover
2003-09-10, 08:46 AM
Originally posted by QT_
You can do wildcards by adding a record with * as the name so you end up with something like this in the zone file:

* IN A 66.139.72.12 <- using your ip address of course.


:)


the SB DNS tool seems to accept the ' * ' as a wildcard but it is resolving the wildcards to the main IP address of the server.

When I log into the my cpanel to add a DNS subdomain name (assuming I need to tell the server where to send wildcard DNS requests) the tool won't accept * as a valid subdomain name.

I tried to set up the wildcard (with the SB dns tool) with the subdomain name pointing to the parent domain name --which still bumped me to the primary IP on the server, and I also tried sending it directly to the IP of the server --which obviously didn't work. (I'm also trying (as a trial and error approach) to point a * wildcard ) for a domain name to a completely different domain name to see if that will work.

anyone have suggestions?

QT
2003-09-10, 09:49 AM
If you set up the wildcard DNS like this in the mydomain.com zone:

* IN A 66.139.72.12

Then <anything>.mydomain.com which does not have an explicit record will resolve to the IP address provided. Now on the server, there has to be a virtualhost that is configured to catch these.

I don't know how cPanel does it, if it were a standard server...you would just open up httpd.conf and add this to the VirtualHost for mydomain.com:

ServerAlias *.mydomain.com

:)