package dns
-
dns.cache
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Loc
A locator record (LOC) is used to express location information associated with domain.
See RFC 1876.
val parse :
latitude:((int32 * int32 * int32) * [ `North | `South ]) ->
longitude:((int32 * int32 * int32) * [ `East | `West ]) ->
altitude:int64 ->
precision:(int64 * int64 * int64) ->
t
parse ~latitude ~longitude ~altitude ~precision
Parse a human-readable format to a Loc record.
latitude
and longitude
are represented by ((degress, mintues, seconds), direction)
altitude
is the altitude in centimeters.
precision
is represented by (size, horizontal precision, vertical percision) in meters.
val to_string : t -> string