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

Issue 3851041: code review 3851041: net/dnsclient.go: Add LookupReverse(addr string) []str...

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 5 months ago by Kyle Lemons
Modified:
14 years, 5 months ago
Reviewers:
rsc
CC:
adg, rsc, golang-dev
Visibility:
Public.

Description

net/dnsclient.go: Add LookupReverse(addr string) []string, os.Error I have added a function to perform reverse lookups by retrieving the appropriate PTR records. There is also an accompanying function/test to compute the in-addr.arpa. and ip6.arpa. I also added a reverse static lookup for /etc/hosts.

Patch Set 1 #

Patch Set 2 : code review 3851041: net/dnsclient.go: Add LookupReverse(addr string) []str... #

Patch Set 3 : code review 3851041: net/dnsclient.go: Add LookupReverse(addr string) []str... #

Patch Set 4 : code review 3851041: net/dnsclient.go: Add LookupReverse(addr string) []st... #

Patch Set 5 : code review 3851041: net/dnsclient.go: Add LookupReverse(addr string) []st... #

Patch Set 6 : code review 3851041: net/dnsclient.go: Add LookupReverse(addr string) []st... #

Total comments: 5

Patch Set 7 : code review 3851041: net/dnsclient.go: Add LookupReverse(addr string) []st... #

Total comments: 8

Patch Set 8 : code review 3851041: net/dnsclient.go: Add LookupReverse(addr string) []st... #

Total comments: 9

Patch Set 9 : code review 3851041: net/dnsclient.go: Add LookupReverse(addr string) []st... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -8 lines) Patch
M src/pkg/net/dnsclient.go View 1 2 3 4 5 6 7 8 2 chunks +53 lines, -1 line 0 comments Download
M src/pkg/net/hosts.go View 1 2 3 4 5 6 7 8 3 chunks +24 lines, -7 lines 0 comments Download
src/pkg/net/net_test.go View 1 2 3 4 5 6 7 8 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 11
Kyle Lemons
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 5 months ago (2010-12-30 11:36:37 UTC) #1
Kyle Lemons
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 5 months ago (2010-12-30 20:42:40 UTC) #2
adg
http://codereview.appspot.com/3851041/diff/20001/src/pkg/net/dnsclient.go File src/pkg/net/dnsclient.go (right): http://codereview.appspot.com/3851041/diff/20001/src/pkg/net/dnsclient.go#newcode369 src/pkg/net/dnsclient.go:369: type PTR struct { This isn't used anywhere as ...
14 years, 5 months ago (2011-01-04 05:29:20 UTC) #3
Kyle E. Lemons
PTAL. Comments and questions inline. On 2011/01/04 05:29:20, adg wrote: > http://codereview.appspot.com/3851041/diff/20001/src/pkg/net/dnsclient.go > File src/pkg/net/dnsclient.go ...
14 years, 5 months ago (2011-01-05 00:48:54 UTC) #4
adg
http://codereview.appspot.com/3851041/diff/26001/src/pkg/net/dnsclient.go File src/pkg/net/dnsclient.go (right): http://codereview.appspot.com/3851041/diff/26001/src/pkg/net/dnsclient.go#newcode369 src/pkg/net/dnsclient.go:369: // Get the in-addr.arpa. or ip6.arpa. for the address ...
14 years, 5 months ago (2011-01-05 02:39:39 UTC) #5
Kyle E. Lemons
PTAL. I still left the local hosts file lookup before the PTR lookup. Let me ...
14 years, 5 months ago (2011-01-05 03:40:13 UTC) #6
adg
Looking pretty good. Adding Russ to reviewers. http://codereview.appspot.com/3851041/diff/31001/src/pkg/net/dnsclient.go File src/pkg/net/dnsclient.go (right): http://codereview.appspot.com/3851041/diff/31001/src/pkg/net/dnsclient.go#newcode395 src/pkg/net/dnsclient.go:395: // It ...
14 years, 5 months ago (2011-01-09 23:20:58 UTC) #7
rsc
http://codereview.appspot.com/3851041/diff/31001/src/pkg/net/dnsclient.go File src/pkg/net/dnsclient.go (right): http://codereview.appspot.com/3851041/diff/31001/src/pkg/net/dnsclient.go#newcode19 src/pkg/net/dnsclient.go:19: "fmt" I'm not happy about importing fmt and bytes ...
14 years, 5 months ago (2011-01-11 16:51:29 UTC) #8
Kyle Lemons
PTAL. Thanks for the reviews, guys. On 2011/01/11 16:51:29, rsc wrote: > http://codereview.appspot.com/3851041/diff/31001/src/pkg/net/dnsclient.go > File ...
14 years, 5 months ago (2011-01-11 18:41:48 UTC) #9
rsc
LGTM
14 years, 5 months ago (2011-01-19 19:52:07 UTC) #10
rsc
14 years, 5 months ago (2011-01-19 20:11:05 UTC) #11
*** Submitted as 944ddec476c5 ***

net: add LookupAddr

R=adg, rsc
CC=golang-dev
http://codereview.appspot.com/3851041

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