nslookup
This command queries the Domain Name System (DNS) to obtain domain name mapping or IP address mapping, using the name server look up tool.
Syntax
nslookup <Hostname> {force|source|type}
Command |
Description |
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Hostname |
Defines the host name. |
|||||||||
force |
Enables the device to use the default DNS servers (primary and secondary) for nslookup. It only uses the default DNS servers when all other DNS servers fail as described in chronological order:
|
|||||||||
source voip interface {name|vlan} {force|type} |
(Optional) Defines an IP interface name or VLAN ID (1 -3999). |
|||||||||
type {a|aaaa|cname |naptr|srv} |
(Optional) Defines the type of DNS query. |
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 |
■ | Default DNS servers: configure network > dns settings > dns-default-primary-server-ip |
Command Mode
Basic and Privileged User
Example
■ | This example looks up the IP address of Google: |
nslookup google.com google.com resolved to 216.58.213.174