Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParseState ¶
ParseState represents the current state of the zone parser. ParseState is used by parseZone and does not need to be used manually.
type Zone ¶
Zone represents a DNS zone. It can either be instantiated manually or by using ToZoneFile
func (*Zone) AddPTR ¶
AddPTR adds a creates a PTR from an IP address and adds it to the zone. If Ttl is 0 the default TTl from the zone is being used. Note: Legacy IP is currently not supported.
func (*Zone) ToZoneFile ¶
ToZoneFile returns a string containing a bind-like zone file from the provided zone