dns: some fixes for #4 (too hasty on the commit).