<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/styles/XMLStylesDoc_xhtml11_en.xsl"?><!DOCTYPE document SYSTEM "/schemas/XMLStyles10.dtd">
<document xmlns="http://XMLStyles.com/namespaces/styles" xmlns:xst="http://XMLStyles.com/namespaces/styles" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:date="http://exslt.org/dates-and-times">
   <noxml>
      <p xmlns="http://www.w3.org/1999/xhtml"/>
      <!-- You are viewing the source.  The following message should be ignored if you did "View Source" in your browser. -->
      <p xmlns="http://www.w3.org/1999/xhtml">
ATTENTION: XML WEB PAGES NOT SUPPORTED
   If you see this message, your current browser does not support the
   1999 XSLT 1.0 (or later) standard for XML web pages such as this one.
   Please upgrade your browser to a newer version
   that supports 1999 or later standards such as:
      Mozilla Firefox version 1.0.2 or later (GetFirefox -&gt; http://www.GetFirefox.com/)
      Netscape version 8 or later
      Safari version 1.3 or later
      Opera version 9 or later
      Microsoft Internet Explorer (MSIE) version 5 or later
   For further assistance, contact the software vendor for your browser.
   To go to the X<!-- extended HTML -->HTML version of this page click the following link:
<a href="index.html">index.html</a>
      </p>
      <p xmlns="http://www.w3.org/1999/xhtml">&#160;</p>
   </noxml>
   <path>/internet/tcpip/</path>
   <site>How To Guides</site>
   <logo xlink:type="simple" xlink:href="/images/howtohome.jpg" media="screen" width="240" height="34">How To Guides</logo>
   <logo xlink:type="simple" xlink:href="/images/howtoguides.jpg" media="print" width="240" height="34">How To Guides</logo>
   <logo xlink:type="simple" xlink:href="/images/howtoguidesmobile.jpg" media="handheld" width="150" height="17">How To Guides</logo>
   <navigation where="sections">
      <label>How To Guides</label>
      <link xlink:type="simple" xlink:href="/business/index.xml">Business</link>
      <link xlink:type="simple" xlink:href="/computers/index.xml">Computers</link>
      <link xlink:type="simple" xlink:href="/computers/databases/index.xml">Databases</link>
      <link xlink:type="simple" xlink:href="/internet/index.xml">Internet</link>
      <link xlink:type="simple" xlink:href="/mobile/index.xml">Mobile</link>
      <link xlink:type="simple" xlink:href="/money/index.xml">Money</link>
      <link xlink:type="simple" xlink:href="/movies/index.xml">Movies</link>
      <link xlink:type="simple" xlink:href="/computers/os/index.xml">Operating Systems</link>
   </navigation>
   <navigation where="up">
      <link xlink:type="simple" xlink:href="../">Internet</link>
   </navigation>
   <navigation where="subsections">
      <label>Internet</label>
      <link xlink:type="simple" xlink:href="/internet/affiliates/">Affiliates</link>
      <link xlink:type="simple" xlink:href="/internet/domains/">Domain Names</link>
      <link xlink:type="simple" xlink:href="/internet/marketing/">Internet Marketing</link>
      <link xlink:type="simple" xlink:href="/internet/isps/">ISPs</link>
      <link xlink:type="simple" xlink:href="/internet/podcasts/">Podcasts</link>
      <link xlink:type="simple" xlink:href="index.xml">TCP/IP</link>
      <link xlink:type="simple" xlink:href="/internet/web/">Web</link>
      <link xlink:type="simple" xlink:href="/internet/xml/">XML</link>
   </navigation>
   <section id="body" type="body">
      <pages name="index">
         <title>How To Guides for TCP/IP</title>
         <label>TCP/IP</label>
         <navigation where="pages">
            <label>TCP/IP</label>
            <link xlink:type="simple" xlink:href="index.xml">Summary</link>
            <link xlink:type="simple" xlink:href="testconn.xml">Conn. Tests</link>
            <link xlink:type="simple" xlink:href="dnsinfo.xml">DNS Lookups</link>
         </navigation>
         <h1>How To Guides for TCP/IP</h1>
         <page id="N100E6" name="dnsinfo">
            <title>Look up DNS Information</title>
            <label>DNS Lookups</label>
            <description>Commands to look up DNS information.</description>
            <navigation where="up">
               <link xlink:type="simple" xlink:href="index.xml">TCP/IP</link>
            </navigation>
            <h1>TSO commands to look up DNS information</h1>
            <p>These commands can be executed directly in the
               <link xlink:type="simple" xlink:href="/computers/os/ibmzos/tso.xml">TSO</link> environment or with
               the <link xlink:type="simple" xlink:href="/computers/os/ibmzos/ispf.xml#tso">TSO interfaces</link> of
               the <link xlink:type="simple" xlink:href="/computers/os/ibmzos/ispf.xml">ISPF</link> environment.
            </p>
            <subpage id="N10107" name="nslookup">
               <title>Name Server Lookup</title>
               <label>nslookup</label>
               <h1>Name Server Lookup</h1>
               <blockcode>
                  <l>nslookup</l>
                  <l class="output">&gt;</l>
               </blockcode>
               <h1>Determine the authoritative name servers for a name</h1>
               <blockcode>
                  <l>​<span class="output">&gt;</span> set q=ns</l>
                  <l>​<span class="output">&gt;</span> <i>name</i>​</l>
               </blockcode>
               <h1>Change to the authoritative name server</h1>
               <blockcode>
                  <l>​<span class="output">&gt;</span> server <i>newns</i>​</l>
               </blockcode>
               <h1>Look up the IP address for a name</h1>
               <blockcode>
                  <l>​<span class="output">&gt;</span> set q=a</l>
                  <l>​<span class="output">&gt;</span> <i>name</i>​</l>
               </blockcode>
               <h1>Look up the name for an IP address</h1>
               <blockcode>
                  <l>​<span class="output">&gt;</span> set q=ptr</l>
                  <l>​<span class="output">&gt;</span> <i>ipaddr</i>​</l>
               </blockcode>
               <blockcode>
                  <l>nslookup <i>hostname</i>​</l>
                  <l>nslookup</l>
                  <l>​<span class="output">EZB3042I &gt; </span>ls <i>domain.com</i>​</l>
                  <l>​<span class="output">EZB3042I &gt; </span>set q=ns</l>
                  <l>​<span class="output">EZB3042I &gt; </span>​<i>hostname</i>​</l>
                  <l>​<span class="output">EZB3112I Authoritative answers can be found from:</span>​</l>
                  <l>​<span class="output">EZB3143I  <i>ns1.domain.com</i> internet address = <i>nnn.nnn.nnn.nnn</i>
                     </span>​</l>
                  <l>​<span class="output">EZB3143I  <i>ns2.domain.com</i> internet address = <i>nnn.nnn.nnn.nnn</i>
                     </span>​</l>
                  <l>​<span class="output">EZB3042I &gt; </span>server <i>ns1.domain.com</i>​</l>
                  <l>​<span class="output">EZB3042I &gt; </span>set q=a</l>
                  <l>​<span class="output">EZB3042I &gt; </span>​<i>hostname</i>​</l>
                  <l>​<span class="output">EZB3042I &gt; </span>set q=ptr</l>
                  <l>​<span class="output">EZB3042I &gt; </span>​<i>ipaddr</i>​</l>
               </blockcode>
               <p>
                  <code>ls</code> lists all of the names in the given domain.
                  <code>set q=ns</code> sets the query type to allow
                  determining the authoritative name server for a given host name.
                  <code>server</code> can be used to set the default server
                  being queried to an authoritative name server, or any other name server.
                  <code>set q=a</code> sets the query type
                  to return the IP address for a given host name.
                  <code>set q=ptr</code> sets the query type to do a
                  reverse lookup, which returns the host name for a given IP addrses.
               </p>
            </subpage>
            <subpage id="N101CA" name="dig">
               <title>Domain Information Groper</title>
               <label>dig</label>
               <h1>Grope for domain information with DIG</h1>
               <blockcode>
                  <l>dig <i>hostname</i>​</l>
               </blockcode>
            </subpage>
            <updated local="2006-11-13">Monday November 13, 2006</updated>
         </page>
      </pages>
   </section>
   <copyright>Copyright © 2006 How To Guides .com. Alteration of content, including addition of any function such as hypertext links or pop-up advertising, or interference with the hypertext links or other functions of this site is expressly prohibited.</copyright>
   <disclaimer>All information, links, forms, applications and other items on this site or obtained from it are provided <b>AS IS</b>, WITHOUT WARRANTY OF ANY KIND EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.</disclaimer>
   <ids urchin="UA-779578-2"/>
</document>

