How to setup new domain on Virtualmin

Centos 8:

Dear experts

  1. I have a new domain in Google Domain (example-domain. com)

  2. my internal IP is 192.168.1.4:
    (with this IP address Virtualmin works OK)

  3. my external IP is 123.123.123.3 ( for example )

How can I make it work

like blog. example-domain.com

so, I want to make it accessible from my external IP 123.123.123.3 to 192.168.1.4 (blog. example-domain.com)

could you help, I’m pretty new in here

thanks for your help in advance.
sam

Hello @samito and welcome to the community.

To add a new domain (or virtual server, in Virtualmin lingo) you need to quite simply:

Virtualmin -> Create Virtual Server.

Enter the blog.domain.tld and whatever password you want to use; keep all other settings at their default values and it should work the way you want - Virtualmin should be able to handle the internal and external IPs automatically.

You have pointed the DNS of your domain to the NS of Virtualmin, right?

Dear Calport

Thank you so much…

only one thing that I don’t know how to setup DNS records on my Google Domain,( I know how to put the value,) but could you guide me how to pointing to my Virtualmin

and

what will be my NS (name server)? where should I go to setup NS??

thanks for your help

sam

This should answer all your questions

You really should RTFM and the messages on these forums a bit more, @samito. :slight_smile:

Hi, I have one question.

I have VPS (CentOS7) and Virtualmin installed years ago. Recently I have sold primary domain, and now I want to use another domain as primary (existing domain on my server). How to do that? Change hostname or there are some other configuration to do? I’m asking, before try anything because domain I want to use is working site and I don’t want to break something.

In short: oldhostname (sold), and now I would like to have mydomain.com to be primary.

@IvanS, your Q should be asked individually… :wink:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.