Answer the question
In order to leave comments, you need to log in
How to bind subdomains to point to my dns?
Good day. There is a dedicated ip, a domain name, say domain.com and a server on which dns is raised. The domain is delegated to my ip. You need to attach subdomains to a domain name, for example, subdomain.domain.com. Subdomains are registered on the dns server on my machine and point to local ip. Everything would be fine, but from another machine, outside my network, subdomain.domain.com also resolves to the local ip 192.168.1.1. How can I make it so that outside the request goes to the external ip of my server, and then redirects to 192.168.1.1 on the server? I will be grateful for help.
Answer the question
In order to leave comments, you need to log in
Ok, maybe I didn’t put it that way, let’s say I have several services on the network that I need to have access to from the outside. For example mail.domain.com bind to 192.168.1.3:8100 and files.domain.com. to 192.168.1.3:8080. And get outside to another machine at pc2.domain.com which is in LAN at 192.168.1.2. In the domain control panel, of course, there is a record pointing to ip, there are no problems with this.
it is better to always specify white IP addresses in DNS, otherwise there will be problems with access from outside.
To get from the outside to the addresses that you specify, "port forwarding" is used.
on Linux iptables is used for this, how to do it in windows - Google.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question