We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6122442 commit 699d4ffCopy full SHA for 699d4ff
+stdlib/+dotnet/hostname.m
@@ -1,9 +1,11 @@
1
%% DOTNET.GET_HOSTNAME get the computer network hostname
2
-% not necessary FQDN
3
4
function n = hostname()
5
6
-n = char(System.Environment.MachineName);
+%n = char(System.Environment.MachineName);
7
% https://learn.microsoft.com/en-us/dotnet/api/system.environment.machinename
8
+n = char(System.Net.Dns.GetHostName());
9
+% https://learn.microsoft.com/en-us/dotnet/api/system.net.dns.gethostname
10
+
11
end
0 commit comments