beginning of DNS test code