What is dns A record?

What is dns A record?
Brand Protection

30 July, 2020

What is DNS A record?

The A Record points your hostname to an IP address. Record A specifies IP address (IPv4) for given host. This is one of the most frequently used records in the DNS Zones. The only parameter is an ipv4 field which is a single IPv4 address in dotted-decimal format. The ipv4 field is an address not a label (name) and therefore is not terminated with a '.' (dot). If hostname is BLANK (or space) then the last valid name (or label) is substituted.

If multiple addresses are defined with the same name then BIND will respond to queries with 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.

IP addresses do not have to be in the same class or range. IPv4 addresses are reverse mapped using the PTR RR. 


ORIGIN example.com.
       IN  NS  alice.example.com.
alice  IN  A ; real host name

; equally valid configuration

       IN   NS  ns1.example.com.
ns1    IN   A ; service name
alice  IN   A ; host name (same IPv4)

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,,


How to add it? 

  • Go to your Control Panel and click on “Add new record”. Type, as follow:
    Type: A
    TTL: 1 Hour
    Points to: ip.of.your.website


Search By Keywords:

Request Your Complimentary Domain Analysis