DescriptionSRV support and RFC compliance
LookupSRV() always fails because isDomainName() returns false for any
valid SRV query. Specifically, it rejects the leading _ character on
the first two domain name parts. This patch changes the behavior of
isDomainName() to be in keeping with RFC 2181, which allows SRV
queries to work. However, that RFC appears to contradict the other
cited RFCs. It's likely that a correct reading requires a delicate
interpretation of "DNS record" vs. "DNS name" or something similar.
This change also adds LookupSRVByNet(), which uses the three
parameters listed in RFC 2782: service, proto, and name. This
function could use a better name; I'm guessing we can't replace the
old LookupSRV() with it, because it would be an incompatible API
change.
Patch Set 1 #Patch Set 2 : code review 2420041: SRV support and RFC compliance #Patch Set 3 : code review 2420041: SRV support and RFC compliance #
MessagesTotal messages: 10
|
|||||||||||||||||||||||||||||||||||||