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

Querying a domain

To query a domain name on Linux, dig can be used:

$ dig bbc.co.uk; <<>> DiG 9.9.4-RedHat-9.9.4-61.el7 <<>> bbc.co.uk;; global options: +cmd;; Got answer:;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6288;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1;; OPT PSEUDOSECTION:; EDNS: version: 0, flags:; udp: 65494;; QUESTION SECTION:;bbc.co.uk.            IN    A;; ANSWER SECTION:bbc.co.uk.        227    IN    A    151.101.0.81bbc.co.uk.        227    IN    A    151.101.64.81bbc.co.uk.        227    IN    A    151.101.128.81bbc.co.uk.        227    IN    A    151.101.192.81;; Query time: 24 msec;; SERVER: 10.0.2.3#53(10.0.2.3);; WHEN: Sun Aug 12 14:20:28 UTC 2018;; MSG SIZE  rcvd: 102

Here, we can see that the server being used for domain resolution (emboldened) is 10.0.2.3, which ...

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