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 the following problem: i installed a new test-mailserver in our office today and did some port-forwarding on our router to the specific mailserver ports. everything works fine, except the following situation:

i want to use a url foo.bar.at, whos a-record points to our fix network ip. this work fine when checking mails out of our office, but when trying in the local wifi, the url canÄt be accessed because of the router.

the problem is: on our iphones i only want to use ONE url to check the mails in the wifi AND outside of our office-network.

any advice here how this can be fixed?

thanks in advance!

share|improve this question
add comment

1 Answer

up vote 5 down vote accepted

Two options:

  • "NAT Reflection" is the term for getting your router to do the NAT for the outside address for traffic originating internally. How this is configured (or whether it can be) depends completely on your router.
  • DNS view splitting. For this, you'd configure your DNS for internal systems to resolve the external name to the internal address, as opposed to letting them resolve the public address. This depends on having a way to override that record for internal clients - what's your DNS configuration look like?
share|improve this answer
    
actually we use our providers dns servers. is it possible to use our own, add this specific domain and redirect the other requests to our providers server? thanks! –  Tronic Jan 27 '12 at 21:48
    
Yes, absolutely; you can accomplish this with any of the common DNS server packages. –  Shane Madden Jan 27 '12 at 21:51
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.