Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Hi this is probably a stupid question....but here it goes

I have an Ubuntu server (hostname: intranet) with apache2 running with virtual hosts. Lets call them "website1.intranet" and "website2.intranet".

The ubuntu server is on a Windows AD "domain.local"

When I try to access the virtual hosts with a hosts file pointing to the intranet IP address it works fine. Without the ip in the host file it does not work. I really want others in the company to have access to it without having to add the server to their host file. So I thought it would be possible to get our DNS server to figure it out :)

I tried to add an A record to our DNS forward zone but it doesn't help. I'm a noob in all this but eager to learn :)

Our DNS and AD in on a Windows Server 2003 and probably could be set up better but I don't know if thats the problem or not.

Anyone out there that can help me out?

share|improve this question
up vote 1 down vote accepted

If the Ubuntu machine is known as intranet.domain.local in AD DNS, you could add a wildcard to it:

*.intranet.domain.local. IN A

NOTE that you must adjust the apache virtualhost Servernames accordingly.

share|improve this answer
Thanks adaptr! thats what I needed :) – user108919 Feb 1 '12 at 7:54

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.