• Carl-Magnus Björkell's avatar
    plugin/etcd: propagate recursion flag properly (#2254) · cfbfa5c0
    Carl-Magnus Björkell authored
    When fetching records via the etcd plugin, the recursion flag was never
    set properly according to if the caller requested an exact record match
    or not. This cause problems especially in CNAME lookups, where recursion
    took place and a random RR was returned instead of the one that was
    specifically added for this key. Even when there is no service attached
    on the given path, it is still wrong to return a random one from the
    recursion.
    
    Fixing by using the `exact` flag to decide if recursion should be done.
    cfbfa5c0
cname_test.go 2.71 KB