problem description
I have built a dns server in the intranet, A Magi A has a public network IP and a private network IP, has a nginx server B, a public network IP, and a private network tomcat,C,C, the port of which is 80menC, the domain name is www.123.com,B reverse proxy C
I need
1. Public network request DNS,DNS returns www.123.com= > B, and then client accesses BMageB reverse proxy C
2. Private network request DNS,DNS returns www.123.com= > C, and then client accesses C directly