Mac OSX 10.8 Server DNS Domain Routing

Posted by Oldek on Server Fault See other posts from Server Fault or by Oldek
Published on 2012-11-09T16:24:23Z Indexed on 2012/11/09 17:04 UTC
Read the original article Hit count: 175

Filed under:
|

I just cant seem to figure out the logic in how to configure my Mac Server.

So I have set up an DNS, which will take the domain and all subdomains and point towards an IP. File: db.mydomain.com (in /var/named/)

mydomain.com.                      10800 IN SOA      mydomain.com. admin.mydomain.com. (
                                                    2012110903 ; serial
                                                    3600       ; refresh (1 hour)
                                                    900        ; retry (15 minutes)
                                                    1209600    ; expire (2 weeks)
                                                    86400      ; minimum (1 day)
                                                    )
                                  10800 IN NS       mydomain.com.
                                  10800 IN A        10.0.1.2
www.mydomain.com.                    10800 IN A        10.0.1.2

So I want all of these requests to be requested to the 10.0.1.2 server, as I run 2 servers in my cluster. This one has always handled the requests, and now I want to add a server in between. So the server in between will get all the signals from my router which NAT the trafic coming from outside.

So after setting this up and trying to point my port 80 towards my new server which will be the middle point, it doesn't work. Is it even possible to do it this way?

First server: Mac
Second server: Linux

So what I try to achieve once more:
1. User goes to mydomain.com or www.mydomain.com
2. User request gets handled by my first server
3. First server refers to a local server, which is only available locally (it is configured to allow requests on port 80 and handle them)
4. Second server receives signal
5. Second server returns a request (either directly send to user or send through first server, whichever is most secure and configurable)

I also want to be able to set up domains that lead to other servers in the future, and some that are only available within the VPN. (If that changes anything)

I hope some kind soul could help me with this, it is really cumbersome for my mind to get the logic here.

Do I have to configure my other server in any way?

/Marcus

© Server Fault or respective owner

Related posts about dns

Related posts about macosxserver