Monday, November 15, 2010

All About DNS

A address record -Returns a 32-bit IPv4 address, most commonly used to map hostnames to an IP address of the host, but also used for DNSBLs, storing subnet masks in RFC 1101, etc.

A (address) Maps a host name to an IP address. When a computer has multiple adapter cards or IP addresses, or both, it should have multiple address records.

The A Record, (Address Record or IP Address), for a domain name is used to specify the physical address on the Internet that a user must connect to in order to use the information associated with that domain name, such as web site files or other types of data. For instance, if a web site for the domain name example.com exists at the address 128.10.1.29

Check the A record using the "dig" command
#dig -t A example.com


AAAA record: AAAA record IPv6 address record maps a hostname to a 128-bit IPv6 address.

you need to specify in Forward Zone File
example.com IN A 128.10.1.29
mail IN AAAA 2001:db8::32


CNAME Record

Canonical name records are aliases for A records. For each CNAME record, you can choose an alias and a host.
For example, using this record, example.com can have an alias as ftps.example.com

example.com IN A 128.10.1.29
ftps IN CNAME example.com

MX :Mail exchange Specifies a mail exchange server for the domain, which allows mail to be delivered to the correct mail servers in the domain. Mail Exchange records direct email to servers for a domain, and are listed in order of priority. If mail can't be delivered using the first priority record, the second priority record is used, and so on.

mail.example.com IN MX 10 182.15.10.2




No comments:

Post a Comment