Need Help in Creating a Subdomain that points to an external IP

Hi!

First of all, sorry if I really sound dumb.

I have a website, www.domain.com hosted on a VPS server (Linode), but I need a sub-domain (news.domain.com) to point to an external ip (111.111.111.111). The problem is after setting up a sub-server that is pointed to 111.111.111.111 (external ip) whenever I'm navigating to news.domain.com it displays server DNS address could not be found.

Here's what I did:

  1. on the DNS manager of the Linode, I created an A Record:
    • Hostname: news
    • IP Address: 111.111.111.111
  2. In Virtualmin, I created a sub-server under www.domain.com with the following configurations:
    • Domain name: news.domain.com
    • Enabled Features: Enabled the "Setup website for the domain?"
    • Network interface: Share on IP 222.222.222.222 (ip address of my server)
    • External IP Address: 111.111.111.111
  3. Navigated to news.domain.com ->  This site can’t be reached news.domain.com's server DNS address could not be found.
  4. Navigated to www.domain.com and the website is working perfectly fine
  5. Checked the 111.111.111.111 just to be sure by entering http://111.111.111.111 on my web browser and the content is properly displaying.

I also didn't change anything from the server configuration template.

I also waited 30 mins before checking just to be sure that the changes in the master zone is properly applied.

Did I miss something? Is it really possible for Virtualmin to handle this setup and if not, any other way to do it without redoing all over again?

Thanks in advance!

You might need to wait more than 30 mins. DNS propagation can sometimes take 24-48 hours. I use redirect to get any domain to “forward” to another by using this index.html code:

http://DOMAIN/

(DOMAIN in the above sample can be in the form of example.com or 111.222.333.444)

I would double-check your DNS provider… DNS configuration to allow all subdomains automatically should include a “*” in the DNS record.

https://en.wikipedia.org/wiki/Wildcard_DNS_record

Hi, you can do apache proxy or create subdomian and point to dif. IP at register level or setup very simple redirect via htaccess - those are easiest.