Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
quick-refs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael Alan Marsh
quick-refs
Commits
73239e95
Commit
73239e95
authored
6 years ago
by
Michael Marsh
Browse files
Options
Downloads
Patches
Plain Diff
added some host lookup commands
parent
35b50259
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
network.pdf
+0
-0
0 additions, 0 deletions
network.pdf
network.txt
+36
-0
36 additions, 0 deletions
network.txt
with
36 additions
and
0 deletions
network.pdf
+
0
−
0
View file @
73239e95
No preview for this file type
This diff is collapsed.
Click to expand it.
network.txt
+
36
−
0
View file @
73239e95
...
@@ -251,3 +251,39 @@ flag. The way `traceroute` works is that it sends a small packet with
...
@@ -251,3 +251,39 @@ flag. The way `traceroute` works is that it sends a small packet with
a very small TTL flag, and waits to see the ICMP Time Exceeded
a very small TTL flag, and waits to see the ICMP Time Exceeded
message, the sender of which is TTL hops away. Note that this is not
message, the sender of which is TTL hops away. Note that this is not
reliable, as paths can vary from packet to packet.
reliable, as paths can vary from packet to packet.
Finding Other Hosts
-------------------
Your simplest go-to for looking up a host's IP address given its name
is to use the `host` command:
host gizmonic.cs.umd.edu
On older systems, you would use
nslookup gizmonic.cs.umd.edu
This has been deprecated on newer systems, so you should always use
`host` when available. If you want more detail about the query and
response, you can use `dig` instead:
dig gizmonic.cs.umd.edu
All of these have a number of options available to you to control what
kinds of queries you perform. They are also able to perform *reverse
lookups*. That is, given an IP address, they will tell you the
(canonical) hostname:
host 128.8.130.3
dig -x 128.8.130.3
You can also find out who registered a domain with `whois`:
whois umd.edu
You can even find out who owns the subnet an address is in:
whois 128.8.130.3
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment