How to change to another name server

Here is the thing, when I first setup my virtualmin, I placed one of my domains as the nameserver, now I no longer use that domain, so I want to change my name server to a new one or set it to be the ip address of the server.

How I access my webmin now:

  1. server_ip_address:10000
When I check: sudo nano /etc/resolv.conf I get this: nameserver nameserver nameserver search eu-west-1.compute.internal
**I also tried changing:** Networking > Networking Configuration > Hostname and DNS Client
Changed **the DNS servers input** from **** to ****
I get this error "Failed to save DNS configuration : '' is not a valid nameserver IP address"

Virtual servers are working fine, I just want to remove old domain from the nameserver, and be able to set a new one as the default. what's the right way to achieve this?

perhaps a similar question…

“Change nameserver in my virtualmin server/s”

posted from “How do i setup nameservers for my server”

  1. go to the domain name registrar for, and register your server as a nameserver (so at your registrar you need to point to the new nameserver name you wish to use)

  2. log into Virtualmin, select your “” domain, click Server Configuration -> DNS Records, and create a new “A - IPv4 Address” record for and

  3. tell Virtualmin to use your nameservers when it generates NS records for new Virtual Servers that it creates. You can do that by going into ‘System Settings’ -> ‘Server Templates’ -> ‘Default Settings’ -> ‘BIND DNS Domain’, and set ‘Master DNS server hostname’ as well as ‘Additional manually configured nameservers’.