1

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.

2 Answers 2

1

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.

7
  • I don't known how to create DNS A record. Any manual?
    – Ognjen
    Nov 20, 2010 at 10:56
  • google for nicolai langfeldt's dns howto
    – quaie
    Nov 20, 2010 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.
    – user9517
    Nov 20, 2010 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, 2010 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 ?
    – user9517
    Nov 20, 2010 at 13:50
0

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.

1
  • 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, 2010 at 19:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .