How To Guides for TCP/IP

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 1 Style Sheet* format (* see Clicklets for more infomation). This document is also available in XHTML 1*XML*HTML 4*HTML 5 Style Sheet*HTML 5 XML*HTML 5 non-XML* XHTML 2* 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.