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 forwarded public IP address to local IP 10.10.101.xxx(server address). On that server is my web. From LAN I have typing 10.10.101.xxx to view website.How to set the LAN to access on my website with dns (www.mysite.com). I have registered domain name.

share|improve this question

2 Answers 2

You need to create a DNS A record that points www.mysite.com to the public IP address. Your port forwarding should then do the rest for you.

share|improve this answer
    
I don't known how to create DNS A record. Any manual? –  Ognjen Nov 20 '10 at 10:56
    
google for nicolai langfeldt's dns howto –  petre Nov 20 '10 at 11:08
    
@Ognjen: The company you registered www.mysite.com may provide tools to allow you to do this on their DNS servers. Check with them and see. –  Iain Nov 20 '10 at 11:59
    
@lain: you not understand me. The company who is registered www.mysite.com form me is already set www.mysite.com to my public IP.Problem: In LAN where is my webserver I can't see website if type www.mysite.com but can see this website only when type local IP of webserver(10.10.101.xxx).How to view website from LAN when type www.mysite.com –  Ognjen Nov 20 '10 at 13:13
    
Do you have a DNS server on your LAN - if you do which one is it ? If not then what do the hosts on your LAN use for DNS ? –  Iain Nov 20 '10 at 13:50

As I see it, you have at least two options:

  1. Set up split horizon DNS, so that your LAN clients get the local LAN IP address (10.10.101.xxx) of your website, and the rest of the world gets the public IP address. OR:

  2. Set up hairpin NAT (a.k.a. NAT loopback, a.k.a. NAT inside-to-inside) on your gateway router, so that requests to your web server's public IP address from your LAN clients route through your gateway and back in again.

share|improve this answer
    
I have win server 2008 and install DNS server but don't know how to create split horizon DNS (this options is all I want) –  Ognjen Nov 22 '10 at 19:42

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.