Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Summary

Is it possible to add some custom subdomains, for an existing domain name that's hosted on another DNS, for our internal DNS?

Details

Currently, our developers at our office hack their own host files by adding in some custom subdomains like the following :-

  • 192.168.0.100 dev.www.foo.com
  • 192.168.0.100 dev.foo.com

and we own the domain foo.com BUT it's not hosted by us, but a 3rd party.

BUT, we do have an internal DNS server which is mainly being used as a CACHE server. Of course, we can add our own forward lookup zones. But if I do that, I'm afraid that all the EXISTING data for that real zone will not be used.

eg. imagine the zone foo.com has the following (but I don't know about it)

  • www.foo.com
  • hello.foo.com
  • goodbye.foo.com

if I don't add that data to the zone, then when a user tries to access that domain .. it will not resolve. (and lets not talk about keeping the zone manually up-to-date ... cringe!)

So! is it possible to inherit (ack - my programming hat snuck back on) or to copy or sync a domain ... and then I manually add those 2 extra subdomains in for that zone .. but of course unless a person knows to use my internal DNS ... they will never been available to anyone.

Is this possible?

share|improve this question
    
Which DNS server are you using? The Active Directory one, or a different one (like bind)? –  Mark Henderson Apr 5 '11 at 1:35
    
Windows Server 2008 r2 DNS. (I didn't think the dns software was important .. with the assumption being, most popular DNS software all do the same thing, more or less). Oh. and we're in a small AD network I set up also (6 users only). –  Pure.Krome Apr 5 '11 at 2:28
    
it probably doesn't, but better safe than sorry :) –  Mark Henderson Apr 5 '11 at 3:09

1 Answer 1

up vote 0 down vote accepted

You can do it if you are willing to change your layout a bit. I would do something like dev.foo.com then under it have www.dev.foo.com. Or you could do something like project.dev.foo.com and then www.project.dev.foo.com.

Another option would be to do something like project.dev internally (i know i know, making up TLDs is not cool, but it works and well it works). Or if you want to be kosher get a separate dev domain and test against that.

Another option is to just add the dev entries to your public dns.


Actually just thought up another hack that might work, but would require some manual intervention.

  1. Create a zone www.foo.com
  2. set the @ record to your public www.foo.com IP
  3. create a host dev.www.foo.com
  4. create a zone dev.foo.com
  5. set the @ record to your dev instance.

This way your DNS server will only think it's authoritative for www.foo.com, dev.www.foo.com and dev.foo.com and pass anything else under foo.com to the outside DNS servers.

It's a hack, and you'll have to manually update the @ record for www when it changes, but it'll work

share|improve this answer
    
So u're basically saying: U can't extended an existing zone. U gotta do some other hacks? –  Pure.Krome Apr 5 '11 at 3:15
    
@Pure correct, your local server would think that it is authoritative for that zone, and return NXDomain for any records not present. IF you wanted to manually mirror the production setup (uhg) you could get away with it. –  Zypher Apr 5 '11 at 3:23
    
@Zypher - how could I mirror the primary zone? –  Pure.Krome Apr 5 '11 at 3:25
    
@Pure Manually. –  Zypher Apr 5 '11 at 3:26
    
@Zypher -damn. exactly what i want to avoid. What about making a secondary? could I do something like that? –  Pure.Krome Apr 5 '11 at 3:32

Your Answer

 
discard

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.