The only ways one FQDN will bring you to another are DNS and something happening server side.
Out of the box a Discourse instance will catch all queries on :80 and direct it to the default site.
Without visibility of your DNS records before they were changed I can’t comment about what was up in this specific case, the additional nginx complicates matters too.