Safe Haskell | Safe-Inferred |
---|
- type Domain = String
- data IPAddr
- fromIPAddr :: IPAddr -> String
- data NamedConf = NamedConf {
- confDomain :: Domain
- confType :: Type
- confFile :: FilePath
- confMasters :: [IPAddr]
- confLines :: [String]
- data Type
- data Zone = Zone {}
- data SOA = SOA {
- sDomain :: BindDomain
- sSerial :: SerialNumber
- sRefresh :: Integer
- sRetry :: Integer
- sExpire :: Integer
- sNegativeCacheTTL :: Integer
- sRecord :: [Record]
- data Record
- = Address IPAddr
- | CNAME BindDomain
- | MX Int BindDomain
- | NS BindDomain
- | TXT String
- | SRV Word16 Word16 Word16 BindDomain
- getIPAddr :: Record -> Maybe IPAddr
- getCNAME :: Record -> Maybe BindDomain
- type SerialNumber = Word32
- data BindDomain
Documentation
fromIPAddr :: IPAddr -> StringSource
Represents a bind 9 named.conf file.
Represents a bind 9 zone file.
Every domain has a SOA record, which is big and complicated.
SOA | |
|
Types of DNS records.
This is not a complete list, more can be added.
getCNAME :: Record -> Maybe BindDomainSource
type SerialNumber = Word32Source
Bind serial numbers are unsigned, 32 bit integers.
data BindDomain Source
Domains in the zone file must end with a period if they are absolute.
Let's use a type to keep absolute domains straight from relative domains.
The SOADomain refers to the root SOA record.