Resolve-DnsName : The term 'Resolve-DnsName' is not recognized as the name of a cmdlet

Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
Why is Resolve-DnsName not recognized for PowerShell Core? So far as I recall it works fine with PowerShell itself.
Is this a .NET versus dotnet problem? That dotnet simply doesn't have this functionality?
thufir@dur:~/powershell/webservicex$
thufir@dur:~/powershell/webservicex$ dotnet --version
2.1.4
thufir@dur:~/powershell/webservicex$
thufir@dur:~/powershell/webservicex$ ./dns.ps1
Resolve-DnsName : The term 'Resolve-DnsName' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At /home/thufir/powershell/webservicex/dns.ps1:3 char:1
+ Resolve-DnsName -Name localhost -Type ANY | Format-Table -AutoSize
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Resolve-DnsName:String) , CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
thufir@dur:~/powershell/webservicex$
thufir@dur:~/powershell/webservicex$ cat dns.ps1
#!/usr/bin/pwsh -Command
Resolve-DnsName -Name localhost -Type ANY | Format-Table -AutoSize
thufir@dur:~/powershell/webservicex$
see closed question also, and technet.
shell-script scripting mono .net powershell
add a comment |Â
up vote
2
down vote
favorite
Why is Resolve-DnsName not recognized for PowerShell Core? So far as I recall it works fine with PowerShell itself.
Is this a .NET versus dotnet problem? That dotnet simply doesn't have this functionality?
thufir@dur:~/powershell/webservicex$
thufir@dur:~/powershell/webservicex$ dotnet --version
2.1.4
thufir@dur:~/powershell/webservicex$
thufir@dur:~/powershell/webservicex$ ./dns.ps1
Resolve-DnsName : The term 'Resolve-DnsName' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At /home/thufir/powershell/webservicex/dns.ps1:3 char:1
+ Resolve-DnsName -Name localhost -Type ANY | Format-Table -AutoSize
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Resolve-DnsName:String) , CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
thufir@dur:~/powershell/webservicex$
thufir@dur:~/powershell/webservicex$ cat dns.ps1
#!/usr/bin/pwsh -Command
Resolve-DnsName -Name localhost -Type ANY | Format-Table -AutoSize
thufir@dur:~/powershell/webservicex$
see closed question also, and technet.
shell-script scripting mono .net powershell
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
Why is Resolve-DnsName not recognized for PowerShell Core? So far as I recall it works fine with PowerShell itself.
Is this a .NET versus dotnet problem? That dotnet simply doesn't have this functionality?
thufir@dur:~/powershell/webservicex$
thufir@dur:~/powershell/webservicex$ dotnet --version
2.1.4
thufir@dur:~/powershell/webservicex$
thufir@dur:~/powershell/webservicex$ ./dns.ps1
Resolve-DnsName : The term 'Resolve-DnsName' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At /home/thufir/powershell/webservicex/dns.ps1:3 char:1
+ Resolve-DnsName -Name localhost -Type ANY | Format-Table -AutoSize
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Resolve-DnsName:String) , CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
thufir@dur:~/powershell/webservicex$
thufir@dur:~/powershell/webservicex$ cat dns.ps1
#!/usr/bin/pwsh -Command
Resolve-DnsName -Name localhost -Type ANY | Format-Table -AutoSize
thufir@dur:~/powershell/webservicex$
see closed question also, and technet.
shell-script scripting mono .net powershell
Why is Resolve-DnsName not recognized for PowerShell Core? So far as I recall it works fine with PowerShell itself.
Is this a .NET versus dotnet problem? That dotnet simply doesn't have this functionality?
thufir@dur:~/powershell/webservicex$
thufir@dur:~/powershell/webservicex$ dotnet --version
2.1.4
thufir@dur:~/powershell/webservicex$
thufir@dur:~/powershell/webservicex$ ./dns.ps1
Resolve-DnsName : The term 'Resolve-DnsName' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At /home/thufir/powershell/webservicex/dns.ps1:3 char:1
+ Resolve-DnsName -Name localhost -Type ANY | Format-Table -AutoSize
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Resolve-DnsName:String) , CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
thufir@dur:~/powershell/webservicex$
thufir@dur:~/powershell/webservicex$ cat dns.ps1
#!/usr/bin/pwsh -Command
Resolve-DnsName -Name localhost -Type ANY | Format-Table -AutoSize
thufir@dur:~/powershell/webservicex$
see closed question also, and technet.
shell-script scripting mono .net powershell
asked Feb 18 at 17:02
Thufir
630730
630730
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
From the What's New In PowerShell Core 6.0 documentation, in the "Backwards Compatibility" section:
Most of the modules that ship as part of Windows (for example,
DnsClient, Hyper-V, NetTCPIP, Storage, etc.) and other Microsoft
products including Azure and Office have not been explicitly ported to
.NET Core yet. The PowerShell team is working with these product
groups and teams to validate and port their existing modules to
PowerShell Core. With .NET Standard and CDXML, many of these
traditional Windows PowerShell modules do seem to work in PowerShell
Core, but they have not been formally validated, and they are not
formally supported.
While Powershell Core is GA, it is still very much a work in progress.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
From the What's New In PowerShell Core 6.0 documentation, in the "Backwards Compatibility" section:
Most of the modules that ship as part of Windows (for example,
DnsClient, Hyper-V, NetTCPIP, Storage, etc.) and other Microsoft
products including Azure and Office have not been explicitly ported to
.NET Core yet. The PowerShell team is working with these product
groups and teams to validate and port their existing modules to
PowerShell Core. With .NET Standard and CDXML, many of these
traditional Windows PowerShell modules do seem to work in PowerShell
Core, but they have not been formally validated, and they are not
formally supported.
While Powershell Core is GA, it is still very much a work in progress.
add a comment |Â
up vote
0
down vote
From the What's New In PowerShell Core 6.0 documentation, in the "Backwards Compatibility" section:
Most of the modules that ship as part of Windows (for example,
DnsClient, Hyper-V, NetTCPIP, Storage, etc.) and other Microsoft
products including Azure and Office have not been explicitly ported to
.NET Core yet. The PowerShell team is working with these product
groups and teams to validate and port their existing modules to
PowerShell Core. With .NET Standard and CDXML, many of these
traditional Windows PowerShell modules do seem to work in PowerShell
Core, but they have not been formally validated, and they are not
formally supported.
While Powershell Core is GA, it is still very much a work in progress.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
From the What's New In PowerShell Core 6.0 documentation, in the "Backwards Compatibility" section:
Most of the modules that ship as part of Windows (for example,
DnsClient, Hyper-V, NetTCPIP, Storage, etc.) and other Microsoft
products including Azure and Office have not been explicitly ported to
.NET Core yet. The PowerShell team is working with these product
groups and teams to validate and port their existing modules to
PowerShell Core. With .NET Standard and CDXML, many of these
traditional Windows PowerShell modules do seem to work in PowerShell
Core, but they have not been formally validated, and they are not
formally supported.
While Powershell Core is GA, it is still very much a work in progress.
From the What's New In PowerShell Core 6.0 documentation, in the "Backwards Compatibility" section:
Most of the modules that ship as part of Windows (for example,
DnsClient, Hyper-V, NetTCPIP, Storage, etc.) and other Microsoft
products including Azure and Office have not been explicitly ported to
.NET Core yet. The PowerShell team is working with these product
groups and teams to validate and port their existing modules to
PowerShell Core. With .NET Standard and CDXML, many of these
traditional Windows PowerShell modules do seem to work in PowerShell
Core, but they have not been formally validated, and they are not
formally supported.
While Powershell Core is GA, it is still very much a work in progress.
answered Feb 19 at 21:44
Tim Kennedy
13.4k22949
13.4k22949
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f424994%2fresolve-dnsname-the-term-resolve-dnsname-is-not-recognized-as-the-name-of-a%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password