Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using microsoft DNS All/most of our local hosts ( with in ) are in following domain

* So a host name will look like

Is it possible to set up wild card DNS entries of the form ?


Note: The URL ends with .com, all other hosts so far ever set up in the DNS were of the format *

what i am trying to achieve is the following. A user with in internal network types a url in browser and enters. Since there is a wild card entry in DNS, the user gets routed to host mapped to * in the DNS

Note : at the same time, has a public DNS entry and that is mapped to a physical IP in some other network (data center)

share|improve this question

migrated from Oct 10 '12 at 17:44

This question came from our site for computer enthusiasts and power users.

It is possible, but probably not what you want - it would be helpful if you could explain a little further what you want to achieve? – Claudius Oct 10 '12 at 16:11
@Claudius thanks, I have updated the question. – ring bearer Oct 10 '12 at 16:46
You don't put "URL entries" in the DNS. URL is a Web concept, not a DNS one. – bortzmeyer Oct 10 '12 at 20:12
@ringbearer Wait, is the fact that your normal hosts are in .org and you're asking about .com pertinent the question or is that a typo? – Dan Oct 10 '12 at 20:29
That was not a typo - that was the intent – ring bearer Oct 10 '12 at 21:10
up vote 3 down vote accepted

Yes, this is possible - you will need to create a DNS zone on your DNS server(s). You can do one of two things:

Create a zone for the whole of `` and then add *.subd

The advantage is that you will have complete local control over this domain, the potential disadvantage is that it create a full split DNS setup. Meaning that if a load of subdomains exist (E.g,, etc etc) you will need to recreate all these in your DNS Zone.


Create a zone JUST for `` and then a wildcard for the whole thing

The advantage here being that will still go through your normal forwarding routes meaning you don't have to mess. The disadvantage is that you need to be very aware of what you do and don't have zones for. Troubleshooting may be more difficult and it will get terribly messy if you want and in the future.

The best solution will really depend on what is currently doing and what you want it do. You also need to very clear that running the zone locally means you now have two possible places where DNS entries are. You should ensure you clearly understand your forwarders and so on.

share|improve this answer
No, creating a zone is not necessary. A subdomain is sufficient. – bortzmeyer Oct 10 '12 at 20:11
@bortzmeyer Sorry if I've missed something, but how? His domain will be .org, and he needs a .com zone – Dan Oct 10 '12 at 20:27
Try to avoid a split zone scenario. Just try to add local subdomains for the specific things that you want to handle internally. – jishi Oct 10 '12 at 21:23
@jishi Split-DNS isn't automatically a bad thing, you just have to be aware of what you're doing. – Dan Oct 10 '12 at 21:26

Yes it is possible. Just setup an A or MX record in the form * Any more specific answer is dependant on your DNS Server.

share|improve this answer
Pardon my ignorance. So, does that mean that we can treat DNS records just like /etc/hosts entries ? – ring bearer Oct 10 '12 at 18:46
@ringbearer answering this question would require knowledge about how you actually treat /etc/hosts. Of course, both mechanisms provide a mapping between names and IP addresses, DNS as a server-based approach and the hosts file as a local approach. For some hints on how to implement a wildcard entry with MS DNS see – the-wabbit Oct 10 '12 at 19:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.