the code cannot be run or compiled by go as it stands because line 130 includes the "" parameter in the if statement twice thereby causing the compilation process to complain that there are an incorrect number of parameters (3 = 2). removing the duplicated fixes the code in my setup and I can now successfully query dns servers.
My line 130 now reads:
if _, isDomain := dns.IsDomainName(domain); isDomain { // Well-formed domain name
the code cannot be run or compiled by go as it stands because line 130 includes the "" parameter in the if statement twice thereby causing the compilation process to complain that there are an incorrect number of parameters (3 = 2). removing the duplicated fixes the code in my setup and I can now successfully query dns servers.
My line 130 now reads:
if _, isDomain := dns.IsDomainName(domain); isDomain { // Well-formed domain name