bug fix in DNS check