nslookup

This command queries the Domain Name System (DNS) to obtain domain name mapping or IP address mapping.

Syntax

nslookup indent.me|<Hostname> [source voip interface vlan <VLAN ID>] [type {a|aaaa|naptr|srv}

Command

Description

Hostname

Defines the host name.

indent.me

Displays the global IP address of the device that is sent in response to an ident.me request.

Note: To configure the interface through which the device sends the global IP address, use the following command:

MSBR: debug get-global-ip source data [source-address] interface <Interface><Number>
Mediant 500Li, Mediant 800Ci, and MP-5xx: debug get-global-ip network-source <Interface Name>

source voip interface vlan

(Optional) Configures a VLAN ID (1 -3999).

type

(Optional) Defines the type of DNS:

a (Use a Host address)
aaaa (Use an IPv6 Address)
naptr (Use NAPTR - Naming Authority PoinTeR)
srv (Use Server selection)

Note

The DNS server must be configured for this command to function. The DNS server can be configured using:

Internal DNS table: configure network > dns dns-to-ip
Internal SRV table : configure network > dns srv2ip
IP Interfaces table: configure network > interface network-if

Command Mode

Basic and Privileged User

Example

The following displays an example of an nslookup for Google:

nslookup google.com
google.com resolved to 216.58.213.174

The following displays an example of an nslookup for an indent.me request:

nslookup ident.me 
ident.me resolved to 49.12.234.183