Skip to content

SRV records for the zone itself don't parse with RR.Parse #163

@znkr

Description

@znkr

IIUC,

$ORIGIN mydomain.tld.
_sip._tcp IN SRV 1 100 5061 sip.example.com.

is represented in libdns v1.0.0-beta.1 as

libdns.RR{
	Name: "_sip._tcp",
	Type: "SRV",
	TTL:  1 * time.Hour,
	Data: "1 100 5061 sip.example.com.",
}

However, using calling RR.Parse fails:

_, err := libdns.RR{
	Name: "_sip._tcp",
	Type: "SRV",
	TTL:  1 * time.Hour,
	Data: "1 100 5061 sip.example.com.",
}.Parse()
fmt.Println(err) //  name _sip._tcp does not contain enough fields; expected format: '_service._proto.name'

https://go.dev/play/p/NQJpC52cJQw

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions