How to change server.domain.com to another name server

2 posts / 0 new
Last post
#1 Mon, 09/24/2018 - 05:34
kash

How to change server.domain.com to another name server

Hello, 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
  2. server.my_old_domain.com:10000

When I check: sudo nano /etc/resolv.conf I get this:

nameserver 127.0.0.1
nameserver server.my_old_domain.com
nameserver 172.31.0.2
search eu-west-1.compute.internal


I also tried changing: Networking > Networking Configuration > Hostname and DNS Client
Changed the DNS servers input from server.my_old_domain.com to server.my_new_domain.com
I get this error "Failed to save DNS configuration : 'server.my_new_domain.com' 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?

Mon, 09/24/2018 - 22:12
adamjedgar

perhaps a similar question..

"Change nameserver in my virtualmin server/s"

https://www.virtualmin.com/node/38725

posted from "How do i setup nameservers for my server"

https://www.virtualmin.com/documentation/dns/faq#How_do_I_setup_nameservers_for_my_server

  1. go to the domain name registrar for example.com, 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 "example.com" domain, click Server Configuration -> DNS Records, and create a new "A - IPv4 Address" record for ns1.example.com and ns2.example.com

  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'.

AJECreative is the home of $5 webhosting, $15/month VPS servers (1cpu,1gb RAM, 25GB storage)
Centos7, Debian9, or Ubuntu18LTS
Available Control Panels = Centos-Webpanel, Cyberpanel, or Virtualmin

https://ajecreative.com.au

Topic locked