DNS: Question about setting abc.com record

Tim ignored_mailbox at yahoo.com.au
Thu Jun 19 06:49:28 UTC 2008


On Wed, 2008-06-18 at 08:38 -0700, Daniel B. Thurman wrote:
> I have several DNS servers and wondered if the following
> record entry is properly set for all of my DNS servers:
> 
> $TTL 172800
> @        IN SOA ns1.abc.com. admin.abc.com. (
>                 1               ; serial
>                 3H            ; refresh
>                 15M          ; retry
>                 1W            ; expiry
>                 1D )           ; minimum
> ;============ Nameserver ================
> @               IN NS           ns1.abc.com.
> @               IN NS           ns2.abc.com.
> @               IN NS           ns3.abc.com.

If you have three name servers for your domain, then you would list them
all as you've done.  Though I think you'll find the "@" is actually
redundant, BIND would list them like the following, by default:

               IN NS           ns1.abc.com.
               IN NS           ns2.abc.com.
               IN NS           ns3.abc.com.

> ;============ Mail Exchange =============
> @               IN MX   10      mail1.abc.com.
> @               IN MX   20      mail2.abc.com.
> @               IN MX   30      mail3.abc.com.

Again, this looks fine, you'd list all MX records for your domain.  

Again, the @ is probably redundant.  I'm presuming you're using BIND, as
that comes with Fedora.  Other name servers might write their internal
records differently than BIND.

> @               IN TXT          v=spf1 a mx -all

This TXT record would only apply to "@", which is 10.1.0.1.  If you
wanted to give each mailserver entry a TXT record, you'd want to write
individual TXT records for each host.  One way to do that would be as
I've jammed into the quoted text below.  In this case, the TXT record is
associated with the entry above it.

> ;============ Hosts ======================
> @               IN A            10.1.0.1
> mail1           IN A            10.1.0.1
                     TXT          v=spf1 a mx -all
> mail2           IN A            10.1.0.2
                     TXT          v=spf1 a mx -all
> mail3           IN A            10.1.0.3
                     TXT          v=spf1 a mx -all
> ns1             IN A            10.1.0.1
> ns2             IN A            10.1.0.2
> ns3             IN A            10.1.0.2
> ;========================================


-- 
[tim at localhost ~]$ uname -r
2.6.25.6-55.fc9.i686

Don't send private replies to my address, the mailbox is ignored.  I
read messages from the public lists.






More information about the users mailing list