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.

  • 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

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

If you did

@ IN A

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

If you did

* IN A  

then all hostnames would resolve to


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.

  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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