F
F
FRANZEE2016-04-29 15:15:20
Domain name market
FRANZEE, 2016-04-29 15:15:20

How to access your site by domain name if the site is located in the local area?

Actually the question is, we are making a website, the server is located in our local network, we have attached a domain there. Everything works through a proxy, but it does not go directly. Where to dig?
Thank you.
UPD.
Registered a domain. Through Yandex DNS, they connected it to a white ip through a firewall and redirects it to the local PC where the site is located.
There is a domain controller with a dns server, added an entry to the direct inspection zones there (domain name -> local site ip) - does not work.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Afatar, 2016-04-29
@Afatar

Dig towards DNS. There is no server, then prescribe each hosts

L
l0ser140, 2016-04-29
@l0ser140

added a domain

What does screwed up mean? A-record with local IP?
According to the description of the problem, it looks like you have forwarded port 80 from the router to the server. You have added an A-record with the external address of the router. And you are trying to get to it from LAN.
In this case, the redirection works before NAT, and since the redirection goes to the local network, the rule for NAT does not work at all, the server receives a packet from the local machine and responds to it, and the local machine waits for a response from the external IP, not the server's local address.

A
Artur L, 2016-05-14
@westex

google -> Hairpin NAT. Home routers are automatically made with port forwarding. Advanced pieces of iron require additional. settings

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question