Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Use dig to inspect DNS records and resolver responses, whois to look up domain or IP registration data, and ping to test ICMP reachability and round-trip time. Run them together: a DNS response tells you how a name resolves, while ping tells you whether ICMP packets return. Neither command confirms that an application such as HTTPS is working.

What each command actually tests

These utilities answer different questions at different layers. Keeping those layers separate prevents a common troubleshooting mistake: treating a successful ping as proof that a website is healthy, or treating a missing DNS answer as proof that a server is offline.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Command Data layer Main target What it can establish
dig DNS resource records and resolver responses A name, record type and optional DNS server How a resolver answered a DNS query, including status, flags and response sections
whois Registration or allocation directory data A domain, IP address, AS or another registry object What the selected RFC 3912 database publishes about that object
ping ICMP host reachability and timing A hostname or IP address Whether ICMP echo replies returned, how many were lost and the measured round-trip times

A name can resolve correctly while its host blocks ICMP. Conversely, a host can answer ping while its web service is down. Use a DNS query first, then a reachability test, and finally an application-specific check when the problem concerns a service.

Check that Ubuntu has the tools

Use the executables supplied for your Ubuntu release and verify that each one is available before troubleshooting:

#1 Best Overall
Sale
Compressed Air Duster,130000RPM Super Power Cordless Air Duster,Rechargeable Brushless Blower,3 Gear Adjustable Blower with LED Light,Dust Remover for Computer/House/Outdoor/Car
  • Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
  • With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
  • Wide Application: attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
  • Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
  • Economical &Reusable: Built durable materials with a long-lasting battery,our CAGIWIRU air duster it's a sustainable alternative to disposable air cans.
dig -v
whois --version
ping -V

If a command does not accept its version option, run its help output instead. Package names, command versions and option details can vary by Ubuntu release, so read the manpage installed on the system you are diagnosing:

man dig
man whois
man ping

The commands below assume the corresponding Ubuntu packages are installed. A version string is release-specific; record the Ubuntu release and the date when you report one so another administrator can reproduce the same behavior.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Query DNS records with dig

The Ubuntu BIND9 dig utility is designed for interrogating DNS name servers. Its documented basic form is dig [@server] name type. If you omit @server, it uses the name servers listed in /etc/resolv.conf. If you omit the type, the default query is for an A record.

Run a basic lookup

dig example.com

The response is divided into sections. During diagnosis, inspect the status line, flags, answer section, authority section and additional section rather than looking only for an address. The status indicates whether the resolver completed the query; flags describe how the response was handled; the sections show the records returned and any related delegation or supplementary data.

Ask for a particular record type

dig example.com A
dig example.com AAAA
dig example.com MX

An A query asks for IPv4 addresses, AAAA asks for IPv6 addresses, and MX asks for mail-exchange records. Specifying the type avoids confusing an empty result for one record class with a failure of DNS as a whole.

Rank #2
EVEO® Screen Cleaner Spray Kit (Streak-Free) TV Screen Cleaner for Smart TV, Lcd, LEd, Oled | Computer Screen Cleaner Spray and Wipe Microfiber Cloth - TV, Monitor, Laptop, iPad, Car - 6.7oz 1 Pack
  • Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
  • Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
  • Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
  • Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
  • Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth

Compare resolvers

dig @1.1.1.1 example.com A

The @1.1.1.1 form sends the query to that explicitly selected DNS server instead of the resolvers in /etc/resolv.conf. Compare this output with an unqualified query to determine whether the result differs by resolver. A difference can identify a local resolver, forwarding or DNS-policy issue, but it does not by itself prove which answer is globally correct.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Perform a reverse lookup

dig -x 192.0.2.10

-x requests reverse-lookup behavior for an IP address. Reverse DNS is a separate namespace from the forward A or AAAA query, so a missing PTR result does not mean that forward resolution is broken.

Follow delegation from the root

dig +trace example.com

+trace follows the delegation path from the DNS root toward the name’s authoritative servers. This is useful when a recursive resolver gives an unexpected answer or when you need to see where a delegation stops. Because the trace walks the hierarchy instead of simply asking your configured resolver for its final result, compare it with a normal query rather than treating it as a replacement for one.

Reduce the output for scripts or quick checks

dig +short example.com A
dig +noall +answer example.com MX

+short prints a compact result. +noall +answer suppresses the other display sections and leaves the answer section visible. These formats are convenient for a quick comparison, but use the full response when investigating status, flags, authority information or additional records.

Use whois for registration and allocation context

whois searches for an object in an RFC 3912 directory database. It is not a DNS query tool: it does not tell you which address a resolver returned. Instead, it can expose registration or allocation information for a domain, IP address, autonomous-system object or another object supported by the selected database.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black | LED mouse pad with 14 lighting modes, covers keyboard & mouse, anti-slip rubber base, waterproof surface, USB powered
  • 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
  • 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
  • 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
  • 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
  • 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.

Look up a domain

whois example.com

The client attempts to guess a suitable server for the object. The returned fields depend on the registry or database that answered. Privacy redaction and server-specific policies can leave contact, ownership or other fields absent, so an incomplete record is not automatically evidence of a failed query.

Look up an IP address

whois 192.0.2.10

An IP lookup can provide allocation context from the relevant directory. It does not test whether the address is currently reachable and does not replace a reverse-DNS query with dig -x.

Select a server explicitly

whois -h whois.example.net example.com

-h (also written --host) directs the client to a particular WHOIS server. Explicit selection is useful when the default guess is unsuitable or when you need to compare the policies of two databases. Interpret the result in the context of that server; WHOIS has no single response format shared by every registry.

Ask IANA first and follow its referral

whois -I example.com

With -I, the client queries whois.iana.org first and then follows the authoritative referral. This can clarify which registry should answer a domain query. Referral behavior is directory-related and should not be confused with DNS delegation, which is what dig +trace displays.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Test reachability and latency with ping

ping uses the ICMP protocol’s mandatory ECHO_REQUEST datagram to elicit an ECHO_RESPONSE from a host or gateway. It reports replies, packet loss and round-trip timing, and supports both IPv4 and IPv6.

Rank #4
Sale
Vaydeer Wrist Rest for Keyboard and Mouse, Computer Ergonomic Wrist Support Pad, Soft Memory Foam Arm Cushion for Desk, Palm Hand Office Laptop Typing
  • 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
  • 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
  • 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
  • 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
  • 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.

Send a bounded IPv4-or-default test

ping -c 4 example.com

-c 4 sends four probes and then exits, which is safer for a diagnostic transcript than an unbounded interactive run. If the target is a hostname, ping must resolve that name before it can send the probes. Successful replies therefore show both that the name resolved and that ICMP responses returned from the selected address.

Choose the address family

ping -4 -c 4 example.com
ping -6 -c 4 example.com

Use -4 to force IPv4 or -6 to force IPv6. Testing each family separately can reveal a problem that affects only one address family, such as an unreachable IPv6 path or a host that answers on IPv4 but not IPv6.

Set a per-probe timeout

ping -c 4 -W 2 example.com

-W 2 sets a two-second timeout for each reply. A timeout means that no reply arrived within that interval; it does not identify the cause. Filtering, routing, host policy, congestion or a name-resolution problem can all lead to an unsuccessful test.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A repeatable DNS-versus-network troubleshooting workflow

Run the tests in an order that preserves evidence. Use the same hostname, address family and resolver when comparing results.

  1. Confirm the tools. Run dig -v, whois --version and ping -V (or each command’s help output) and note the Ubuntu release.
  2. Query the configured resolver. Start with dig example.com A. Record the status, flags and answer section, not just the returned address.
  3. Check the other address family when relevant. Run dig example.com AAAA if the client may use IPv6.
  4. Compare a selected resolver. Run dig @1.1.1.1 example.com A and compare it with the default-resolver result. A discrepancy points toward resolver-path or policy differences.
  5. Inspect delegation if the answers remain unexpected. Run dig +trace example.com to follow the hierarchy from the root.
  6. Test ICMP using the same name. Run ping -c 4 example.com, then repeat with ping -4 or ping -6 when the address family matters.
  7. Use an IP target only after recording the DNS result. Pinging the returned address separates name resolution from the path to that address, but it still tests ICMP rather than the application.
  8. Use WHOIS for ownership or allocation questions. Run whois example.com or whois 192.0.2.10; use -h or -I when server selection or referral needs to be explicit.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How to interpret common outcomes

DNS returns an address and ping succeeds

The resolver supplied an address and ICMP probes received replies. This is evidence of name-resolution behavior and ICMP reachability for that target at that time. It does not establish that a web server, API, mail service or TLS endpoint is accepting application traffic.

Best Value
Sale
Under Desk Cable Management Tray No Drill, Metal Mesh Cable Management Under Desk with Clamp Mount, 2 Hole Cable Tray with Wire Management and Cord Organizer for Home Office Standing Desk
  • 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
  • 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
  • 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
  • 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
  • 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.

DNS returns an address but ping fails

The name-resolution step worked, while the ICMP test did not receive usable replies. Firewalls, routing, host policy and ICMP filtering can all produce this pattern. Do not delete or change a DNS record solely because ping is unsuccessful; test the relevant application separately.

DNS fails and ping by hostname fails

Because ping must resolve a hostname before sending probes, this combination is consistent with a name-resolution problem, but it does not prove that DNS is the only cause. Run dig against the same name, then test a known address if you have one. Comparing the default resolver with an explicitly selected server helps identify whether the issue is local to the configured resolver path.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

DNS answers differ between servers

Different recursive servers can return different results because of resolver configuration, forwarding, policy or the point in the DNS delegation path that each one reached. Capture the complete response, including status, flags and authority information, before drawing a conclusion. Use +trace to inspect delegation independently.

WHOIS output is sparse or missing fields

WHOIS data is database-specific. The selected registry may redact personal information, omit fields or expose a format unlike another server’s output. Try an explicitly selected server with -h, or begin with -I so the IANA referral identifies the authoritative directory where that behavior is supported.

Command comparison at a glance

Axis dig whois ping
Data layer DNS resource records and resolver responses Registration or allocation directory data ICMP host reachability and timing
Main target Name, record type, optional DNS server Domain, IP, AS or other registry object Hostname or IP address
Key controls @server, type, -x, +trace, output filters -h, -I, object, type and server options -4, -6, -c, -W, -w
What a failure can mean A resolver or query problem, or a missing record The wrong server, an unsupported object or redacted data No ICMP reply; it does not diagnose DNS or application health by itself

Practical limits to keep in mind

  • A DNS answer describes what the queried resolver returned; it is not a guarantee that every resolver sees the same data.
  • A ping reply demonstrates an ICMP exchange, not that TCP, TLS, HTTP or another application protocol is functioning.
  • A ping timeout does not distinguish filtering from routing, host policy, congestion or an earlier name-resolution problem.
  • WHOIS is a directory lookup governed by the selected database. Registry policies and privacy redaction affect which fields appear.
  • Output options such as +short are useful for compact checks but hide response sections that may be essential when diagnosing delegation or resolver behavior.

Conclusion

For a disciplined Ubuntu diagnosis, start with dig to establish how DNS answers the name, use explicit resolver and address-family options when comparing paths, consult whois for registration or allocation context, and use bounded ping tests to measure ICMP reachability. Keep each result in its proper scope, then verify the application protocol that the user is actually trying to reach.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.