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

The name of the pictureThe name of the pictureThe name of the pictureClash 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.







share|improve this question
























    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.







    share|improve this question






















      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.







      share|improve this question












      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.









      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 18 at 17:02









      Thufir

      630730




      630730




















          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.






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );








             

            draft saved


            draft discarded


















            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






























            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.






            share|improve this answer
























              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.






              share|improve this answer






















                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.






                share|improve this answer












                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.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 19 at 21:44









                Tim Kennedy

                13.4k22949




                13.4k22949






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    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













































































                    Popular posts from this blog

                    Peggy Mitchell

                    Palaiologos

                    The Forum (Inglewood, California)