If you do this, consider using the IP Address instead of a DNS Hostname for inline images, JavaScript, and CSS files (http://1.2.3.4/file.png). This avoids the additional DNS lookup, which can take a second or two. If you can change that IP address within a configuration file and if you would have control or knowledge of when that IP address changes, there is no benefit to using a DNS name.
Note that this may not be advisable if:
- You don't have control or knowledge of when that IP address would change.
- You are serving via HTTPS (I'm not sure you can get a signed certificate from a CA for an IP address).
- You need to use DNS-based load balancing.