Index: /tools/gformat.py
===================================================================
--- /tools/gformat.py	(revision 10936)
+++ /tools/gformat.py	(revision 10937)
@@ -831,9 +831,10 @@
   for host in get_hybridlist():
     hostdump = get_yaml(host)
-    if hostdump['service_proxy_ileiden'] or hostdump['service_proxy_normal']:
+    if hostdump['status'] == 'up' and (hostdump['service_proxy_ileiden'] or hostdump['service_proxy_normal']):
       nameservers_cache.append((hostdump['masterip'], hostdump['autogen_realname']))
   for host in get_proxylist():
     hostdump = get_yaml(host)
-    nameservers_cache.append((hostdump['masterip'], hostdump['autogen_realname']))
+    if hostdump['status'] == 'up':
+      nameservers_cache.append((hostdump['masterip'], hostdump['autogen_realname']))
 
   return nameservers_cache
