Network - DNS Lookup (Request|query)

Card Puncher Data Processing

About

A DNS lookup is a request to a DNS server in order to translate a DNS name to an IP and vice versa.

Beware that not all DNS client are performing a lookup on the content of the host file as ping does.

Example of response knwon as replies

Each message consists of:

  • a header
  • and four sections:
    • question,
    • answer,
    • authority,
    • and an additional space.

A header field (flags) controls the content of these four sections

Example of A record query against datacadamia.com

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56993
;; flags: qr rd ra ; qd: 1 an: 2 au: 0 ad: 1 

;; OPT PSEUDOSECTION: 
; EDNS: version: 0; flags: ; udp: 512
;; QUESTIONS:
;;	datacadamia.com., type = A, class = IN

;; ANSWERS:
datacadamia.com.	300	IN	A	188.114.96.0
datacadamia.com.	300	IN	A	188.114.97.0

;; AUTHORITY RECORDS:

;; ADDITIONAL RECORDS:


;; Message size: 76 bytes

Type

Forward

A forward lookup translate a DNS name to an IP. See What is a DNS Forward Lookup?

Reverse

A reverse lookup translate a an IP to a DNS name. See DNS - rDNS - Reverse DNS (lookup|resolution) - from IP to name





Discover More
Card Puncher Data Processing
DNS - MX record (Mail Exchanger Record)

The MX DNS is a DNS record that is defining a email server. You can only use one mail exchange server at a time. The name of the MX record is the last part of an email address and design the host where...
Card Puncher Data Processing
DNS - Record

A DNS record is a row in a DNS database. A record is a text line. name is the name or IP address for a ptr record ttl is the the time to live in the cache class is the network class being used....
Card Puncher Data Processing
DNS - Resolver (IP from Name)

The resolver is a program that queries a database names in response to client requests to determines: the IP address from an name or vice versa. ( They must be able to access at least one name...
Card Puncher Data Processing
DNS - nslookup command line

Nslookup is a DNS client program to query (ie lookup) domain name servers and get back DNS record information nslookuphost fileping Nslookup has two modes: The local DNS file is /etc/resolv.conf...
Card Puncher Data Processing
DNS - rDNS - Reverse DNS (lookup|resolution) - from IP to name

A reverse dns lookup is a dns lookup that get the DNS name (known also as the reverse DNS name) from the IP address forward dns lookup The reverse DNS database of the Internet is rooted in the .arpa...
Card Puncher Data Processing
DNS Alias record

An alias is a DNS record with a name that resolves directly to an ip_address. cnamenamenamean ip addressDNS resolverroundtripip_addressCNAME Before creating an ALIAS record, check there are no: ...
Card Puncher Data Processing
DNS clients - A list of client that can query the DNS database

A DNS client is an application that calls the resolver to query name database in order to perform forward lookup (IP from name) or reverse lookup(Name from IP). This page lists this application
Dkim Entry
Email - DomainKeys Identified Mail (DKIM) - Mail Signatures

DomainKeys Identified Mail (DKIM) is a method to sign digitally outgoing email, thereby allowing a person, role, or organization to claim some responsibility for the message. The signature will associate...
Dns Architecture
Network - Domain Name System ( DNS )

The Domain Name System (DNS) is a database of name. It's naming system (service). It hold naming information for some kind of object (not only but mainly host) DNS can be seen as the phone book of the...
Card Puncher Data Processing
Network - dig ( DNS tool)

dig is DNS client tool to make dns lookup. The containing package name is: debian/ubuntu: dnsutils centos: bind-utils alpine: Google has...



Share this page:
Follow us:
Task Runner