\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{Johnnyinc (janek)} \pdfinfo{ /Title (dns.pdf) /Creator (Cheatography) /Author (Johnnyinc (janek)) /Subject (DNS Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{088000} \definecolor{LightBackground}{HTML}{F7FBF7} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{DNS Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Johnnyinc (janek)} via \textcolor{DarkBackground}{\uline{cheatography.com/20812/cs/3704/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}Johnnyinc (janek) \\ \uline{cheatography.com/janek} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Not Yet Published.\\ Updated 10th May, 2016.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{3} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Author}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Created by Johnnyinc% Row Count 1 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{CompTIA Security+}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{5.377cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/janek_1426192841_SecurityPlus_Certified_CE_Logo.jpg}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{EC-Council CEH}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{5.377cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/janek_1426192910_CEH-logo.jpg}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{ISC2 SSCP}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{5.377cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/janek_1426192961_SSCP-logo-square.png}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Break}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Definition}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{The Domain Name System (DNS)}} is a hierarchical distributed naming system for computers, services, or any resource connected to the Internet or a private network. It associates various information with domain names assigned to each of the participating entities. Most prominently, it translates easily memorized domain names to the numerical IP addresses needed for the purpose of locating computer services and devices worldwide. The Domain Name System is an essential component of the functionality of the Internet \newline % Row Count 11 (+ 11) DNS uses UDP port 53 \newline % Row Count 12 (+ 1) `www.example.com. =\textgreater{} 93.184.216.119` \newline % Row Count 13 (+ 1) {\bf{Elements of the name:}} \newline % Row Count 14 (+ 1) - {\bf{dot:}} at the end is the root {[}first zone{]} \newline % Row Count 15 (+ 1) - {\bf{com:}} top level domain {[}TLD{]} {[}second zone{]} \newline % Row Count 16 (+ 1) - {\bf{example:}} domain {[}third zone{]} \newline % Row Count 17 (+ 1) - {\bf{www:}} subdomain {[}forth zone{]} \newline % Row Count 18 (+ 1) {\bf{Subdomains examples:}} \newline % Row Count 19 (+ 1) - www.example.com:80 \newline % Row Count 20 (+ 1) - smtp.example.com:25 \newline % Row Count 21 (+ 1) - pop.example.com:110 \newline % Row Count 22 (+ 1) - imap.example.com:143 \newline % Row Count 23 (+ 1) - irc.example.com:6669% Row Count 24 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{DNS records}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{A:}} ipv4 address {[}`www.example.com:80`{]} \newline % Row Count 1 (+ 1) {\bf{AAAA:}} ipv6 address {[}`www.example.com:80`{]} \newline % Row Count 2 (+ 1) {\bf{MX:}} mail exchanger {[}`smtp.example.com:25`{]} \newline % Row Count 3 (+ 1) {\bf{CNAME:}} alias resolves to another domain name {[}`irc.example.com:6669`{]} \newline % Row Count 5 (+ 2) {\bf{TXT:}} text {[}`darknet.example.com:1337`{]} \newline % Row Count 6 (+ 1) {\bf{NS:}} name server {[}`ns1.example.com`{]} \newline % Row Count 7 (+ 1) {\bf{ANY:}} any record type that exists for the subject of the query \newline % Row Count 9 (+ 2) {\bf{HINFO:}} host information. Information about the CPU type and operating system of subject of the query \newline % Row Count 12 (+ 3) {\bf{WKS:}} well-known services or applications available on this host \newline % Row Count 14 (+ 2) {\bf{PTR:}} pointer record. Returns a host name for an IP address \newline % Row Count 16 (+ 2) {\bf{SOA:}} start of Authority record \newline % Row Count 17 (+ 1) {\bf{SRV:}} service record is a specification of data in the Domain Name System defining the location, i.e. the hostname and port number, of servers for specified services% Row Count 21 (+ 4) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Useful}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{Zone Transfers}} \newline % Row Count 1 (+ 1) DNS zone transfer, also sometimes known by the inducing DNS query type AXFR, is a type of DNS transaction. It is one of the many mechanisms available for administrators to replicate DNS databases across a set of DNS servers. Zone transfer comes in two flavors, full (AXFR) and incremental (IXFR). \newline % Row Count 7 (+ 6) {\bf{Cache Snooping}} \newline % Row Count 8 (+ 1) DNS cache snooping is when someone queries a DNS server in order to find out (snoop) if the DNS server has a specific DNS record cached, and thereby deduce if the DNS server's owner (or its users) have recently visited a specific site. \newline % Row Count 13 (+ 5) This may reveal information about the DNS server's owner, such as what vendor, bank, service provider, etc. they use. Especially if this is confirmed (snooped) multiple times over a period. This method could even be used to gather statistical information - for example at what time does the DNS server's owner typically access his net bank etc. The cached DNS record's remaining TTL value can provide very accurate data for this. Great for determining relations and outside services used that can be leveraged in Phising attempts% Row Count 24 (+ 11) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{whois}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{Checks information about ownership of a domain name}} \newline % Row Count 2 (+ 2) `\$ whois {[}domain{]}` - querying databases that store the registered users or assignees, such as a domain name, an IP addresses \newline % Row Count 5 (+ 3) {\bf{Example:}} \newline % Row Count 6 (+ 1) `\$ whois hackme.com` \newline % Row Count 7 (+ 1) `Domain Name: HACKME.COM` \newline % Row Count 8 (+ 1) `Registrar: UNIREGISTRAR CORP` \newline % Row Count 9 (+ 1) `Sponsoring Registrar IANA ID: 1659` \newline % Row Count 10 (+ 1) `Whois Server: whois.uniregistrar.com` \newline % Row Count 11 (+ 1) `Referral URL: \seqsplit{http://www.uniregistrar.com`} \newline % Row Count 12 (+ 1) `Name Server: NS1.HOSTINGNET.COM` \newline % Row Count 13 (+ 1) `Name Server: NS2.HOSTINGNET.COM` \newline % Row Count 14 (+ 1) `Status: clientDeleteProhibited \seqsplit{http://www.icann.org/epp\#clientDeleteProhibited`} \newline % Row Count 16 (+ 2) `Status: clientTransferProhibited \seqsplit{http://www.icann.org/epp\#clientTransferProhibited`} \newline % Row Count 18 (+ 2) `Status: clientUpdateProhibited \seqsplit{http://www.icann.org/epp\#clientUpdateProhibited`} \newline % Row Count 20 (+ 2) `Updated Date: 02-dec-2014` \newline % Row Count 21 (+ 1) `Creation Date: 06-jun-2003` \newline % Row Count 22 (+ 1) `Expiration Date: 06-jun-2017`% Row Count 23 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{host}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{Query the DNS server}} \newline % Row Count 1 (+ 1) `\$ host {[}domain{]}` - query dns server for domain \newline % Row Count 2 (+ 1) `\$ host {[}ip\_address{]}` - reverse dns lookup \newline % Row Count 3 (+ 1) `\$ host -t {[}DNS\_record{]} {[}domain{]}` - query dns for given DNS record \newline % Row Count 5 (+ 2) `\$ host -l {[}domain{]}` - zone transfer using AXFR \newline % Row Count 6 (+ 1) {\bf{Example}} \newline % Row Count 7 (+ 1) `\$ host hack.com` \newline % Row Count 8 (+ 1) `hack.com has address 23.21.224.150` \newline % Row Count 9 (+ 1) `hack.com mail is handled by 1000 0.0.0.0.hack.com.` \newline % Row Count 11 (+ 2) \seqsplit{===========================} \newline % Row Count 12 (+ 1) `\$ host -t A hack.com` \newline % Row Count 13 (+ 1) `hack.com has address 23.21.224.150` \newline % Row Count 14 (+ 1) \seqsplit{===========================} \newline % Row Count 15 (+ 1) `\$ host -t AAAA hack.com` \newline % Row Count 16 (+ 1) `hack.com has no AAAA record` \newline % Row Count 17 (+ 1) \seqsplit{===========================} \newline % Row Count 18 (+ 1) `\$ host -t MX hack.com` \newline % Row Count 19 (+ 1) `hack.com mail is handled by 1000 0.0.0.0.hack.com.` \newline % Row Count 21 (+ 2) \seqsplit{===========================} \newline % Row Count 22 (+ 1) `\$ host -t SOA hack.com` \newline % Row Count 23 (+ 1) `hack.com has SOA record ns1.digimedia.com. dns.digimedia.com. 2014090503 10800 3600 604800 3600` \newline % Row Count 25 (+ 2) \seqsplit{===========================} \newline % Row Count 26 (+ 1) `\$ host -t PTR 23.21.224.150` \newline % Row Count 27 (+ 1) \seqsplit{`150.224.21.23.in-addr.arpa} domain name pointer \seqsplit{ec2-23-21-224-150.compute-1.amazonaws.com.`}% Row Count 29 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Name Servers}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{Authoritative:}} An authoritative name server provides actual answer to your DNS queries such as – mail server IP address or web site IP address (A resource record). It provides original and definitive answers to DNS queries. It does not provides just cached answers that were obtained from another name server. Therefore it only returns answers to queries about domain names that are installed in its configuration system. There are two types of Authoritative Name Servers: \newline % Row Count 10 (+ 10) - {\bf{Master server (primary name server):}} A master server stores the original master copies of all zone records. A hostmaster only make changes to master server zone records. Each slave server gets updates via special automatic updating mechanism of the DNS protocol. All slave servers maintain an identical copy of the master records \newline % Row Count 17 (+ 7) - {\bf{Slave server (secondary name server):}} A slave server is exact replica of master server. It is used to share DNS server load and to improve DNS zone availability in case master server fails. It is recommend that you should at least have 2 slave servers and one master server for each domain name \newline % Row Count 24 (+ 7) {\bf{Recursive:}} A recursive nameserver is one that answers queries by asking other nameservers for the answer. It will satisfy queries from cache if possible, but otherwise it traverses the Internet (or private) namespace tree, from the root level if necessary, repeatedly asking the query on behalf of its client and following referrals from authoritative servers until it finds one that provides the answer(s) that it can return to its client \newline % Row Count 33 (+ 9) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Name Servers (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{Caching:}} Caching name servers (DNS caches) store DNS query results for a period of time determined in the configuration (time-to-live) of each domain-name record. DNS caches improve the efficiency of the DNS by reducing DNS traffic across the Internet, and by reducing load on authoritative name-servers, particularly root name-servers. Because they can answer questions more quickly, they also increase the performance of end-user applications that use the DNS. Recursive name servers resolve any query they receive, even if they are not authoritative for the question being asked, by consulting the server or servers that are authoritative for the question. Caching name servers are often also recursive name servers—they perform every step necessary to answer any DNS query they receive% Row Count 16 (+ 16) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{nslookup}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{Query the DNS server}} \newline % Row Count 1 (+ 1) `\$ nslookup` - brings the interactive mode \newline % Row Count 2 (+ 1) `\$ \textgreater{} {[}domain{]}` - query dns server for domain \newline % Row Count 3 (+ 1) `\$ \textgreater{} {[}ip\_address{]}` - reverse dns lookup \newline % Row Count 4 (+ 1) `\$ \textgreater{} server {[}ip\_address or domain{]}` - change the default (current) DNS server to ip\_address or domain \newline % Row Count 7 (+ 3) `\$ \textgreater{} set root=dnsserver` - makes the root DNS server the default DNS server for the query session \newline % Row Count 9 (+ 2) `\$ \textgreater{} domain dnssever` - show the IP address of the host domain, but query dnsserver for the information \newline % Row Count 12 (+ 3) `\$ \textgreater{} set type=x` - determines the type of DNS record that the DNS server will use to answer the query (x = DNS record type) \newline % Row Count 15 (+ 3) `\$ \textgreater{} set recursive` - query other DNS servers if the default server does not have the information \newline % Row Count 17 (+ 2) `\$ \textgreater{} ls -a domain` - list all canonical (true) names and aliases in domain \newline % Row Count 19 (+ 2) `\$ \textgreater{} ls -h domain` - list HINFO (CPU type and operating system) for domain \newline % Row Count 21 (+ 2) `\$ \textgreater{} ls -s domain` - list the well-known services available on domain \newline % Row Count 23 (+ 2) `\$ \textgreater{} ls -d domain` - list all available records for domain. Includes all DNS record types \newline % Row Count 25 (+ 2) `\$ \textgreater{} ls -t {[}type{]} domain` - list all DNS TYPE records for domain \newline % Row Count 27 (+ 2) `\$ \textgreater{} exit` - quit the interactive mode \newline % Row Count 28 (+ 1) {\bf{Example}} \newline % Row Count 29 (+ 1) `\$ nslookup` \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{nslookup (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{`\$ \textgreater{} server 8.8.8.8` \newline % Row Count 1 (+ 1) `Default server: 8.8.8.8` \newline % Row Count 2 (+ 1) `Address: 8.8.8.8\#53` \newline % Row Count 3 (+ 1) `\$ \textgreater{} hack.com` \newline % Row Count 4 (+ 1) `Server: 8.8.8.8` \newline % Row Count 5 (+ 1) `Address: 8.8.8.8\#53` \newline % Row Count 6 (+ 1) `Non-authoritative answer:` \newline % Row Count 7 (+ 1) `Name: hack.com` \newline % Row Count 8 (+ 1) `Address: 23.21.224.150` \newline % Row Count 9 (+ 1) `\$ \textgreater{} 23.21.224.150` \newline % Row Count 10 (+ 1) `Server: 8.8.8.8` \newline % Row Count 11 (+ 1) `Address: 8.8.8.8\#53` \newline % Row Count 12 (+ 1) `Non-authoritative answer:` \newline % Row Count 13 (+ 1) \seqsplit{`150.224.21.23.in-addr.arpa name} = \seqsplit{ec2-23-21-224-150.compute-1.amazonaws.com.`} \newline % Row Count 15 (+ 2) `Authoritative answers can be found from:`% Row Count 16 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{dig}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{Query the DNS server}} \newline % Row Count 1 (+ 1) `\$ dig {[}domain{]}` - query dns server for name \newline % Row Count 2 (+ 1) `\$ dig +nocmd {[}domain{]}` - drops dig version from query output \newline % Row Count 4 (+ 2) `\$ dig +nocomments {[}domain{]}` - drops the question and answer section from query output \newline % Row Count 6 (+ 2) `\$ dig +noquestion {[}domain{]}` - drops the question from the query output \newline % Row Count 8 (+ 2) `\$ dig +noanswer {[}domain{]}` - drops the answer from the query output \newline % Row Count 10 (+ 2) `\$ dig +noauthority {[}domain{]}` - drops the information of authoritative dns from the query output \newline % Row Count 12 (+ 2) `\$ dig +noadditional {[}domain{]}` - drops additional information from query output \newline % Row Count 14 (+ 2) `\$ dig +nostat {[}domain{]}` - drops statistics from query output \newline % Row Count 16 (+ 2) `\$ dig +short {[}domain{]}` - short form of query output \newline % Row Count 18 (+ 2) `\$ dig {[}DNS\_record{]} {[}domain{]}` - query dns for given DNS record \newline % Row Count 20 (+ 2) `\$ dig {[}domain{]} AXFR` - zone transfer \newline % Row Count 21 (+ 1) `\$ dig -x {[}ip\_addres{]}` - reverse dns lookup \newline % Row Count 22 (+ 1) `\$ dig @nameserver {[}domain{]}` - query different name server \newline % Row Count 24 (+ 2) `\$ dig +search {[}domain{]}` - uses dns servers from /etc/resolv.conf \newline % Row Count 26 (+ 2) `\$ dig -f /path/to/file` - query for hosts specified in the file \newline % Row Count 28 (+ 2) `\$ dig +noall` - set or clear all display flags \newline % Row Count 29 (+ 1) {\bf{Example}} \newline % Row Count 30 (+ 1) } \tn \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{dig (cont)}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{`\$ dig @8.8.8.8 hack.com` \newline % Row Count 1 (+ 1) `; \textless{}\textless{}\textgreater{}\textgreater{} DiG 9.8.3-P1 \textless{}\textless{}\textgreater{}\textgreater{} @8.8.8.8 hackme.com` \newline % Row Count 2 (+ 1) `; (1 server found)` \newline % Row Count 3 (+ 1) `;; global options: +cmd` \newline % Row Count 4 (+ 1) `;; Got answer:` \newline % Row Count 5 (+ 1) `;; -\textgreater{}\textgreater{}HEADER\textless{}\textless{}- opcode: QUERY, status: NOERROR, id: 39044` \newline % Row Count 7 (+ 2) `;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0` \newline % Row Count 9 (+ 2) `;; QUESTION SECTION:` \newline % Row Count 10 (+ 1) `;hackme.com. IN A` \newline % Row Count 11 (+ 1) `;; ANSWER SECTION:` \newline % Row Count 12 (+ 1) \seqsplit{`hackme.com. 299 IN A 69.172.201.208`} \newline % Row Count 13 (+ 1) `;; Query time: 91 msec` \newline % Row Count 14 (+ 1) `;; SERVER: 8.8.8.8\#53(8.8.8.8)` \newline % Row Count 15 (+ 1) `;; WHEN: Thu Mar 12 21:50:25 2015` \newline % Row Count 16 (+ 1) `;; MSG SIZE rcvd: 44` \newline % Row Count 17 (+ 1) \seqsplit{===========================} \newline % Row Count 18 (+ 1) `\$ dig @8.8.8.8 +short hack.com` \newline % Row Count 19 (+ 1) `69.172.201.208`% Row Count 20 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{fierce}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{Fierce is a semi-lightweight scanner that helps locate non-contiguous IP space and hostnames against specified domains. It is meant specifically to locate likely targets both inside and outside a corporate network. Because it uses DNS primarily you will often find mis-configured networks that leak internal address space. That's especially useful in targeted malware}}% Row Count 8 (+ 8) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}