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.

Hello i am trying to setup a DNS to resolve to two different servers using ip addresses.

we currently have the following set up

*.domain.com A record -> Server A IP
example.domain.com A record -> Server B IP

This works fine however we want to be able to do the following but are unable to get it to resolve correctly

*.domain.com A record -> Server A IP (any other request ending in domain.com)
*.example.domain.com A record -> Server B IP (any request ending in example.domain.com)

in this example if i ping test.example.domain.com i get server A's Ip. Where as i would like to get server B's IP

Is what im trying to do possible? and if it is can someone please offer some guidance on how it should be set up.

Thanks

share|improve this question
    
BIND or Windows? –  dusan.bajic Oct 11 '13 at 13:43
    
Windows, sorry ill retag the question –  Nicholas King Oct 11 '13 at 13:45
1  
I configured this in my environment and it works as expected. –  dusan.bajic Oct 11 '13 at 14:01
    
creating 2 diff zone? one for domain.com another for example.domain.com should solve this problem i havent tested it on windows but in linux with bind i have something simillar for internal views. –  tike Oct 11 '13 at 14:06
    
Hello @dusan.bajic im an idiot i was pinging example.domain.com and getting server A's ip. it does indeed work as i need to ping foo.example.domain.com to get the correct ip. Would you kindly create an answer saying such so i can mark it as correct. Thank you very much for your assistance :-) –  Nicholas King Oct 11 '13 at 15:30

1 Answer 1

up vote 1 down vote accepted

I configured this in my environment and it works as expected.

share|improve this answer
    
thank you very much @dusan.bajic –  Nicholas King Oct 11 '13 at 15:37

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.