package dns
-
dns.cache
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Start of authority
The start of authority (SOA) is a resource record at domain boundaries. It contains metadata (serial number, refresh interval, hostmaster) of the domain.
type t = {
nameserver : [ `raw ] Domain_name.t;
hostmaster : [ `raw ] Domain_name.t;
serial : int32;
refresh : int32;
retry : int32;
expiry : int32;
minimum : int32;
}
The type of a start of authority.
val create :
?serial:int32 ->
?refresh:int32 ->
?retry:int32 ->
?expiry:int32 ->
?minimum:int32 ->
?hostmaster:'a Domain_name.t ->
'b Domain_name.t ->
t
create ~serial ~refresh ~retry ~expiry ~minimum ~hostmaster nameserver
returns a start of authority. The default for hostmaster
is replacing the first domain name part of nameserver
with "hostmaster" (to result in hostmaster@foo.com if ns1.foo.com is the nameserver
.