hashicorp / mdns

Simple mDNS client/server library in Golang
MIT License
1.17k stars 208 forks source link

Additional records should be put in additional section of DNS message #28

Open brutella opened 9 years ago

brutella commented 9 years ago

As described in RFC6763 Section 12 responses which contain PTR or SRV records, should put additional records (like A, AAAA,...) in the additional section.

Currently those additional records are put in the Answer section by using the Answer []RR field of dns.Msg type. Additional records should be put in the Extra []RR field of the dns.Msg type.

armon commented 9 years ago

Would love a PR :)

chenzh8007 commented 5 months ago

I have the same requirement from my side to append txt and SRV fields to additional records in PRT response. May I ask how did you solve it in the end? Thanks a lot!

brutella commented 5 months ago

@chenzh8007 I'm using my own library dnssd now.

chenzh8007 commented 5 months ago

Thanks for your reply, but I need to run my service in embedded linux, and it would be best to rely on avahi for that.