[dynect|dns] Fixes exception behavior for 307's
Merge pull request #3017 from nickjanus/dynect

[dynect|dns] Fixes exception behavior for 307's