LOCRecordValidator
class LOCRecordValidator implements DnsRecordValidatorInterface (View source)
LOC record validator
The LOC (Location) record is used to express geographic location information for a domain name in the DNS. It specifies the latitude, longitude, and altitude of a point, along with the size and precision of the area.
Format: d1 [m1 [s1]] {"N"|"S"} d2 [m2 [s2]] {"E"|"W"} alt["m"] [siz["m"] [hp["m"] [vp["m"]]]]
Where:
- d1: degrees latitude (0-90)
- m1: minutes latitude (0-59) (optional, defaults to 0)
- s1: seconds latitude (0-59.999) (optional, defaults to 0)
- d2: degrees longitude (0-180)
- m2: minutes longitude (0-59) (optional, defaults to 0)
- s2: seconds longitude (0-59.999) (optional, defaults to 0)
- alt: altitude in meters (-100000.00 to 42849672.95) (optional, defaults to 0)
- siz: size/diameter of sphere in meters (0-90000000.00) (optional, defaults to 1m)
- hp: horizontal precision in meters (0-90000000.00) (optional, defaults to 10000m)
- vp: vertical precision in meters (0-90000000.00) (optional, defaults to 10m)
Example: 37 46 30.000 N 122 23 30.000 W 0.00m 1m 10000m 10m
NOTE: The LOC record is defined in RFC 1876 as an experimental protocol.
Methods
validate(string $content, string $name, mixed $prio, int|string|null $ttl, int $defaultTTL, mixed ...$args)
Validates LOC record content
Details
__construct(ConfigurationManager $config)
No description
ValidationResult
validate(string $content, string $name, mixed $prio, int|string|null $ttl, int $defaultTTL, mixed ...$args)
Validates LOC record content