lib/resolve: avoid unnecessary DS queries

3 jobs for fix-extra-ds in 4 minutes and 18 seconds
Status Job ID Name Coverage
  Build
passed #6073
docker linux amd64
build:linux:amd64

00:01:42

 
  Test
passed #6075
docker linux amd64
deckard:linux:amd64

00:02:36

passed #6074
docker linux amd64
test:linux:amd64

00:01:54