Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Ping: The ping command is one of the most often used networking
utilities for troubleshooting network problems.
You can use the ping command to test the availability of a networking
device (usually a computer) on a network.
When you ping a device you send that device a short message, which it
then sends back (the echo).
If you receive a reply then the device is working OK , if you don’t then:
The screen shot below shows how to use the command with an IP
address.
Nslookup:
nslookup is the name of a program that lets an Internet server
administrator or any computer user enter a host name (for example,
"whatis.com") and find out the corresponding IP address or domain
name system (DNS) record. The user can also enter a command for it to
do a reverse DNS lookup and find the host name for an IP address that is
specified.
Uses of nslookup
/name: queries the current name server for the specified name
/server name: sets the current name server to the server the user
specifies
/root: sets the root server as the current server
/set type=x: specifies the type of records to be displayed, such as
A, CNAME, MX, NS, PTR or SOA. Specify ANY to display all records.
/set debug: turns on debug mode, which displays detailed
information about each query
/set recurse: tells the DNS name server to query other servers if it
does not have the information
/exit: exits nslookup and returns the user to a command prompt
Host: host is a simple utility for performing DNS lookups. It is normally
used to convert names to IP addresses and vice versa.
EXAMPLE-1:
Making simple query for any site say google.com using sitename
$ host google.com
output:
EXAMPLE-2:
$ host 172.217.26.174
output:
174.26.217.172.in-addr.arpa domain name pointer
maa03s22-in-f14.1e100.net.
EXAMPLE-3:
$ host -n -t mx google.com
output:
# host -n -t mx google.com
google.com mail is handled by 10 aspmx.l.google.com.
google.com mail is handled by 50 alt4.aspmx.l.google.com.
google.com mail is handled by 40 alt3.aspmx.l.google.com.
google.com mail is handled by 20 alt1.aspmx.l.google.com.
google.com mail is handled by 30 alt2.aspmx.l.google.com.
EXAMPLE-4:
$ host -t ns google.com
output:
# host -t ns google.com
google.com name server ns3.google.com.
google.com name server ns1.google.com.
google.com name server ns2.google.com.
google.com name server ns4.google.com.
ARP: ARP stands for Address Resolution Protocol. This protocol is used
by network nodes to match IP addresses to MAC addresses. The
original specification was RFC 826. That has since been updated by RFC
5227, and RFC 5494.
Ifconfig
. kill -l :To display all the available signals you can use below command
option:
Syntax:
kill -l
2. kill pid : To show how to use a PID with the kill command.
Syntax:
$kill pid
Syntax:
kill {-signal | -s signal} pid
Syntax: