Fixes #2820

This PR fixes #2820 by accepting multiple -dns flags in daemon mode in the same way as the run command.