Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Transparent proxying of external queries #307

Merged
merged 1 commit into from
Oct 7, 2015
Merged

Transparent proxying of external queries #307

merged 1 commit into from
Oct 7, 2015

Conversation

tsenart
Copy link
Contributor

@tsenart tsenart commented Oct 6, 2015

The original external queries code mixed concepts of a proxy (forwarder) and a recurser for no good apparent reason. As per https://tools.ietf.org/html/rfc5625, this change set simplifies things.

Related to #297, #298.
Closes #301.

@tsenart tsenart added the WIP label Oct 6, 2015
@tsenart tsenart added this to the v1.0.0 milestone Oct 6, 2015
@tsenart tsenart changed the title [WIP] Transparent proxying of external queries Transparent proxying of external queries Oct 7, 2015
@tsenart tsenart force-pushed the rfc5625 branch 2 times, most recently from d47912a to 0944e90 Compare October 7, 2015 21:13
} else if a = rec(r); a == "" {
break
defer func() {
if total.Inc(); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks strange because the increment of success depends on a negative outcome of total.Inc(). unless I'm missing something, total.Inc() should really be on its own line.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

total.Inc() has no impact on the conditional. It runs unconditionally.

@jdef
Copy link
Contributor

jdef commented Oct 7, 2015

a few minor comments. like the cleanness of forwarding vs. recursing 👍

This change set follows RFC5625 and implements protocol aware
transparent forwarding of DNS messages to external servers.

With this we get rid of the poorly implemented recursive semantics of
external resolution which were causing issues.
tsenart added a commit that referenced this pull request Oct 7, 2015
Transparent proxying of external queries
@tsenart tsenart merged commit 54c5137 into master Oct 7, 2015
@tsenart tsenart deleted the rfc5625 branch October 7, 2015 22:09
@tsenart tsenart removed the PTAL label Oct 7, 2015
@tsenart tsenart mentioned this pull request Oct 9, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants