mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
CHORE: linting (#2098)
This commit is contained in:
@@ -181,6 +181,7 @@ func (c *bindProvider) GetZoneRecords(domain string) (models.Records, error) {
|
||||
return ParseZoneContents(string(content), domain, zonefileName)
|
||||
}
|
||||
|
||||
// ParseZoneContents parses a string as a BIND zone and returns the records.
|
||||
func ParseZoneContents(content string, zoneName string, zonefileName string) (models.Records, error) {
|
||||
zp := dns.NewZoneParser(strings.NewReader(content), zoneName, zonefileName)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user