DNS A Record

I need few clarifications regarding the DNS A record publishing.
I have a domain abc.com.

I want to use this domain for both mail & Web publishing.
I want to publish as below.

mail.abc.com   A    -> Mail
abc.com           A    -> Web Server Access

Please let me know if this is possible.
Can i have separate A Record for mail & sub domain.
Who is Participating?

Improve company productivity with a Business Account.Sign Up

SandyConnect With a Mentor Commented:
Yes, you can do it and SPF record is correct use IN TXT format.

You can have many A records as long as they all point to unique IP addresses. You can even have two different A records for individual names as long as they point to different IP addresses - so multiple IP addresses can handle abc.com for example. this implies that any of those IP addresses can handle all expected traffic for abc.com

The separation for mail is handled by the MX record so in your example:

abc.com                  a    ' web
mail.abc.com        mx    'mail
SrikantRajeevAuthor Commented:
I am creating SPF record for this domain.
Below is the syntax. Let me know if the below is right.

v=spf1 a mx:mail.abc.com ~all
If this is a separate question from the original you should mark that as answered (assuming you are happy) and post the SPF request as a new question.

I'm not sure what you are trying to achieve so I can't say if the SPF record is complete but in general:-

as a TXT record:

v=spf1 mx  ?all

will use all MX records to identify/control send policy so it will combine with
MX mail.abc.com

I suggest you look at the following link and provide the wizard with real data and it will generate the proper TXT record for you.


And do some reading on the following resource record types:-

    holding an address (like
    holding a Mail eXchange with preference number, such as "10 mail1.example.com." and "100 mail2.example.com."
    roughly saying: "this is not an official name. Look there instead." If a domain has a CNAME RR, there cannot be another kind of RR (there's one exception, which will not be discussed here). For e-mail, and thus for SPF, you will need to look at the official domain name. Example: "alias.example.org. CNAME canonicalname.example.org." means you need to define an SPF policy for canonicalname.example.org and not for alias.example.org.
    Start Of Authority, see delegation.
    Name Server, see delegation.
    can contain any kind of text. The SPF project uses (some say: abuses) this RR type for their own purpose

Also existing:

    a new RR type, created for the SPF project. It will take some time for all DNS software manufacturers to implement this type.

N.B. You create an SPF policy, which can be stored in an SPF record and/or in a TXT record.
SrikantRajeevAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.