Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(23)

Issue 2420041: code review 2420041: SRV support and RFC compliance

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 3 months ago by cjyar
Modified:
10 years, 4 months ago
Reviewers:
rsc1
CC:
rsc, chris_cjones.org, golang-dev
Visibility:
Public.

Description

SRV 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -2 lines) Patch
M src/pkg/net/dnsclient.go View 1 2 3 chunks +18 lines, -2 lines 0 comments Download
A src/pkg/net/dnsname_test.go View 1 2 1 chunk +65 lines, -0 lines 0 comments Download
A src/pkg/net/srv_test.go View 1 2 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 10
cjyar
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change.
15 years, 3 months ago (2010-10-10 06:41:10 UTC) #1
rsc
Please sync with the latest tip. I believe half of this CL is covered by ...
15 years, 3 months ago (2010-10-11 15:31:38 UTC) #2
cjyar
Hello golang-dev@googlegroups.com, rsc (cc: golang-dev@googlegroups.com), Please take another look.
15 years, 3 months ago (2010-10-15 04:43:59 UTC) #3
cjyar
Hello golang-dev@googlegroups.com, rsc (cc: golang-dev@googlegroups.com), Please take another look.
15 years, 3 months ago (2010-10-15 04:44:24 UTC) #4
cjyar
On 2010/10/15 04:44:24, cjyar wrote: > Hello mailto:golang-dev@googlegroups.com, rsc (cc: mailto:golang-dev@googlegroups.com), > > Please take ...
15 years, 3 months ago (2010-10-15 04:46:50 UTC) #5
chris_cjones.org
It's been a couple of weeks. Could somebody take a look at this? Chris On ...
15 years, 2 months ago (2010-10-30 02:33:05 UTC) #6
rsc1
LGTM
15 years, 2 months ago (2010-11-01 18:54:05 UTC) #7
rsc1
Could you please complete a CLA as described at http://golang.org/doc/contribute.html#copyright ? Thanks. Russ
15 years, 2 months ago (2010-11-01 20:21:01 UTC) #8
chris_cjones.org
Done. On 11/1/2010 2:21 PM, rsc@google.com wrote: > Could you please complete a CLA as ...
15 years, 2 months ago (2010-11-01 20:40:25 UTC) #9
rsc
15 years, 2 months ago (2010-11-04 14:30:42 UTC) #10
*** Submitted as e4191df7dd41 ***

net: fix LookupSRV

R=rsc, chris
CC=golang-dev
http://codereview.appspot.com/2420041

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b