Sunday, August 23, 2009

Unable to browse website due to DNS redirection or DNS failure/blocked?

Suspect some websites has been blocked by your ISP Domain Name Caching Server (CDNS)? There are several steps you should take to solve it.

Steps to query the CDNS :

First, use “nslookup” to query your ISP CDNS. ( Get the CDNS IP addresses by typing “ipconfig/all” )

  1. Go to your command prompt.
  2. Type “nslookup” and Enter.
  3. Then type “server <ISP CDNS IP address>” and Enter.
  4. Type “set q=any” and Enter.
  5. Type the URL domain name that you wish to query.

C:\Documents and Settings\xyz>nslookup
Default Server:  DD-WRT

> server
Default Server:

> set q=any

< more…… >

If the URL is blocked, then you will the returned information like below : ( but it may vary from different ISP )


The URL above is blocked and redirect to your localhost i.e.

What should I do if the URL is blocked or redirected ?

There are few different method to resolve this kind of issue. One method is to change your DNS IP settings ( Click here on how to start the OpenDNS )or using proxy server, but you can also create your own DNS resolve list by create a HOST file (only for those blocked websites) in your Windows XP!

Now, try to use other ISP’s CDNS or some free CDNS e.g. and to find out the actual internet IP address (Remember to ignore the MX, nameserver etc. IP addresses) . Use the same method above but changing the server IP address to other CDNS IP i.e.


Steps to change your HOST file :

  1. Locate your host file at C:\WINDOWS\system32\drivers\etc\ for Windows XP. ( For other OS, the host file may stored in different location )
  2. Open the “hosts” file using wordpad or notepad.
  3. If you have never edit this file before or it had never been edited by any other software e.g. firewall software, it should be look like similar as below :

# Copyright (c) 1993-1999 Microsoft Corp.
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
# For example:
#          # source server
#              # x client host       localhost

4.  Append the URL that you have resolved as above at the bottom  :

5. Then SAVE it.

6.  Done!

Additional Tips :

You may also use the same method as abovementioned to block the unwanted URL ( e.g. malware website, parental controlled sites etc. ) by append the target URL to You may add as much as you like!!!

Example :

For you knowledge :

Wikipedia : Domain Name Server
How DNS Works ?

1 comment:

Anonymous said...

Scatter symbols, wild symbols, bonus video games, and progressive jackpots all add a scrumptious style to these video games. 1xbet The Caesars cell app offers gamblers full entry to the casino. You can do every little thing from your phone that place to} do} from your laptop – and its much more moveable. The Caesars desktop-based casino offers gamblers a clean iCasino expertise. It may be accessed by way of any laptop, like a Mac or PC, using any browser. We encourage all our gamers to take pleasure in BacanaPlay casino responsibly.