• Dan Peterson's avatar
    net: prefer error for original name on lookups · 5c0629b5
    Dan Peterson authored
    With certain names and search domain configurations the
    returned error would be one encountered while querying a
    generated name instead of the original name. This caused
    confusion when a manual check of the same name produced
    different results.
    
    Now prefer errors encountered for the original name.
    
    Also makes the low-level DNS connection plumbing swappable
    in tests enabling tighter control over responses without
    relying on the network.
    
    Fixes #12712
    Updates #13295
    
    Change-Id: I780d628a762006bb11899caf20b5f97b462a717f
    Reviewed-on: https://go-review.googlesource.com/16953Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    5c0629b5
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...