Hardware Secrets
Home | Audio | Case | Cooling | CPU | Input | Memory | Mobile | Motherboard | Networking | Power | Storage | Video | Other
Content
Articles
First Look
News
Reviews
Tutorials
Main Menu
About Us
Compare Prices
Datasheets
Dictionary
Download
Drivers
Forums
Gabriel's Blog
Links
Manufacturer Finder
Newsletter
On The Web
RSS Feed
Test Your Skills
Newsletter
Subscribe today!
Search




Recommended Book
Build Your Own Wi-Fi Network (Build Your Own...(McGraw))
By
McGraw-Hill/OsborneMedia
Price: $0.39

Home » Networking
How TCP/IP Protocol Works - Part 2
Author: Gabriel Torres
Type: Tutorials Last Updated: April 9, 2007
Page: 3 of 7
$ Check REAL-TIME pricing for Linksys WRT54GS Wireless Router $
CompUSA.com: $64.99 TECHONWEB: $69.43
TigerDirect.com: $64.99 HP Small/Medium Business: $70.15
eBay: $47.95 Jr: $59.99

DNS (Domain Name System)

As you already know, on TCP/IP networks each computer has a unique virtual address, called IP address. However for us, humans, names are easier to memorize than numbers.

DNS allows the use of names as alias for IP addresses. For example, it is easier to memorize the name of our website than the IP address that our web server is using – we are sure it is easier to memorize hardwaresecrets.com than 69.41.161.35.

When you enter http://www.hardwaresecrets.com on your web browser, DNS protocol enters in action, contacting a DNS server and asking it which IP address is associated with www.hardwaresecrets.com. The DNS server will answer 69.41.161.35 and then your web browser will know which IP address to use on this connection.

The DNS server your web browser will use is the DNS server your computer is configured to use – all computers that are connected to the Internet have a field for configuring the IP address of at least one DNS server. Usually this configuration is done automatically by via DHCP.

If the DNS server doesn’t know the name you asked, it will contact another DNS server with a higher hierarchy in order to learn about this name/IP address.

All entries on DNS servers have a “time to live” (a.k.a. TTL) field, which tells the server for how long that information is valid. When the information is expired, it should be updated by contacting again the DNS server with a higher hierarchy. This is done so if the IP address of a server has changed, the maximum time you will need to wait in order to learn what is the new IP address for that server will be its DNS TTL field – which can hang from a few hours to a few days.

DNS is an Application layer protocol, and DNS queries are done using the UDP protocol port 53 on the Transport layer. As we have already explained, UDP does not check whether the packet arrived or not at destination but, on the other hand, it is faster, as its header is smaller and less computational power is needed to process it, as the acknowledge scheme isn’t used.

An easy way to play with DNS queries is thru the use of the nslookup command, available both on the Windows prompt as on Unix systems (like Linux – depending on your Linux flavor this command may be called host, not nslookup).

On Windows, try clicking on Start, Run and then enter Cmd and hit Enter. There try nslookup www.hardwaresecrets.com. You will get the IP address associated with this name (69.41.161.35). You can also do the other way around, you can enter an IP address to find out if there is a server name associated with it (if you enter our IP address you will get a different server name, as we host two different websites on the same server). Play around with this command so you can understand more how DNS works; it won’t damage your PC!

By the way, DNS allows more than one name to be associated with one given IP address. This allows you to host more than one website on a single server, for example. When you access a server that has more than one website hosted, your web browser will reach it thru its IP address (learned thru a DNS query, like we explained), while the server will check for the name you are using on your web browser to know which website deliver to you.

Pages (7): « 1 2 [3] 4 5 6 7 »
Print Version | Send to Friend | | Bookmark Article | Comments (0)

Related Content
  • How to Discover Your Network Card Real Manufacturer
  • How to Build a Wireless Network Without Using a Broadband Router
  • How to Build a Network Using a Cross-Over Cable
  • The OSI Reference Model for Network Protocols
  • How TCP/IP Protocol Works - Part 1

  • Recommended Deals
    Linksys Wireless-N WRT150N Router


    TigerDirect.com: $44.99 Server Supply: $80.00
    Amazon: $45.04 CompUSA.com: $44.99
    Server Supply.com Inc: $80.00 Tech For Less: $78.96
    Linksys WRT350N Wireless Router


    CompUSA.com: $169.99 TigerDirect.com: $169.99
    PCNation: $166.81 Newegg.com: $109.99
    TECHONWEB: $179.99 Nextwarehouse: $154.86
    D-link Xtreme N™ DIR-655 Wireless Router


    TECHONWEB: $100.99 Beach Camera.com: $94.95
    Circuit City: $99.99 Dell: $99.99
    OfficeMax: $119.99 Jr: $109.99
    Linksys WRT54GS Wireless Router


    TECHONWEB: $69.43 HP Small/Medium Business: $70.15
    CompUSA.com: $64.99 TigerDirect.com: $64.99
    eBay: $47.95 J&R Music and Computer World: $59.99
    Linksys WRT300N Wireless Router


    Newegg.com: $94.99 PCNation: $106.09
    CompUSA.com: $109.99 TigerDirect.com: $109.99
    CompuVest: $120.42 Insight: $105.03

    RSSLatest News
    Elpida Develops 65-nm Memory Chips
    October 6, 2008 - 11:10 AM PST
    Transcend Launches T5 Flash Memory
    October 3, 2008 - 11:50 AM PST
    Thermaltake Announces BigTyp14 Pro CPU Cooler
    October 3, 2008 - 11:28 AM PST
    A-Data Announces Triple-Channel DDR3 kits for Core i7 Processors
    October 3, 2008 - 11:17 AM PST
    EVGA Launches nForce 790i SLI FTW Mainboard
    October 3, 2008 - 11:07 AM PST
    GlacialPower Launches 650 W PSU
    October 2, 2008 - 9:56 AM PST
    Manufacturers Launch Radeon HD 4550 and HD 4350 Cards
    October 1, 2008 - 9:51 AM PST
    AMD/ATI Launches Radeon HD 4550 and HD 4350
    September 30, 2008 - 9:25 AM PST
    Buffalo Announces DDR3-2400
    September 29, 2008 - 8:00 AM PST
    OCZ Launches HydroFlow Processor Water Block
    September 26, 2008 - 11:52 AM PST
    .:: More News ::.

    RSSLatest Content
    Kingwin Mach 1 ABT-700MA1S 700 W Power Supply Review
    Thermaltake V9 Case Review
    OCZ Dominatrix Gaming Mouse Review
    Rosewill Wind Ryder RZLS142-AP Case Review
    AeroCool AeroRacer Pro Case Review
    iPod Touch 2nd Generation Review
    Olympus SP-570UZ Digital Camera Review
    Zalman ZM600-HP 600 W Power Supply Review
    Tagan A+ Curbic Case Review
    Everything You Need to Know About The Motherboard Voltage Regulator Circuit
    Inside Atom Architecture
    ECS A790GXM-A Black Series Motherboard Review
    AMD ATI Chips Comparison Table
    All Core 2 Models
    All Celeron Models

    Our Most Popular Articles
    Maximum CPU Temperature
    792,408 views
    nVidia Chips Comparison Table
    493,107 views
    AMD ATI Chips Comparison Table
    435,983 views
    ATI Radeon X1300 Pro Review
    419,814 views
    ATI Radeon X1600 XT Review
    413,995 views
    How to Find Out Your Motherboard Manufacturer and Model
    403,726 views
    Connecting Two PCs Using a USB-USB Cable
    362,550 views
    How To Correctly Apply Thermal Grease
    347,126 views
    Sempron vs. Athlon XP
    283,908 views
    Sempron 3400+ Review
    274,720 views

    Latest Threads in Our Forums
    Budget Gaming PC
    by kiddmanty
    Elpida Develops 65-nm Memory Chips
    by Hardware Secrets Team
    Need advices with a 512 kbps internet connection
    by Gamer Z
    creative x fi elite pro spdif output
    by Gamer Z
    Everything you Need to Know About ATA-66, ATA-100 and ATA-133 Hard Disks
    by aopen
    Recovering Hard Disks with Bad Blocks
    by aopen
    Anatomy of a Hard Disk Drive
    by aopen
    need subject about pcb for hardisk --mr Gabriel Torres
    by aopen
    Kingwin Mach 1 ABT-700MA1S 700 W Power Supply Review
    by C.Gajo
    Mobo faulty
    by Gabriel Torres
    .:: Visit Our Forums ::.


    © 2004-8, Hardware Secrets, LLC. All rights reserved.
    Advertising | Legal Information | Privacy Policy
    All times are Pacific Standard Time (PST, GMT -08:00)