Create own NS for a Virtualmin virtual server (domain)

SYSTEM INFORMATION
OS type and version Ubuntu Linux 24.04.3
Webmin version 2.520
Virtualmin version 7.50.0 prof
Webserver version 2.4.58
Related packages SUGGESTED

Hello,

We used the virtualmin server as a nameserver.
But now we need a virtualmin domain (with an own ip-address) to act as a nameserver for itself.

We searched the forum and documentation, but couldn’t found the correct info.
Is that possible and do you have documentation how to configure it?

With kind regards,
Age de Jong

Expand your example as it is hard to know exactly what you want.

On the choosen domain you need your NS1 and NS2 records along with matching A records. Any requests sent to these nameservers will be handled by your server.

nameservers for domain, should be declared with their ip addresses on registrar.
not just with an NS subdomain.

Hello and thank you for your reactions.

I will try to explain more, hope I use the correct Englishs terms.

Virtualminserver: servername.nl (own ip-address)
Virtualdomain: domain.nl (own ip-address)

We now use the nameservers from servername.nl for all domains at our registrar.

Currently at our domainregistrar, for servername.nl we have as nameservers:
host.servername.nl
host2.servername.nl

At domainregistrar we have for domain.nl nameserver:
host.servername.nl
host2.servername.nl

For domain.nl we want to use the following nameservers:
ns1.domain.nl
ns2.domain.nl

All names now forward to the ip-address from servername.nl

We are wondering if it is possible/needed to use nameservers for each domain?

With kind regards,
Age

as said , in registrar you need to use ns1.domain.nl ALONG WITH its ip address. not just ns subdomain. same for ns2.
ask registrar if this is something you can do from whatever access they’re giving you… registries need to know the dns servers and ip addresses.

putting just subdomain ns1.domain.nl wont work. registry doesn’t know where to find domain.nl nor ns1.domain.nl. that’s why the nameserver ip is needed.

Hello,

There are A-records at the registrar dns-settings pointing to the ip-address for host.servername.nl (and host2).

Gr, Age

You need to add A records to your zone for your name servers, as well as NS records. You can edit records in Virtualmin in the DNS Settings menu.

And, you need glue records at your registrar to tell the world to consider your server authoritative for your domain.

1 Like

Thanks, added the glue records at the registrar and added the NS records within Virtualmin.

Gr, Age