Exchange 2013 (on premises): cannot get external AutoDiscover to work

Just got this figured so contributing- I had to create on the local LAN DNS a zone with the EXTERNAL domain, then point the mail.xyz.com to the EXTERNAL IP, and also create a corresponding CNAME for the autodiscover.xyz.com entry, All basically emulating the external DNS in the LOCAL LAN.