The problem of Domain name Resolution after the Construction of gitlab

A warehouse has been built using gitlab in the company. The private network address is 192.168.11.202 ip 80. Now the router is used for port mapping. If the IP mapped to the public network is 5.6.7.8 ip 1122, how can a domain name be used to resolve to this address?


just resolve the domain name to 5.6.7.8


you can resolve it directly to the public network address. Record A to 5.6.7.8 , and then visit the domain name: 1122 . First, your domain name will be resolved to 5.6.7.8 , then the browser will access the 1122 port of 5.6.7.8 , and then package it to the 192.168.11.202 port of your router that is mapped to the intranet 80 port. Is that clear?

Menu