Websites have both a friendly address, called a URL, and an IP address. People use URLs to find websites, but computers use IP addresses to find websites. DNS translates URLs into IP addresses (and vice versa). For example, if you type http://www.microsoft.com into the address bar in your web browser, your computer sends a request to a DNS server. The DNS server translates the URL into an IP address so that your computer can find the Microsoft web server.
Here are answers to some common questions about DNS.
The last part of a URL is called a top-level domain name (TLD). TLDs identify different types of websites. Here are some common TLDs and what they stand for:
Commercial (business) site
Internet administrative site
U.S. government agency
In addition to the TLDs listed above, individual countries or regions have their own TLDs. For example, .ca is the TLD for Canada.
Some computers are given a different IP address each time they connect to the Internet. An Internet service provider (ISP) can use a few IP addresses to serve many customers that way, but it means that your computer's address on the Internet is always changing. If you host a website, you don't want the website name to change, even if your ISP changes the IP address. DNS dynamic update automatically maintains the relationship between your fixed website name and the changing IP address so that your website is easy to find on the Internet.
You must be connected to the Internet to look up a DNS name or IP address.
Open the Command Prompt window by clicking the Start button . In the search box, type Command Prompt, and then, in the list of results, click Command Prompt.
At the command prompt, type nslookup, a space, and the IP address or domain name (for example, nslookup microsoft.com), and then press Enter.
When you type a web address into your web browser and press Enter, you're sending a query to a DNS server. If the query is successful, the website you want opens; if not, you'll see an error message. A record of these successful and unsuccessful queries is stored in a temporary storage location on your computer called the DNS cache. DNS always checks the cache before querying any DNS server, and if a record is found that matches the query, DNS uses that record instead of querying the server. This makes queries faster and decreases network and Internet traffic.
At the command prompt, type ipconfig /displaydns.
Clearing the DNS cache forces DNS to query a DNS server rather than using information stored in the cache. You might want to clear the DNS cache when making changes to websites that you manage, or if you're receiving repeated errors when you know that a web address you're typing is correct.
You must open a command prompt with elevated privileges to complete the following steps. For more information, see Command Prompt: frequently asked questions
In the search box, type command prompt.
In the list of results, right-click Command Prompt, and then click Run as administrator.
If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
At the command prompt, type ipconfig /flushdns.