DNS server to answer queries from the hosts file.

Posted on 2006-04-26
Last Modified: 2010-04-18
I have a DNS sever.
I have some internally used URLs that look like part of a public name space but in fact are not.

i.e. should resolve to and so on.

if I put this info on a hosts file like:

on a pc and ping , it pings

however, how can I get the DNS server to answer queries with this information? i.e. when somebody asks the DNS server the address for , it should first check the hosts file before checking its own database and answer the query with this local ip.
is this at all possible within windows 2000 or 2003?
Question by:eggster34
    LVL 51

    Accepted Solution

    You would have to create a zone "" and put the host record in for "eggster".

    The problem with this is that you will no longer be able to go to the real Microsoft site.


    Author Comment

    yes. that's the obvious solution which I'm not too inclined to do.
    alternatively, is there a way to do this with stub zones etc. ? or to say "for any unresolved name for, do a recursive query"?
    LVL 51

    Expert Comment

    No.  If any zone gets added to your DNS it'll either be authoritative or forward to the real domain - you can't get selective.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    It is a known fact that servers reach the end of their lives. Some get there quicker than others, based on age, manufacturer, usage and several other factors. However, if your organization has spent time deploying Microsoft's Active Directory server…
    Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    779 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

    11 Experts available now in Live!

    Get 1:1 Help Now