How can I find the LDAP server in the DNS on Windows?Can't log in using second domain controller when first DC is unreachablenslookup for SRV records (or any non-A records) in non-interactive modeDNS server refusing requests for _mcdcs lookupsUnable to change the workgroup of the server to domain nameSamba4 Internal DNS with DHCP ServerHow to change hostname without reboot?An Active directory domain controller could not be contactedCan't connect computer to domainWrong IP when issuing nslookup - Windows DNS ServerCMD LDAP error Cannot connect to the LDAP server but connect success by c# code

What is the origin of Scooby-Doo's name?

Can any NP-Complete Problem be solved using at most polynomial space (but while using exponential time?)

How do I set an alias to a terminal line?

Trainee keeps missing deadlines for independent learning

Relationship between woodwinds and brass in a marching band?

How does the spell Remove Curse interact with a Sword of Vengeance?

What can I do with a research project that is my university’s intellectual property?

Why do textbooks often include the solutions to odd or even numbered problems but not both?

Do I have any obligations to my PhD supervisor's requests after I have graduated?

Employer wants to use my work email account after I quit

Minimum distance between holes in inner tube

If I wouldn't want to read the story, is writing it still a good idea?

How much will studying magic in an academy cost?

Can humans ever directly see a few photons at a time? Can a human see a single photon?

Why do even high-end cameras often still include normal (non-cross-type) AF sensors?

Is it illegal to withhold someone's passport and green card in California?

Is a single radon-daughter atom in air a solid?

Why does Linux list NVMe drives as /dev/nvme0 instead of /dev/sda?

What does it mean to "control target player"?

What does the hyphen "-" mean in "tar xzf -"?

Why does the Saturn V have standalone inter-stage rings?

What's currently blocking the construction of the wall between Mexico and the US?

How does DC work with natural 20?

Why do all the teams that I have worked with always finish a sprint without completion of all the stories?



How can I find the LDAP server in the DNS on Windows?


Can't log in using second domain controller when first DC is unreachablenslookup for SRV records (or any non-A records) in non-interactive modeDNS server refusing requests for _mcdcs lookupsUnable to change the workgroup of the server to domain nameSamba4 Internal DNS with DHCP ServerHow to change hostname without reboot?An Active directory domain controller could not be contactedCan't connect computer to domainWrong IP when issuing nslookup - Windows DNS ServerCMD LDAP error Cannot connect to the LDAP server but connect success by c# code






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








33















For Linux, this command should return the DNS record for the LDAP server



host -t srv _ldap._tcp.DOMAINNAME


(found at Authenticating from Java (Linux) to Active Directory using LDAP WITHOUT servername)



How could I get the same on the Windows command line using nslookup?



I tried



nslookup -type srv _ldap._tcp.DOMAINNAME


(following http://support.microsoft.com/kb/200525), would this be correct?










share|improve this question






























    33















    For Linux, this command should return the DNS record for the LDAP server



    host -t srv _ldap._tcp.DOMAINNAME


    (found at Authenticating from Java (Linux) to Active Directory using LDAP WITHOUT servername)



    How could I get the same on the Windows command line using nslookup?



    I tried



    nslookup -type srv _ldap._tcp.DOMAINNAME


    (following http://support.microsoft.com/kb/200525), would this be correct?










    share|improve this question


























      33












      33








      33


      21






      For Linux, this command should return the DNS record for the LDAP server



      host -t srv _ldap._tcp.DOMAINNAME


      (found at Authenticating from Java (Linux) to Active Directory using LDAP WITHOUT servername)



      How could I get the same on the Windows command line using nslookup?



      I tried



      nslookup -type srv _ldap._tcp.DOMAINNAME


      (following http://support.microsoft.com/kb/200525), would this be correct?










      share|improve this question
















      For Linux, this command should return the DNS record for the LDAP server



      host -t srv _ldap._tcp.DOMAINNAME


      (found at Authenticating from Java (Linux) to Active Directory using LDAP WITHOUT servername)



      How could I get the same on the Windows command line using nslookup?



      I tried



      nslookup -type srv _ldap._tcp.DOMAINNAME


      (following http://support.microsoft.com/kb/200525), would this be correct?







      windows domain-name-system ldap nslookup






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 23 '17 at 12:41









      Community

      1




      1










      asked Jun 22 '10 at 10:17









      mjnmjn

      3902626




      3902626




















          6 Answers
          6






          active

          oldest

          votes


















          43














          You need to use an = after -type:



          nslookup -type=srv _ldap._tcp.DOMAINNAME





          share|improve this answer


















          • 1





            still can't get

            – ilhnctn
            Mar 13 '13 at 7:09


















          6














          In cmd shell:



          nslookup 
          set types=all
          _ldap._tcp





          share|improve this answer




















          • 2





            Or, in one line nslookup -type=all _ldap._tcp. Wanted so I could redirect output to a file.

            – dsz
            Jul 27 '16 at 0:58


















          3














          How to verify Service Location (SRV) locator resource records for a domain controller after you install the Active Directory directory service.



          Use Nslookup to verify the SRV records, follow these steps:



          1. Click Start, and then click Run.


          2. In the Open box, type cmd.


          3. Type nslookup, and then press ENTER.


          4. Type set type=all, and then press ENTER.


          5. Type _ldap._tcp.dc._msdcs.Domain_Name, where Domain_Name is the name of your domain, and then press ENTER.






          share|improve this answer






























            1














            None of the above worked for me, I got every time an error like this (I've tried with all the combinations I can thing of with the domain names):



            *** UnKnown can't find _ldap._tcp: Non-existent domain



            So another google search pointed to this method:



            nltest /dclist:yourdomain.com



            and this results in the list of the different servers in my network. Hope this saves an additional 2 minutes to someone else.






            share|improve this answer






























              0














              Windows cmd prompt uses "query" instead of "type" for some forsaken reason. Interactive nslookup still uses "set type=srv".



              nslookup -query=srv _ldap._tcp.DOMAINNAME



              EDIT: while "query" works it seems that I am 100% wrong. "type" works too.






              share|improve this answer

























              • Are you sure about that? nslookup -type=srv _ldap._tcp.DOMAINNAME works as expected on Windows.

                – jscott
                Sep 7 '14 at 4:29


















              0














              "nslookup -query=srv _ldap._tcp.DOMAINNAME" worked for me, tried nslookup -type=srv _ldap._tcp.DOMAINNAME and didn't work.



              Server 2008 R2






              share|improve this answer

























                Your Answer








                StackExchange.ready(function()
                var channelOptions =
                tags: "".split(" "),
                id: "2"
                ;
                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',
                autoActivateHeartbeat: false,
                convertImagesToLinks: true,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                bindNavPrevention: true,
                postfix: "",
                imageUploader:
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                ,
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                );



                );













                draft saved

                draft discarded


















                StackExchange.ready(
                function ()
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f153526%2fhow-can-i-find-the-ldap-server-in-the-dns-on-windows%23new-answer', 'question_page');

                );

                Post as a guest















                Required, but never shown

























                6 Answers
                6






                active

                oldest

                votes








                6 Answers
                6






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                43














                You need to use an = after -type:



                nslookup -type=srv _ldap._tcp.DOMAINNAME





                share|improve this answer


















                • 1





                  still can't get

                  – ilhnctn
                  Mar 13 '13 at 7:09















                43














                You need to use an = after -type:



                nslookup -type=srv _ldap._tcp.DOMAINNAME





                share|improve this answer


















                • 1





                  still can't get

                  – ilhnctn
                  Mar 13 '13 at 7:09













                43












                43








                43







                You need to use an = after -type:



                nslookup -type=srv _ldap._tcp.DOMAINNAME





                share|improve this answer













                You need to use an = after -type:



                nslookup -type=srv _ldap._tcp.DOMAINNAME






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jun 22 '10 at 10:36









                Phil RossPhil Ross

                5,62922018




                5,62922018







                • 1





                  still can't get

                  – ilhnctn
                  Mar 13 '13 at 7:09












                • 1





                  still can't get

                  – ilhnctn
                  Mar 13 '13 at 7:09







                1




                1





                still can't get

                – ilhnctn
                Mar 13 '13 at 7:09





                still can't get

                – ilhnctn
                Mar 13 '13 at 7:09













                6














                In cmd shell:



                nslookup 
                set types=all
                _ldap._tcp





                share|improve this answer




















                • 2





                  Or, in one line nslookup -type=all _ldap._tcp. Wanted so I could redirect output to a file.

                  – dsz
                  Jul 27 '16 at 0:58















                6














                In cmd shell:



                nslookup 
                set types=all
                _ldap._tcp





                share|improve this answer




















                • 2





                  Or, in one line nslookup -type=all _ldap._tcp. Wanted so I could redirect output to a file.

                  – dsz
                  Jul 27 '16 at 0:58













                6












                6








                6







                In cmd shell:



                nslookup 
                set types=all
                _ldap._tcp





                share|improve this answer















                In cmd shell:



                nslookup 
                set types=all
                _ldap._tcp






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited May 21 '15 at 18:42









                BE77Y

                2,39031422




                2,39031422










                answered May 21 '15 at 15:43









                MattieuBGepiMattieuBGepi

                6113




                6113







                • 2





                  Or, in one line nslookup -type=all _ldap._tcp. Wanted so I could redirect output to a file.

                  – dsz
                  Jul 27 '16 at 0:58












                • 2





                  Or, in one line nslookup -type=all _ldap._tcp. Wanted so I could redirect output to a file.

                  – dsz
                  Jul 27 '16 at 0:58







                2




                2





                Or, in one line nslookup -type=all _ldap._tcp. Wanted so I could redirect output to a file.

                – dsz
                Jul 27 '16 at 0:58





                Or, in one line nslookup -type=all _ldap._tcp. Wanted so I could redirect output to a file.

                – dsz
                Jul 27 '16 at 0:58











                3














                How to verify Service Location (SRV) locator resource records for a domain controller after you install the Active Directory directory service.



                Use Nslookup to verify the SRV records, follow these steps:



                1. Click Start, and then click Run.


                2. In the Open box, type cmd.


                3. Type nslookup, and then press ENTER.


                4. Type set type=all, and then press ENTER.


                5. Type _ldap._tcp.dc._msdcs.Domain_Name, where Domain_Name is the name of your domain, and then press ENTER.






                share|improve this answer



























                  3














                  How to verify Service Location (SRV) locator resource records for a domain controller after you install the Active Directory directory service.



                  Use Nslookup to verify the SRV records, follow these steps:



                  1. Click Start, and then click Run.


                  2. In the Open box, type cmd.


                  3. Type nslookup, and then press ENTER.


                  4. Type set type=all, and then press ENTER.


                  5. Type _ldap._tcp.dc._msdcs.Domain_Name, where Domain_Name is the name of your domain, and then press ENTER.






                  share|improve this answer

























                    3












                    3








                    3







                    How to verify Service Location (SRV) locator resource records for a domain controller after you install the Active Directory directory service.



                    Use Nslookup to verify the SRV records, follow these steps:



                    1. Click Start, and then click Run.


                    2. In the Open box, type cmd.


                    3. Type nslookup, and then press ENTER.


                    4. Type set type=all, and then press ENTER.


                    5. Type _ldap._tcp.dc._msdcs.Domain_Name, where Domain_Name is the name of your domain, and then press ENTER.






                    share|improve this answer













                    How to verify Service Location (SRV) locator resource records for a domain controller after you install the Active Directory directory service.



                    Use Nslookup to verify the SRV records, follow these steps:



                    1. Click Start, and then click Run.


                    2. In the Open box, type cmd.


                    3. Type nslookup, and then press ENTER.


                    4. Type set type=all, and then press ENTER.


                    5. Type _ldap._tcp.dc._msdcs.Domain_Name, where Domain_Name is the name of your domain, and then press ENTER.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Sep 28 '15 at 18:51









                    jim31415jim31415

                    1464




                    1464





















                        1














                        None of the above worked for me, I got every time an error like this (I've tried with all the combinations I can thing of with the domain names):



                        *** UnKnown can't find _ldap._tcp: Non-existent domain



                        So another google search pointed to this method:



                        nltest /dclist:yourdomain.com



                        and this results in the list of the different servers in my network. Hope this saves an additional 2 minutes to someone else.






                        share|improve this answer



























                          1














                          None of the above worked for me, I got every time an error like this (I've tried with all the combinations I can thing of with the domain names):



                          *** UnKnown can't find _ldap._tcp: Non-existent domain



                          So another google search pointed to this method:



                          nltest /dclist:yourdomain.com



                          and this results in the list of the different servers in my network. Hope this saves an additional 2 minutes to someone else.






                          share|improve this answer

























                            1












                            1








                            1







                            None of the above worked for me, I got every time an error like this (I've tried with all the combinations I can thing of with the domain names):



                            *** UnKnown can't find _ldap._tcp: Non-existent domain



                            So another google search pointed to this method:



                            nltest /dclist:yourdomain.com



                            and this results in the list of the different servers in my network. Hope this saves an additional 2 minutes to someone else.






                            share|improve this answer













                            None of the above worked for me, I got every time an error like this (I've tried with all the combinations I can thing of with the domain names):



                            *** UnKnown can't find _ldap._tcp: Non-existent domain



                            So another google search pointed to this method:



                            nltest /dclist:yourdomain.com



                            and this results in the list of the different servers in my network. Hope this saves an additional 2 minutes to someone else.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Apr 12 '18 at 6:41









                            CrossCross

                            17527




                            17527





















                                0














                                Windows cmd prompt uses "query" instead of "type" for some forsaken reason. Interactive nslookup still uses "set type=srv".



                                nslookup -query=srv _ldap._tcp.DOMAINNAME



                                EDIT: while "query" works it seems that I am 100% wrong. "type" works too.






                                share|improve this answer

























                                • Are you sure about that? nslookup -type=srv _ldap._tcp.DOMAINNAME works as expected on Windows.

                                  – jscott
                                  Sep 7 '14 at 4:29















                                0














                                Windows cmd prompt uses "query" instead of "type" for some forsaken reason. Interactive nslookup still uses "set type=srv".



                                nslookup -query=srv _ldap._tcp.DOMAINNAME



                                EDIT: while "query" works it seems that I am 100% wrong. "type" works too.






                                share|improve this answer

























                                • Are you sure about that? nslookup -type=srv _ldap._tcp.DOMAINNAME works as expected on Windows.

                                  – jscott
                                  Sep 7 '14 at 4:29













                                0












                                0








                                0







                                Windows cmd prompt uses "query" instead of "type" for some forsaken reason. Interactive nslookup still uses "set type=srv".



                                nslookup -query=srv _ldap._tcp.DOMAINNAME



                                EDIT: while "query" works it seems that I am 100% wrong. "type" works too.






                                share|improve this answer















                                Windows cmd prompt uses "query" instead of "type" for some forsaken reason. Interactive nslookup still uses "set type=srv".



                                nslookup -query=srv _ldap._tcp.DOMAINNAME



                                EDIT: while "query" works it seems that I am 100% wrong. "type" works too.







                                share|improve this answer














                                share|improve this answer



                                share|improve this answer








                                edited Sep 9 '14 at 9:13

























                                answered Sep 7 '14 at 4:14









                                AndyAndy

                                9661610




                                9661610












                                • Are you sure about that? nslookup -type=srv _ldap._tcp.DOMAINNAME works as expected on Windows.

                                  – jscott
                                  Sep 7 '14 at 4:29

















                                • Are you sure about that? nslookup -type=srv _ldap._tcp.DOMAINNAME works as expected on Windows.

                                  – jscott
                                  Sep 7 '14 at 4:29
















                                Are you sure about that? nslookup -type=srv _ldap._tcp.DOMAINNAME works as expected on Windows.

                                – jscott
                                Sep 7 '14 at 4:29





                                Are you sure about that? nslookup -type=srv _ldap._tcp.DOMAINNAME works as expected on Windows.

                                – jscott
                                Sep 7 '14 at 4:29











                                0














                                "nslookup -query=srv _ldap._tcp.DOMAINNAME" worked for me, tried nslookup -type=srv _ldap._tcp.DOMAINNAME and didn't work.



                                Server 2008 R2






                                share|improve this answer



























                                  0














                                  "nslookup -query=srv _ldap._tcp.DOMAINNAME" worked for me, tried nslookup -type=srv _ldap._tcp.DOMAINNAME and didn't work.



                                  Server 2008 R2






                                  share|improve this answer

























                                    0












                                    0








                                    0







                                    "nslookup -query=srv _ldap._tcp.DOMAINNAME" worked for me, tried nslookup -type=srv _ldap._tcp.DOMAINNAME and didn't work.



                                    Server 2008 R2






                                    share|improve this answer













                                    "nslookup -query=srv _ldap._tcp.DOMAINNAME" worked for me, tried nslookup -type=srv _ldap._tcp.DOMAINNAME and didn't work.



                                    Server 2008 R2







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Jun 5 at 21:02









                                    JimJim

                                    1




                                    1



























                                        draft saved

                                        draft discarded
















































                                        Thanks for contributing an answer to Server Fault!


                                        • Please be sure to answer the question. Provide details and share your research!

                                        But avoid


                                        • Asking for help, clarification, or responding to other answers.

                                        • Making statements based on opinion; back them up with references or personal experience.

                                        To learn more, see our tips on writing great answers.




                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function ()
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f153526%2fhow-can-i-find-the-ldap-server-in-the-dns-on-windows%23new-answer', 'question_page');

                                        );

                                        Post as a guest















                                        Required, but never shown





















































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown

































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown







                                        Popular posts from this blog

                                        Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

                                        Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

                                        What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company