diff --git a/Netdisco/views/ajax/device/ports.tt b/Netdisco/views/ajax/device/ports.tt
index 31b92b56..f130fae6 100644
--- a/Netdisco/views/ajax/device/ports.tt
+++ b/Netdisco/views/ajax/device/ports.tt
@@ -104,7 +104,7 @@
[% 'a ' IF NOT ip.active %]
[% SET dns = ip.dns %]
[% IF dns %]
- [% ip.dns %] ([% ip.ip %])
+ [% dns %] ([% ip.ip %])
[% ELSE %]
[% ip.ip %]
[% END %]