Unless
I don't understand something, your web server is not listening at domain.com (well, not at domain.com
only)
there is something I suppose not well understood regarding services, DNS and domain. You're not the only one and I remember having already discussed this long time ago on this same forum.
domain.com describes your domain (from DNS standpoint)
This covers all hosts and services one can find while resolving something.domain.com
This said, you may have defined in you DNS some entry aiming to catch any request not built with host.domain.com
That's an option, nevertheless, services hosted by servers are all supposed to be reachable using host.domain.com
that's also true for your web server:
this service is running on server that has, for sure, well defined host name. This said, one can configure web server (e.g. Apache) to answer to any request, kind of "catch all" mechanism: even if you don't ask for
www.domain.com, then server will answer with
www.domain.com (this works if you ask for domain.com)
but all these mechanisms are, somewhat, special implementations
BTW, I don't understand what:
I changed the IP address of the core domain
means