IPv4 Address Record (A)

Defined in RFC 1035. Forward maps a host name to IPv4 address. The only parameter is an IP address in dotted decimal format. The IP address in not terminated with a '.' (dot). Valid host name format (a.k.a 'label' in DNS jargon). If host name is BLANK (or space) then the last valid name (or label) is substituted.


name  ttl  class   rr     ip
joe        IN      A

If multiple addresses are defined with the same name then BIND will respond to queries with all all the addresses defined but the order may change. Cyclic order is the BIND default but you can control it with the BIND named.conf statement rrset-order. The same IP may be defined with different names (Beware: in this case a reverse lookup may not give the result you want). IP addresses do not have to be in the same class or range.

Note: A RRs translate a name to an IPv4 address - the name does not have to be the real host name of the PC or server (as it appears in /etc/hosts). It can be or not as you choose. Thus if your servers's name is joe.example.com with an IP address of 192.168.2 1 and it provides, say, a DNS service then you can either define an NS RR for joe.example.com or define an NS RR for, say, ns1.example.com and an A RR for ns1.example.com A

Examples & Variations

; zone fragment for example.com
$TTL 2d ; zone default = 2 days or 172800 seconds
joe        IN      A  ; joe & www = same ip     
www        IN      A
; functionally the same as the record above
www.example.com.   A
fred  3600 IN      A  ; ttl overrides $TTL default
ftp        IN      A ; round robin with next
           IN      A
mail       IN      A  ; mail = round robin
mail       IN      A
mail       IN      A
squat      IN      A  ; address in another range & class

In the above example BIND will respond to queries for mail.example.com as follows (assuming you are using the default rrset-order order cyclic):

1st query,,
2nd query,,
3rd query,,
4th query,,

Pro DNS and BIND by Ron Aitchison


tech info
guides home
dns articles
1 objectives
big picture
2 concepts
3 reverse map
4 dns types
5 install bind
6 samples
7 named.conf
8 dns records
9 howtos
10 tools
11 trouble
12 bind api's
13 dns security
bits & bytes
15 messages
notes & tips
registration FAQ
dns resources
dns rfc's
change log