Você está na página 1de 7

Subscribe | Comments RSS

ItsyourIP.com - 123.239.21.95 is your ip Address



Home
About
Contact Me
Free Antivirus
Free Firewall
Online Scan
search
Sitemap
Speed Test
How DNS Query work
Posted on Apr 17, 2007 under DNS | No Comment

Tags:DNS
Understanding how DNS works needs a bit of an understanding the background process of a DNS Query. The
process of DNS Query involves,
1. An that calls for a name resolution like
2. The DNS Client installed on the
Search




Ads by Google DNS Backup DNS Server Managed DNS Hosting Bind Configuration Bind Crash
wwwLimeDomains com Feedback - Ads by Google
wwwLimeDomains com Feedback - Ads by Google
application Internet Explorer
computer
Links to Site
Page 1of 7 How DNS Query work | ItsyourIP.com
6/25/2009 http://www.itsyourip.com/dns/how-dns-query-work/
3. The local DNS server
4. The various DNS servers on the
Lets discuss the process of a DNS Query with a simple example of accessing a on the Internet.
1. When a user types in a website address in Internet Explorer say http://itsyourip.netmonitoring.org/index.php
and clicks GO, Internet Explorer does not directly understand the domain name and wouldnt know where to go.
Hence, picks up the website name http://itsyourip.netmonitoring.org/index.php and pass it onto the DNS client to
resolve the IP Address of the website.
2. The DNS Client also known as the DNS Resolver will try to resolve the IP address from its local resources
which includes the Name to Address mappings in the HOSTS file and its local DNS cache. Normally, most of
the DNS clients are capable of caching the previous DNS query results. The DNS resolver will use these
available local resources and, if it cant find the IP Address will then query a DNS server that it knows to for the
IP Address.
3. The DNS server will directly answer the query if it is the authoritative server for the particular (here
http://itsyourip.netmonitoring.org/index.php) else check its local cache of the previous queries. If it cannot find
the IP Address then will query the DNS servers on the Internet. The process it follows in contacting various DNS
servers on the internet requires a bit of understanding of how it looks at the Domain name. For instance the
website address www.itsyourip.com will be looked at by the DNS server as .com.itsyourip.www
NOTE: Make a note of the "." before com.
The above indicates that . is the ROOT DOMAIN. com is Sub-domain for the ROOT Domain. itsyourip
is a sub-domain for .com www is either a node (no further sub-domains) or further a sub-domain for
"itsyourip".
4. Now, the DNS Server will query one of the root servers requesting for a list of Authoritative servers for
the .COM domain. The Root server will respond with the list of servers addresses hosting the COM domain.
5. The DNS server will pick one from the list and contact that server for a list of Authoritative servers for the
itsyourip domain. The server will respond with the details of the Authoritative server for the itsyourip domain.
6. Now, that the DNS server knows the Authoritative server address for the itsyourip.com domain and hence will
directly contact the server for the IP Address of the host www which belongs to itsyourip.com (called as A
Record). The Authoritative DNS server will then respond with the IP Address or a list of IP Address (if more
than one server hosts the website www.itsyourip.com) for www. Itsyourip.com.
7. This the DNS server then returns back to the DNS client which again passes it onto the DNS application which
initially requested the IP Address information, Internet Explorer in this case. 8. The Application then knows
where to go to fetch the website. How it fetches the correct page etc is being taken care by the HTTP protocol
using host headers etc., That is how a DNS Query works in its simplest terms. In any of the above when we query
for a non-existent domain or a domain or the server that hosts the domain is not available will return an error.
If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
Related Posts
How to configure Cisco Router as Authoritative DNS Server (Apr 16, 2008)
Internet
website
domain
Page 2of 7 How DNS Query work | ItsyourIP.com
6/25/2009 http://www.itsyourip.com/dns/how-dns-query-work/
Configure Cisco Router as Caching/Forwarding DNS Server (Apr 16, 2008)
Dnsmasq Opensource DNS Server Forwarder & DHCP Server (Dec 17, 2007)
HowTo: Add or Edit the DNS servers in Sun Solaris (Nov 20, 2007)
PTR Record A DNS Pointer Resource Record (Nov 15, 2007)
Leave a comment
Name: (Required)

eMail: (Required)

Website:

Comment:


Your IP Address
Country: INDIA
Region:UTTAR PRADESH
City:MEERUT
ISP:RELIANCE COMMUNICATIONS LTD
Subscribe Via Email


Post Comment!
Subscribe me!
The webpage cannot be found

Page 3of 7 How DNS Query work | ItsyourIP.com
6/25/2009 http://www.itsyourip.com/dns/how-dns-query-work/
Cisco Security Advisory
Vulnerabilities in Cisco Video Surveillance Products
Cisco Physical Access Gateway Denial of Service Vulnerability

MS Security Bulletin
MS09-020 - Important: Vulnerabilities in Internet Information Services (IIS) Could Allow Elevation
of Privilege (970483)
MS09-026 - Important: Vulnerability in RPC Could Allow Elevation of Privilege (970238)
US-CERT Vulnerability
SANS 2009
(1) CRITICAL: Mozilla Multiple Products Multiple Vulnerabilities

SANS
$149.99

Best Deals

Search
Apple iPod
nano Third
Amazon
$149.99

Best Deals

Search
Apple iPod
nano Third
Amazon
Page 4of 7 How DNS Query work | ItsyourIP.com
6/25/2009 http://www.itsyourip.com/dns/how-dns-query-work/
Infocon: green
TCP scanning increase for 4899, (Wed, J un 24th)
Secunia Advisories
Recent Posts
FileZilla FTP Client configuration through BlueCoat proxy
Unable to delete Stale/Obsolete statc routes in Cisco IOS
How to create VLAN Interfaces for InterVLAN Routing in Cisco IOS
High CPU usage when SNMP is enabled in Cisco Routers
Import WyseTerm Host List from one user to another in Windows
Configure MD5 encrypted passwords for users on Cisco IOS
Enable/Configure DHCP Snooping in Cisco Catalyst Switches (IOS)
Allow user view Running/Startup-Config (red-only) in Cisco IOS
How to capture text, backup configuration (Cisco,J uniper or anything)with Putty
Clear Access Control List (ACL) Counters in Cisco IOS
Login/Register
Register
Log in
Entries RSS
Comments RSS
WordPress.org
Related Links

Categories
ARP
Browser
Cisco
Debian
DHCP
Recent Readers
You!
Join Our Community
Keiron
drucev
joh4n_r4j
Charles Nadeau
View Reader Community
Join this Community
(provided by MyBlogLog)
Page 5of 7 How DNS Query work | ItsyourIP.com
6/25/2009 http://www.itsyourip.com/dns/how-dns-query-work/
DNS
DNS Records
Firefox
internet-explorer
IP Tools
juniper
Linux
Network Inventory
Networking
OpenSource
OpenSource Clustering
Opensource Firewall
OpenSource LoadBalancer
Opensource NAC
OpenSource Router
Opensource VPN
proxy
Redhat
Secure Shell(SSH)
Security
Security Audit
Security/Penetration Testing
Sniffing/PacketCapture
Solaris
Ubuntu
Unix
voip
vpn
Windows
Wireless
Archives

Links
Default Password List
DNS Stuff
IP2Location
Nagios
NetMonitoring
TraceRoute
Windows Reference
Select Month
Page 6of 7 How DNS Query work | ItsyourIP.com
6/25/2009 http://www.itsyourip.com/dns/how-dns-query-work/

Recent Comments
Moid Khan on How to add Multiple IP Address in Windows 2000,XP,2003
DEEPAK KUMAR on How to Add a Banner in Cisco IOS Routers and Switches
naveen on ClarkConnect OpenSource Firewall Intrusion Prevention networking and collabration
suite
GEOFREY on How to configure DHCP server on Cisco Routers and switches with Cisco IOS
Anime4000 on Disable ICMP Redirects in Windows(2000,XP,2003)
Tags
acl ARP Browser Cisco DHCP DNS DNS Records Firefox firewall gateway High-Availability icmp internet ios ip ip-address ipsec IP
Tools juniper Linux mtu network OpenSource Opensource Firewall OpenSource LoadBalancer proxy Redhat registry rhel
route router routers running-config Security snmp Solaris switch tcp tcpip udp Unix virtual-server vpn Windows Wireless
2009 ItsyourIP.com
All Trademarks are the property of their respective owners.
DISCLAIMER: All the information, troubleshooting methods, utilities offered in this website is provided AS-IS,
without any warranty. Though I strive for perfection, and always test the validity and effectiveness of the
troubleshooting content, I assume no responsibility for your use of these Fixes, Utilities and other troubleshooting
advice. The author will not be liable for any special, incidental, consequential or indirect damages due to loss of
data or any other reason. All use is completely at your own risk.
Wordpress Theme by Triathlon Training
Page 7of 7 How DNS Query work | ItsyourIP.com
6/25/2009 http://www.itsyourip.com/dns/how-dns-query-work/

Você também pode gostar