Internet
  • Affiliates
  • Domain Names
  • Internet Marketing
  • ISPs
  • Podcasts
  • TCP/IP
  • Web
  • XML
  • How To Guides for TCP/IP

    You are currently using a web browser that does not support HTML pages with style sheets. Please try the XHTML 1 or XHTML 1 Mobile version of this page instead.

    TSO commands to look up DNS information

    These commands can be executed directly in the TSO environment or with the TSO interfaces of the ISPF environment.

    Name Server Lookup

    Name Server Lookup

    nslookup >

    Determine the authoritative name servers for a name

    > set q=ns > name

    Change to the authoritative name server

    > server newns

    Look up the IP address for a name

    > set q=a > name

    Look up the name for an IP address

    > set q=ptr > ipaddr nslookup hostname nslookup EZB3042I > ls domain.com EZB3042I > set q=ns EZB3042I > hostname EZB3112I Authoritative answers can be found from: EZB3143I  ns1.domain.com internet address = nnn.nnn.nnn.nnn EZB3143I  ns2.domain.com internet address = nnn.nnn.nnn.nnn EZB3042I > server ns1.domain.com EZB3042I > set q=a EZB3042I > hostname EZB3042I > set q=ptr EZB3042I > ipaddr

    ls lists all of the names in the given domain. set q=ns sets the query type to allow determining the authoritative name server for a given host name. server can be used to set the default server being queried to an authoritative name server, or any other name server. set q=a sets the query type to return the IP address for a given host name. set q=ptr sets the query type to do a reverse lookup, which returns the host name for a given IP addrses.

    Domain Information Groper

    Grope for domain information with DIG

    dig hostname

    Last updated Monday November 13, 2006


    Printer-friendly PDF* format:

    How To Guides for TCP/IP

    This Section

    You are currently viewing this page in XHTML 2 Style Sheet* format (* see Clicklets for more infomation). This document is also available in HTML Style Sheet*XHTML 1* XML* HTML 4*HTML 5 Style Sheet*HTML 5 XML*HTML 5 non-XML* XHTML Mobile* WML Mobile* and printer-friendly PDF* formats. This is accomplished with Single Source Publishing, a content management system that uses templates in XSLT style sheets provided by XML Styles .com to transform the source content for various content delivery channels. There is also RDF* metadata that describes the content of this document.