Direct all DNS Requests to a local IP address

Posted on 2009-02-13
Last Modified: 2012-05-06

I have created a portable wireless network and server (Windows Server 2003) which members of the public can access.  They are given an IP address via DHCP from the server.  There is no internet access available through this system.

I would like any user that opens up a browser to be directed to the web server of our server.

Essentially I want to capture any DNS requests and rather than performing a query - I want to return the IP address of the server.

I'm hoping there will be a simple way to this using wildcards within the Windows DNS server setup?

Question by:Mango-Man
    LVL 37

    Expert Comment

    are you talking about a walled garden scenario like for a wifi hotspot login page or something?

    That is a job for the wireless access point device - not for windows DNS.

    There are lots of solutions around for this - there is the popular freeware 'chillispot', and there is commercial systems like Mikrotik that can handle that sort of thing very well.

    LVL 70

    Accepted Solution



    If it's nothing more complex than stated above we can certainly do that. But this will really mess things up if you need to use the same DNS server to resolve public requests.

    1. Open DNS Manager
    2. Expand Forward Lookup Zones
    3. Right click and select New Zone
    4. Type is Primary
    5. Enter the Zone Name as . (just a dot, on its own). That makes the zone a Root Zone, responsible for everything.
    6. It will give you a default file name, that can stay as it is
    7. Disable Dynamic Updates if it asks

    Then you need a Wildcard record to provide the answer:

    1. Select the Root Zone (.).
    2. Right click and add a New Host (A) Record
    3. In Name enter *
    4. Enter the IP address of the server you want to respond

    That's it, on a connected client run "ipconfig /flushdns". NSLookup or Ping to any name should reply with the IP we've set above.


    LVL 1

    Author Comment

    Perfect - thanks!

    Expert Comment

    Thanks Chris-Dent!  That works great but what if you want to only direct initial http req to a single splash page, then the wireless hotspot user can go wherever they want on the Internet.  Basically, I am trying to find a way to do this without changing multi-vendor firmware on about 20 disparate hotspots and use a DMZ DNS server to start the user on a splash page and then set them free from there.  Any ideas??
    LVL 70

    Expert Comment

    by:Chris Dent

    Then you need to look beyond DNS at products built to do that for you I'm afraid.

    It's something Cisco discuss in their documentation:

    We won't be able to take that function away from the network layer though.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Occasionally you run into the website or two that will not resolve properly using your own DNS servers.  Some people simply set up global forwarders for their DNS server.  I don’t recommend doing this because it can cause problems resolving addresse…
    I've written instructions for one router type, but this principle may be useful for others of the same brand and even other brands of router. Problem: I had an issue especially with mobile devices that refused to use DNS information supplied via…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now