Skip to Content
Linux Administration Cookbook
book

Linux Administration Cookbook

by Adam K. Dean
December 2018
Beginner
826 pages
22h 54m
English
Packt Publishing
Content preview from Linux Administration Cookbook

How it works...

When you request the destination of a domain on your system, what you're actually doing is sending a request to your configured resolver, which returns the address it (or further upstream systems) knows about.

In our case, we can see this request happening by connecting two Terminals to centos1.

On our first Terminal, we're going to install and start tcpdump on eth1:

$ sudo yum install tcpdump -y$ sudo tcpdump -i eth0 -n port 53

Once set up, hop to a second connection and run your dig against the BBC (or whichever British broadcaster of choice you've gone with):

$ dig bbc.co.uk

Flip back to your first window, and you should see the results of your request:

14:58:50.303421 IP 10.0.2.15.51686 > 1.1.1.1.domain: 19866+ [1au] A? ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Linux Security Cookbook - Second Edition

Practical Linux Security Cookbook - Second Edition

Tajinder Kalsi
Mastering Linux Administration

Mastering Linux Administration

Alexandru Calcatinge, Julian Balog

Publisher Resources

ISBN: 9781789342529Supplemental Content