@@ -1297,6 +1297,10 @@ public int ioctl(BigInteger cmd, object option)
             )]
         public static string getfqdn(string host) {
             host = host.Trim();
+            if (host == string.Empty || host == "0.0.0.0") {
+                host = gethostname();
+            }
+
             if (host == BroadcastAddrToken) {
                 return host;
             }