In the process of setting up a Linux-based network system, a technician needs to determine if there is connectivity to a hostname.
Which command should be used?
Suggested Answer: A
Get Premium Network and Security Foundation (D315) Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
The ping command in Linux is used to check network connectivity to a specific hostname or IP address. It sends ICMP Echo Request packets and measures response times.
nslookup is used for DNS lookups, not connectivity testing.
ifconfig displays network interface configurations but does not test connectivity.
dig is used for detailed DNS queries.
30 comments · newest first
JA
Jamal
6 months ago
I feel like A) ping is the best choice for this question. Simple and effective!
JA
Jamal
6 months ago
D) dig is also good, but it's more complex than ping.
HA
Hassie
6 months ago
True, but nslookup is more for DNS queries, not direct connectivity.
EL
Eliz
6 months ago
But what about B) nslookup? It resolves hostnames too.
GE
Gerald
6 months ago
I agree! Ping is quick and shows if the host is reachable.
CR
Craig
7 months ago
I think the answer is A) ping. It's straightforward for checking connectivity.
MA
Madonna
7 months ago
Wait, can ping really check hostname connectivity? Sounds too simple!
MA
Mariko
7 months ago
I always go with dig for detailed info.
TA
Tamekia
8 months ago
I think nslookup is better for hostname resolution.
FA
Fausto
8 months ago
Definitely use ping for checking connectivity!
BU
Buck
8 months ago
Ping, the classic! It's like knocking on the door to see if anyone's home.
MA
Marylyn
8 months ago
Dig, huh? Sounds like a job for an archaeologist, not a network tech.
RU
Rutha
8 months ago
ifconfig? Really? That's for checking your network interface, not connectivity.
FI
Fidelia
8 months ago
Nah, nslookup is the real deal. Dig into that DNS resolution, baby!
KE
Kenia
9 months ago
Ping is the way to go! Gotta make sure that hostname is up and running.
WI
Willis
9 months ago
I definitely recall using "ping" in similar practice questions, but I wonder if "nslookup" could also be relevant here.
BE
Beula
9 months ago
I might be mixing things up, but I think "dig" is also related to DNS. Is it used for checking connectivity too?
TR
Tracey
9 months ago
I remember practicing with "nslookup" for DNS queries, but I feel like "ping" is more about checking connectivity directly.
RO
Roselle
9 months ago
I think the command to check connectivity is "ping," but I'm not entirely sure if that's the best choice for hostname resolution.
RE
Rebbecca
9 months ago
Ping is the obvious choice here. It's the quickest and simplest way to test if you can reach the hostname. The other options are overkill for this kind of basic connectivity check.
TR
Tracie
10 months ago
Ifconfig? No way, that's for configuring network interfaces, not testing connectivity. I'm pretty sure the answer is either ping or nslookup.
TA
Tandra
10 months ago
ifconfig is outdated for this purpose, right?
FA
Fannie
10 months ago
I think I'd go with dig. It's more powerful than nslookup and can give me more detailed information about the DNS resolution process.
PE
Pearline
11 months ago
Hmm, I'm not sure if ping is the best option here. Wouldn't nslookup be better to resolve the hostname and check the DNS connectivity?
MA
Mabel
11 months ago
I'd use ping to test the connectivity to the hostname. That's the classic way to check if a host is reachable.
LI
Lindsay
5 months ago
I usually stick with ping too; it's just reliable.
DE
Deandrea
5 months ago
True, but ping gives immediate feedback on reachability.
AM
Amie
6 months ago
I prefer using nslookup sometimes for DNS issues.
RE
Remedios
10 months ago
Definitely! It's quick and straightforward.
TO
Tony
10 months ago
I agree, ping is the go-to command for checking connectivity.