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.

What does '@' means and how is it different from '*'?

I want to set *.myhost.com to resolve to IP x.x.x.x. So, I am creating a DNS type A record pointing to the IP. I don't want to have to create an entry for each of my sub-domains.

share|improve this question
    
Um. There's no question here. What you've said is correct, you want to make a wildcard A record for * in your domain.com zone. This is valid and correct if you choose to implement that way. –  MDMarra Dec 8 '11 at 2:42
    
Funny that some people responded and got Ups, right? –  TraderJoeChicago Dec 8 '11 at 4:51
3  
Yup, they got Ups because they put in more effort than you did. –  Alnitak Dec 8 '11 at 10:05
    
Wow. I've got to start looking at dates more closely. –  Aaron Copley Jul 27 '12 at 19:19
add comment

2 Answers

up vote 9 down vote accepted

@ refers to the current ORIGIN in your zone file, usually the domain in question.

If you did

@ IN A 172.31.31.31

in the mydomain.com zomefile, it would make mydomain.com resolve to 172.31.31.31.

If you did

* IN A 172.31.31.31  

then all hostnames would resolve to 172.31.31.31

share|improve this answer
add comment

Also it must be said, that you can read about these DNS things in "DNS and BIND" book, and in most any manual, where DNS zone syntax are describes.

share|improve this answer
    
Most of the questions on this site can be answered by reading the documentation. That isn't the purpose of this community. I'm not going to downvote this answer, but I'd reconsider posting unhelpful answers like this. –  Aaron Copley Jul 27 '12 at 19:20
add comment

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.