-3

I have a public IP address that houses two applications e.g 197.18.2.48 houses 192.18.2.48/systems and 192.18.2.48/shop , I would like to map this two applications to my domain so that it reads

192.18.2.48/systems  -> systems.harris-dindi.com 
192.18.2.48/shop -> shop.harris-dindi.com

So the two systems with IP on the left should point to the subdomains on the right. I have tried using A records from the cpanel but it only accepts the IP Address. Please advise

H Dindi
  • 95

1 Answers1

2

CPanel is correct. DNS A records resolve names to IP addresses, not to applications. What you can do is add two A records pointing to the same IP address, like so:

systems.harris-dindi.com. IN A 192.18.2.48
shop.harris-dindi.com.    IN A 192.18.2.48

It is then up to the server running on 192.18.2.48 to route requests to the correct application, for example by the mechanism of name based virtual hosts.

Tilman Schmidt
  • 4,335
  • 15
  • 29