DNS returns different domain names based on IP

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

Aug.06,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3dbb6-2c3b3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3dbb6-2c3b3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?