Sign in

    chgttyyr/moon_dns/src/zone does not have a README file

    LookupResult

    Result of an authoritative query lookup in a Zone database

    Zone

    pub(all) struct Zone {
    origin : String
    default_ttl : UInt
    soa :
    Record
    ?
    records : Array[
    Record
    ]
    } derive(
    Debug
    )

    Zone database holding records for an authoritative apex origin

    Zone::add_record

    fn Zone::add_record(self : Zone, record :
    Record
    ) -> Unit

    Add a Resource Record into the zone

    Zone::get_soa_or_fallback

    fn Zone::get_soa_or_fallback(self : Zone) ->
    Record

    Get the authoritative SOA record or create a fallback default SOA

    Zone::lookup

    fn Zone::lookup(self : Zone, query_name : String, qtype :
    RType
    ) -> LookupResult

    Lookup records for a given domain and QTYPE strictly implementing RFC 1034 / RFC 1035 rules

    Zone::new

    fn Zone::new(origin : String, default_ttl : UInt) -> Zone

    Create an empty Zone for a given origin domain

    Zone::record_count

    fn Zone::record_count(self : Zone) -> Int

    Return the number of records stored in this zone.

    Zone::validate

    fn Zone::validate(self : Zone) -> Array[String]

    The returned diagnostics are stable and follow record insertion order.

    parse_zone_text

    fn parse_zone_text(initial_origin : String, text : String) -> Result[Zone,
    DnsError
    ]

    Parse a master-file format Zone text into an in-memory Zone database (RFC 1035 Section 5)

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io