Networking Commands
Networking Commands
• Syntax:
• nslookup [option]
Options of nslookup command:
• nslookup google.com :
nslookup followed by the domain name will display the “A Record” (IP
Address) of the domain. Use this command to find the address record
for a domain. It queries to domain name servers and gets the details.
• nslookup 192.168.0.10: Reverse DNS lookup You can also do the
reverse DNS look-up by providing the IP Address as an argument to
nslookup.
• nslookup -type=any google.com : Lookup for any record
We can also view all the available DNS records using the -type=any
option.
• nslookup -type=ns google.com : Lookup for an ns record
NS (Name Server) record maps a domain name to a list of DNS servers
authoritative for that domain. It will output the name serves which
are associated with the given domain.
route Command
• Purpose
• Manually manipulates the routing tables.
• Description
• The route command allows you to make manual entries into the
network routing tables. The route command distinguishes between
routes to hosts and routes to networks by interpreting the network
address of the Destination variable, which can be specified either by
symbolic name or numeric address. The route command resolves all
symbolic names into addresses, using either the /etc/hosts file or the
network name server.
• For a computer with more than one interface and that's configured to
work as a router, the routing table is often a major source of trouble.
Setting up the routing table properly is a key part of configuring a
router to work.
• Displaying the routing table
• To display the routing table (both IPv4 and IPv6) in Windows, use the
route print command. In Unix/Linux, you can just use route without
any command line switches. The output displayed by the Windows
and Unix/Linux commands are similar. Here's an example from a
typical Windows client computer:
• C:\>route print
• ==================================================================
• Interface List
• 8 ...00 12 3f a7 17 ba ...... Intel(R) PRO/100 VE Network Connection
• 1 ........................... Software Loopback Interface 1
• 9 ...02 00 54 55 4e 01 ...... Teredo Tunneling Pseudo-Interface
• 10 ...00 00 00 00 00 00 00 e0 isatap.{D0F85930-01E2-402F-B0FC-
• 31DFF887F06F}
• ==================================================================
• IPv4 Route Table
• ==================================================================
• Active Routes:
• Network Netmask Gateway Interface Metric
• Destination
• 0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.110 276
• 127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
• 127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
• 127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
• 192.168.1.0 255.255.255.0 On-link 192.168.1.110 276
• 192.168.1.110 255.255.255.255 On-link 192.168.1.110 276
• 192.168.1.255 255.255.255.255 On-link 192.168.1.110 276
• 224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
• 224.0.0.0 240.0.0.0 On-link 192.168.1.110 276
• 255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
• 255.255.255.255 255.255.255.255 On-link 192.168.1.110 276
WHOIS command
• WHOIS is a TCP-based query and response protocol that is commonly
used to provide information services to Internet users. It returns
information about the registered Domain Names, an IP address block,
Name Servers and a much wider range of information services.
• WHOIS is an Internet service and utility that shows additional
information about a domain, the registrar of the domain, and the
IP address. When trying to come up with a domain name for a new
website, performing a WHOIS lets you determine if that name is
registered or available.
• When a domain is registered though a domain name registrar, ICANN
requires that the registration information be made publicly available.
The WHOIS record must include the registrars name, the creation
date, updated date, and expiration date. Other information can
include the name servers and the registrant, admin, and technical
contact information.
• How to perform a domain WHOIS search
• When a WHOIS search is performed, the service queries several
domain registrars since there is no central database to display the
final results. A WHOIS can be done through the command line or an
online service. Below is a brief overview of how to use each of the
different WHOIS options.whois www.google.com
PathPing command