nerdexam
LPI

010-160 · Question #2

Reverse DNS assigns hostnames to IP addresses. How is the name of the IP address 198.51.100.165 stored on a DNS server?

The correct answer is B. In the PTR record for 165.100.51.198.in-addr.arpa.. Reverse DNS uses PTR records stored in the in-addr.arpa zone, with the IPv4 address written in reversed octet order to align with DNS hierarchy.

The Linux Operating System

Question

Reverse DNS assigns hostnames to IP addresses. How is the name of the IP address 198.51.100.165 stored on a DNS server?

Options

  • AIn the A record for 165.100.51.198.ipv4.arpa.
  • BIn the PTR record for 165.100.51.198.in-addr.arpa.
  • CIn the CNAME record for 198-51-100-165.rev.arpa.
  • DIn the AAAA record for 165.100.51.198.rev.
  • EIn the REV record for arpa.in-addr.198.51.100.165.

How the community answered

(42 responses)
  • A
    7% (3)
  • B
    74% (31)
  • C
    2% (1)
  • D
    14% (6)
  • E
    2% (1)

Why each option

Reverse DNS uses PTR records stored in the in-addr.arpa zone, with the IPv4 address written in reversed octet order to align with DNS hierarchy.

AIn the A record for 165.100.51.198.ipv4.arpa.

A records perform forward lookups, mapping hostnames to IPv4 addresses, not the reverse, and ipv4.arpa is not a valid or standard reverse DNS zone.

BIn the PTR record for 165.100.51.198.in-addr.arpa.Correct

PTR (pointer) records are the DNS record type designated specifically for reverse lookups, mapping an IP address back to a hostname. The in-addr.arpa zone is the IANA-defined namespace for IPv4 reverse DNS, and the octets of the IP address are reversed so that 198.51.100.165 becomes 165.100.51.198.in-addr.arpa, mirroring the way DNS delegation works from right (most general) to left (most specific).

CIn the CNAME record for 198-51-100-165.rev.arpa.

CNAME records create canonical name aliases between hostnames and are never used for reverse DNS PTR lookups.

DIn the AAAA record for 165.100.51.198.rev.

AAAA records are used for IPv6 forward lookups only, and rev.arpa is not a defined DNS zone for reverse resolution.

EIn the REV record for arpa.in-addr.198.51.100.165.

There is no REV record type defined in any DNS RFC; PTR is the only standard record type used for reverse DNS resolution.

Concept tested: Reverse DNS PTR records in in-addr.arpa zone

Source: https://www.rfc-editor.org/rfc/rfc1035

Topics

#reverse DNS#PTR record#DNS records#in-addr.arpa

Community Discussion

No community discussion yet for this question.

Full 010-160 Practice