11

I need help setting up a second level subdomain. I have set up wildcard subdomains in the past with success, but I am having trouble with the DNS entry for this one. I need to do something like

*.design.mydomain.com

So I tried to create an A record with *.design in it but that failed. Is this possible?

easyappl
  • 303

3 Answers3

8

yes you can do this, you basically need a record (bind format)

*.design.mydomain.com. 3600 IN A x.x.x.x

or in djbdns format:

+\052.design.mydomain.com:x.x.x.x:3600
Brendan
  • 934
1

You did not indicate the name server you use. With BIND or NSD, which both use the RFC 1035 format for zone files, this should work:

*.design    IN   A   192.0.2.3
bortzmeyer
  • 3,991
0

I believe the entry in our BIND config looked something like the following....

...... 
hostname               A    IPADDRESSHERE 
$ORIGIN hostname.domain.com.
*                      A    IPADDRESSHERE 
$ORIGIN domain.com.
......

We did this in the same zone and it worked just fine for us.

J.Zimmerman
  • 1,107