Error » Microsoft Error! » Microsoft Operating Systems Error » Microsoft Windows xp error » Checking Name Resolution 101

Microsoft Windows xp error all errors and bugs related to Microsoft winxp error

Post New Thread Reply
  Checking Name Resolution 101
LinkBack Thread Tools Display Modes
Old 19-Dec-2006, 09:29 PM   #1 (permalink)
Administrator
 
Anilrgowda's Avatar

Posts: 18,695
Join Date: Jan 2006
Rep Power: 10 Anilrgowda is on a distinguished road

IM:
Default Checking Name Resolution 101

In this article we will cover how you can quickly test if you have resolution via a name server or not. Many times this comes up, a DNS server is down; client loses IP connectivity and can''t resolve DNS, DNS cache poisoning, the list goes on. DNS problems are common. Using this handy guide you can quickly see how you can test to see if your system is ''ok'' and resolving names to IPs properly
Checking Name Resolution 101

This article is laid out so that it will show you how to not only use the tools, but also how to pick them. This is helpful because to just learn the tool’s name and all the switches you can use with it may not be particularly helpful to you if you don’t know when you would use a particular switch with a command. I have seen this a million times in books that are trying to drill this information into your head so that you remember it, problem is, if there is no scenario, you know, a real world – in the pits – scenario, pure memorization of the tool and its switches becomes pointless then because although you may have them memorized, how would you use them to resolve problems?
Consider Ping. Why would you use a Ping command with a ( -a ) switch? Let’s consider a problem where you would have to test DNS resolution, a user can’t get to an Internet website. Now, I know there are many ways you can test to establish what the problem is but let’s assume we wanted to quickly see if DNS was the problem, we isolated the problem that far, it’s definitely something wrong with DNS resolution. The DNS Cache was also flushed (ipconfig /flushdns which purges the DNS Resolver cache). So now, we will quickly test DNS with Ping? Yes, Ping with a particular switch can be used to solve a problem such as ‘why can’t we get to that URL, http://compIntranet?’ Well, do you know if you have DNS resolution such as a HOST file entry or the company DNS server assignments in the TCP/IP configuration properties configured via a DHCP server? Test DNS on your local PC to make sure you aren’t the problem first. If you get a complaint that users can’t get to http://compIntranet then you should make sure that you aren’t the problem first. Make sure you have DNS resolution. You can do this many ways, but one of the ways you can do it with the Ping command is with the ping –a ip_address command which will try to query resolve DNS to find out what the host name is.
  1. You have to see if DNS resolution is working you can see if the DNS server you are configured to query knows what it’s talking about. Using the NSLOOKUP command shows this information.
  2. C:\WINDOWS\SYSTEM32>nslookup
    Default Server: ns3.srv.hcvlny.cv.net
    Address: 167.206.112.3
    > www.yahoo.com
    Server: ns3.srv.hcvlny.cv.net
    Address: 167.206.112.3
    Non-authoritative answer:
    Name: www.yahoo.akadns.net
    Addresses: 216.109.118.74, 216.109.118.75, 216.109.118.77, 216.109.117.110
    216.109.117.204, 216.109.117.205, 216.109.118.69, 216.109.118.71
    Aliases: www.yahoo.com
  3. When I query my local DNS server, I can see that Yahoo.com has multiple IP addresses that can be used.
  4. Now, it’s possible to ping with the –a switch to also verify if DNS resolution is work. Pinging Yahoo’s IP address with the –a switch produces the DNS name of the system.
C:\WINDOWS\SYSTEM32>ping -a 216.109.118.74
Pinging p11.www.dcn.yahoo.com [216.109.118.74] with 32 bytes of data:
Reply from 216.109.118.74: bytes=32 time=22ms TTL=51
Reply from 216.109.118.74: bytes=32 time=25ms TTL=51
Reply from 216.109.118.74: bytes=32 time=27ms TTL=51
Reply from 216.109.118.74: bytes=32 time=32ms TTL=51
Ping statistics for 216.109.118.74:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 22ms, Maximum = 32ms, Average = 26ms
Although a simple example of using command line tools, we were able to also see why we would want to use them. See, so this guide does just sound like a machine telling you that ping is a command line tool that uses the ICMP echo protocol to send packets to … blah, blah, and blah! It’s a useful guide to help you understand why you would use them as well. It also shows you why you would use such switches that are available with the most common tools! Hopefully this will help you know when to use each one and help you create that precision needed in your troubleshooting steps. We will be back next time with some command line tool tips.
Anilrgowda is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
   


   
Post New Thread Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -8. The time now is 05:38 AM.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

DMCA Policy

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227