Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm using some fictional IP addresses here, but the problem is real.

My default A Record:

* # this is for, I suppose
@ # and this is for
www # this is for

There are also these entries. What do they do in this context? My MX records are elsewhere.


Now I'd like to point to my own server. Let's say that my IP is I would then write:


Is that correct? I read something about * IN A - what's that notation?

Assuming my application runs on, everything should be fine, right? I am new to the A records concept and I'd like to ask before changing and deconstructing my system.

share|improve this question
Example IP addresses. –  TRiG Jan 16 '14 at 16:13

1 Answer 1

up vote 2 down vote accepted

If I understood correctly, you want your root domain (aka to resolve to In this case, all what you have to do is to create an A record that points to that IP A

depending on your DNS hosting interface, you may either need to leave the record name empty (to match or other providers asks you to reference it with @. In that case

@ A

If then you also what the www hostname (aka to map to the same server, you can either add another A record

www A
# or depending on your DNS hosting interface A

or a CNAME to the root domain

# or depending on your DNS hosting interface
www CNAME @

The wildcard records * allows you to map any subdomain of a specific level to a server. For instance

* A

will map any one-level subdomain of (including but not root domain) to that IP. It also works with a CNAME


You should avoid wildcards unless you really need it, for instance for a subdomain-based multi-tenant application

Note. In my examples I always use the format


but how you create those records and the order of the items depends on your DNS hosting provider interface.

share|improve this answer

Your Answer


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.