Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
2  
"It failed" is not a proper problem report. What exactly did you do (show the actual file) and what happened exactly? –  bortzmeyer Jun 23 '09 at 8:48
    
Sorry. What I meant by "failed" is I would do a dnsstuff report on the design.mydomain.com and that would come back fine, then I ran a report on user.design.mydomain.com and that did not come back with any results. –  easyappl Jun 24 '09 at 12:56
    
DNSstuff is a poor way to test a domain. The best tool is dig and, if you want a report from another site, use zonecheck.fr "It did not come back with any results" is clearly not enough information to help you. –  bortzmeyer Jun 24 '09 at 18:18

3 Answers 3

up vote 5 down vote accepted

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
share|improve this answer
3  
You forgot the dot at the end of *.design.mydomain.com –  bortzmeyer Jun 23 '09 at 8:47
2  
and the TTL is in the wrong place too... –  Alnitak Jun 24 '09 at 15:40
1  
appreciated, should have checked the format of bind (been a while), updated my original post –  Brendan Jun 29 '09 at 23:43

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
share|improve this answer

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.

share|improve this answer
    
The $ORIGIN is not necessary, you can just use relative or absolute names. –  bortzmeyer Jun 23 '09 at 8:49
    
I have been doing all our subdomains and MX records this way because of an issue we had when setting up Google Apps. Google would not validate our account unless I stuck them between ORIGIN calls. I have no explanation for it. I understand BIND administration enough to get it done without a lot of trouble, but I wouldn't consider myself an expert. –  J.Zimmerman Jun 27 '09 at 7:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.