diff --git a/dns_check/check.py b/dns_check/check.py
index <HASH>..<HASH> 100644
--- a/dns_check/check.py
+++ b/dns_check/check.py
@@ -57,11 +57,11 @@ class DNSCheck(NetworkCheck):
 
         # If a specific DNS server was defined use it, else use the system default
         nameserver = instance.get('nameserver')
-        nameserver_port = instance.get('port')
+        nameserver_port = instance.get('nameserver_port')
         if nameserver is not None:
             resolver.nameservers = [nameserver]
         if nameserver_port is not None:
-            resolver.port = [nameserver_port]
+            resolver.port = nameserver_port
 
         timeout = float(instance.get('timeout', self.default_timeout))
         resolver.lifetime = timeout
[dns] fixing broken port changes. (#<I>)