"A Record" To Point Subdomain to another local server webpage

0 votes

Hi, 

I have a registered a domain with 2 subdomains and I am tryng to point one of the subdomains to a local server. 

I have tried to create multiple different "A Records", however, when accessing the domain URLs via a browser, it keeps just displaying the Afrihost coming soon webpage. I have further tried to remove the index.html file from teh directory and now I am getting a forbidden response (403). 

The "A Records" that I have tried includes: 

  • Record Name: @ and IP address: xxx.xxx.xxx.xxx
  • Record Name: subdomain_Name and IP address: xxx.xxx.xxx.xxx
  • Record Name: www.subdomain_name and IP address: xxx.xxx.xxx.xxx

xxx.xxx.xxx.xxx represents my external local server IP address. 

I have configured port forwarding on my local environment and I can access the local server from the internet over port 80 and 443. Therefore, it is not a local web server issue. 

What I am trying to achieve is by using my Afrihost domain, create a subdomain and have the contents of the local web server to display on the subdomain.

Please caould you advise if there is anything that I am missing or any other records that I need to configure?

Thanks :) 

asked Aug 18 in DNS by jason.newport.02 (120 points)
edited Aug 19 by jason.newport.02

1 Answer

0 votes

Good day, 

I trust you are well, 

kindly forward your request to hosting@aftihost.com

Please follow the link: https://help.afrihost.com/topic/domains-and-hosting/how-to-point-a-domain

If you require further assistance,   

please send a message to our WhatsApp helpline: https://whatsapp.afrihost.com  

or visit our Help Centre: https://help.afrihost.com/  

or see our FAQ page: http://faq.afrihost.com

answered Aug 31 by Nino (28,510 points)
...