DOCS: Clarify PTR example (#2792)

This commit is contained in:
Tom Limoncelli 2024-01-11 17:25:31 -05:00 committed by GitHub
parent 447db0e68c
commit 56220fba5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,9 +48,9 @@ then the name will be replaced with `4.3`. Note that the output
of `REV("1.2.3.4")` is `4.3.2.1.in-addr.arpa.`, which means the following
are all equivalent:
* `PTR(REV("1.2.3.4"), `
* `PTR("4.3.2.1.in-addr.arpa."), `
* `PTR("4.3",` // Assuming the domain is `2.1.in-addr.arpa`
* `PTR(REV("1.2.3.4", ...`
* `PTR("4.3.2.1.in-addr.arpa.", ...`
* `PTR("4.3", ...` // Assuming the domain is `2.1.in-addr.arpa`
All magic is RFC2317-aware. We use the first format listed in the
RFC for both [`REV()`](../global/REV.md) and `PTR()`. The format is