So I have two public IPv4 address, provided by my VPS provider. My root domain (say example.com) has to be served from one IP addresses (added as an A record to
@) which works flawlessly. However, I have a subdomain (say api.example.com) which has an A record that points to my second IP address.
The catch: I can view the page by manually typing in the IP, but not by the subdomain name (i.e
api.example.com). Can anyone point me in the right direction?