diff --git a/salt/utils/network.py b/salt/utils/network.py
index <HASH>..<HASH> 100644
--- a/salt/utils/network.py
+++ b/salt/utils/network.py
@@ -1745,7 +1745,7 @@ def dns_check(addr, port, safe=False, ipv6=None):
             for h in hostnames:
                 # It's an IP address, just return it
                 if h[4][0] == addr:
-                    resolved = addr
+                    resolved = salt.utils.zeromq.ip_bracket(addr)
                     break
 
                 if h[0] == socket.AF_INET and ipv6 is True:
Use IPv6 addresses with brackets also when not using hostnames

Fixes using IPv6 address for master within minion configuration