Domain with a public IP and Server with local IP.. which IP on the DNS ?

Hello,

*+résumé :+*

I have difficulties joining a domain name with a public IP and my DNS service on a local server with an IP : 192.168.X.X



*+explanations - material:+*

I have a domain name mydomain.net.
A company manages the domain name and hosts the subdomain www.mydomain.net towards his server.
(He manages the mails also)

I have requested from him a subdomain: intra.mydomain.net to point towards my local server.

The network configuration is like that:

http://serveur.levillage.org/Reseau1.png

very simple :

1 provider(free)> gives fixed public IP > modem ADSL freebox > router translate Public IP to Lan > switch > server with fixed IP but in 192.168.X.X

*+request :+*

I would like to have an Ical group working.

So I need to configure the DNS on the macOsx server (10.5.4) so that he manages the zone intra.mydomain.net.

I have configured :

Primary Zone name : intra.mydomain.net
Name servers : server.intra.mydomain.net
DNS Zone > nom machine : serveur.intra.mydomain.net
DNS Zone > IP : 192.168.1.252

if I do a dns hostname on server.intra.mydomain.net it gives the correct IP address 192.168.1.252 and the reverse also..

Conclusion

*how do I do to point intra.mydomain.net towards the server ?*


thanks

null

macpro 16 Gb Ram, Mac OS X (10.5.4), server

Posted on Sep 6, 2008 9:28 AM

Reply
10 replies

Sep 6, 2008 12:00 PM in response to anotherbitethedust

Hi

Not sure if I got all that? I'm guessing you want to point the A record for intra.mydomain.net to the Public IP Address configured in your router at your server's location. Ideally you should have a fixed external IP address or a DynDNS Account. Open whatever ports are relevant for whatever service your server is running that you want to allow external access to.

This is a list of well-known TCP/IP ports used by Apple:

http://support.apple.com/kb/TS1629?viewlocale=en_US

Tony

Sep 6, 2008 12:15 PM in response to Antonio Rocco

Hello, and thanks for loking my post.

Yes you understood correctly.
I have already a fixed IP given by the provider.
I have given that IP to the company that has done the DNS record of intra.mydomain.net pointing towards that IP.


But Then I'm a bit stuck, because:
1/ I don't know if I have made my configuration on the MacOSX server DNS's correctly in putting intra.mydomain.net as the primary zone name

2/ I don't know if I have to configure on the router:
a virtual server to point out the dns on the local server
a Nat translation of the public IP to local server's IP, but then all other traffic from other mac clients would return also on the server..
an ARP proxy


has someone a similar network configuration ? (it's pretty much basic..)
What did you choose on your router ?

thx

Sep 6, 2008 1:22 PM in response to anotherbitethedust

in fact there seems to have different possibilities on the xincom router:

1 - host network identity
2 - static routing
3 - virtual server (enabling a type towards a lan IP)
4 - custom virtual server
5 - multi DMZ (but that makes me scary to open up the server to the outside)
6 - NAT
7 - DNS loopback (domain name - private IP)?



what do you people choose for your mac server's ?

Sep 6, 2008 2:00 PM in response to Antonio Rocco

thx for looking on my post..

If i choose NAT, can other Imacs on the local network access internet if the Wan Public IP translates directly to the server ?

this is an image of the interface:

http://serveur.levillage.org/Reseau3.png

If i make an alias of the Public Wan Ip to server's Ip.. can the other Imacs surf on the wan ?

thanks and sorry for my question if it's basic..

Sep 6, 2008 2:27 PM in response to anotherbitethedust

Hi

If your server is using it's own DNS Service to successfully access the internet then you can point your clients on the Private side of NAT to use your Server's DNS Service to access the internet or point them to your ISP's DNS Servers or even use the Router's IP address as they would pick up whatever the Router is receiving on its WAN port.

This is not difficult. At its most basic if your broadband service is through your phone line:

(a) Internet > Modem/NAT Router > Switch > Server, Clients, Printers and everything else

If your broadband service is via a cable provider:

(b) Internet > Cable Modem > NAT Router > Switch > Server, Clients, Printers and everything else

In (a) the fixed Public IP address provided by your ISP is on the WAN/Public side of your Router. In (b) it's still on the WAN/Public side of your Router as the Cable Modem is 'passing' it on via its LAN port. Whichever broadband service you have you still use NAT to control access from the Public (WAN) side of your Firewall to the Private (LAN) side.

If all you're interested in is the iCal Service it work best if your clients are using the Server to resolve DNS. This can get complicated If your website is hosted externally. But only if you configure internal DNS Services to use www as the CNAME or A Record for the Server's Web Service. You will need the Web Service to enable Wiki if you want group calendars. The other players in a successful iCal Service is Open Directory (Kerberos running) and DNS. You may want the DHCP Service as well although if your Router doing this you could leave it there.

If you want to allow external access for iCal Services it makes sense to match the internal domain to the external one. Control external access using port forwarding and firewall rules. How you decide to do this depends on your network topology.

Of course this only my opinion and possibly others may post offering different methods.

Tony

Sep 6, 2008 3:09 PM in response to anotherbitethedust

Hi

NAT is automatic. As far as I know at its most basic it allows translation of a single fixed Public IP address to multiple Private IP addresses. As far as the Public side of NAT is concerned everything on the Private side is presented as that single IP address. At its most basic everything on the Private network (LAN) is allowed 'trusted' to access the Public network (WAN). Everything on the Public side is not allowed 'untrusted' to access the Private network - unless you want it to. This is where port forwarding comes in. Depending on the router manufacturer some offer port forwarding and firewall rules as two separate configurations. Others offer it as single service.

Tony

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Domain with a public IP and Server with local IP.. which IP on the DNS ?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.