Adding DNS record to an existing domain

| SYSTEM INFORMATION||
Real memory: 7% ( 1.93 GiB used / 1.01 GiB cached / 32 GiB total )

Virtual memory: 0% ( 0 bytes used / 512 MiB total )

Local disk space: 8% ( 8.06 GiB used / 89.8 GiB free / 97.87 GiB total )

Operating system
Ubuntu Linux 22.04.3

Time on system
[Thursday, January 4, 2024 10:26 AM]

Kernel and CPU
Linux 6.5.11-4-pve on x86_64

System uptime
[32 minutes]
[68]processes

Package updates
[All installed packages are up to date]

I have tried virtualmin pro for more than a week now. Coming from the mindset of ISPConfig and Manual DNS configuration (thanks to chatgpt), I’m confused as to how I can add new DNS record to a domain.

I’m running the system on Proxmox VE container (rather than an image install) due to some significant performance pluses and features like CEPH support.

But on the first week of trying virtual min and daily reinstalling/uninstalling due to the feature that I’m looking for (that was otherwise very easy to implement in ISPConfig), I’m stuck and I am lost at trying to configure a DNS record for. say:

I have ns1.example.com
I configured the first site: example.com

My purpose (from the beginning was):

setup or add/ in DNS Settings>DNS Records

I added: models.example.com, so it created for me the following:

models.example.com. 120s IN A mypublicIP ;Models for AI

Then because this did not create a VirtualHost, I manually created a virtualhost that does nothing except map to one of my ports that has AI models in it.

<VirtualHost *:80>
ServerAdmin webmaster@models.example.com
ServerName models.example.com

ProxyPass / http://example.com:1000/
ProxyPassReverse / http://example.com:1000/

ProxyRequests Off
ProxyPreserveHost On
ProxyAddHeaders On

ErrorLog ${APACHE_LOG_DIR}/models.example.com_error.log
CustomLog ${APACHE_LOG_DIR}/models.example.cm_access.log combined

Reloaded apache2 of course.

Tried to go to models.example.com, but couldn’t find it. curl models.example.com
curl: (6) Could not resolve host: models.example.com

Question 1: Is this not the standard way of adding a DNS record and configuring an Apache2 directive in VirtualMin?

Question 2: Did I do something wrong or missed something? I did a lot of research. Asked chatGPT (and my AI) as well as reviewed the docs and the forums, but after about two weeks of playing around, I can’t help but ask here.

Question 3: Is there a simpler way (if not today, perhaps in the future) of configuring DNS records just like that of ISPConfig? When I add subdomains directly to ISP config, I can create new Apache directives directly to the newly created DNS record.

In some forums I read in virtualmin, it seems that the only standard way of doing this is to add a new Virtual Server or Sub Server as in this example over here and here. So, I tried this. It works when I install Virtualmin on a physical server. But since I am constantly facing issues playing around, and I hate to redo it again and again, I tried to do it in the Proxmox container (CT), rather than (VM) or virtual machine. But, it seems that I’m also facing problem of name resolution when doing it on Proxmox.

I wonder if anyone here has successfully tried using virtualmin nested inside Proxmox.

TL;DR:

I guess my clearest question is, what is the standard way to a new ns record that apache can recognize.

Last question: Why does is apache being ignored when I add a new DNS record? Since Add/edit DNS records is there, it should be useful, but here I see it not serving its purpose. I mean why place add records, when one can’t actually add something that apache recognizes.

I hope you can guide me and thanks for creating such a powerful hosting management by the way. Kudos to the dev team. Can’t wait to some more intuitive improvements.

Thanks

you did install virtualmin through the install script on a clean OS ?
do you have Vmin managing the DNS records, i.e at the domain registrant names servers page they are set to your 2 name servers ns1.example.com & perhaps ns2.example.com ?

As a VM in proxmox, yes. I tried it in both container mode and vm mode.

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