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.

I have a simple concept question regarding to the hostname configuration on DNS server.

I am trying to set-up a webserver where there is an internal address and external address.

Example: Server name: Puppy.test.com External address: 198.165.1.51 Internal address: 10.10.8.51

Does that mean I to have to give the external DNS server with puppy.test.com to point to 198.165.1.51 and internal DNS server with puppy.test.com to point to 10.10.8.51

In order to get both address resolvable by the DNS server? (both internal and externally)

share|improve this question
    
If your server is itself the gateway from 10.0.0.0/8 to the exterior and some internal client tries to make a TCP connection to 198.165.1.51, the OS should route the packet to itself. –  Nowhere man Sep 4 '12 at 22:30
    
This is not a routing issue. He needs puppy.test.com to resolve to different addresses for internal and external clients. Therefore he needs to configure different addresses in internal and external DNS. So, basically, the answer to the question is: yes, that's exactly what you need to do. –  Ansgar Wiechers Sep 4 '12 at 22:47
add comment

1 Answer 1

Yes. This is called split horizon DNS, and is implemented in Bind with its views feature.

share|improve this answer
    
Thank you folks for answering!! I will give it a try :) Greatly appreciated it!! –  Cute Puppy Sep 5 '12 at 18:47
add comment

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.