Microsoft Certified: Azure Administrator AssociateImplement and manage virtual networkingEasy

A company is deploying a new application that will use a custom domain name, 'app.contoso.com'. The application is hosted on an Azure App Service. You need to configure DNS resolution for this custom domain name to point to the Azure App Service. Which type of record should you create in Azure DNS?

  1. APTR record
  2. BA record
  3. CMX record
  4. DSRV record
Show answer & explanation

Correct answer: B. A record

An A record (Address record) maps a domain name to an IPv4 address. Azure App Services have an associated public IP address, so an A record is used to point the custom domain 'app.contoso.com' to the App Service's IP address.

Why the other options are wrong

  • A. A PTR record (Pointer record) is used for reverse DNS lookups, mapping an IP address to a domain name. It's not used for pointing a domain to a service.
  • C. An MX record (Mail Exchanger record) specifies mail servers responsible for receiving email messages on behalf of a domain name.
  • D. An SRV record (Service record) specifies the location of a service (e.g., hostname and port number) for a domain name. It's not typically used for basic custom domain to web service mapping.

A Record (Azure DNS)

A DNS record type that maps a domain name or hostname to an IPv4 address, used to point custom domains to web services or VMs.

  • Fundamental for resolving domain names to IP addresses.
  • Can be used for root domains or subdomains.
  • One of the most common DNS record types.

Memory trick: DNS Records: Your domain's address book.

More Implement and manage virtual networking questions