• Paul Marks's avatar
    net: add Resolver.StrictErrors · bfc164c6
    Paul Marks authored
    When LookupIP is performing multiple subqueries, this option causes a
    timeout/servfail affecting a single query to abort the whole operation,
    instead of returning a partial (IPv4/IPv6-only) result.
    
    Similarly, operations that walk the DNS search list will also abort when
    encountering one of these errors.
    
    Fixes #17448
    
    Change-Id: Ice22e4aceb555c5a80d19bd1fde8b8fe87ac9517
    Reviewed-on: https://go-review.googlesource.com/32572Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    bfc164c6
dnsclient_unix_test.go 27.8 KB