Is it possible to change hostname and nameservers?

Is there an easy way to change hostname and name servers on my server please?

Thanks tpnsolutions!

Are there any considerations regarding name servers?

I want to change the hostname and nameservers from hostname.mydomain.net to hostname.mydomain.org and ns1.mydomain.net to ns1.mydomain.org

I guess there must be someway I can have all nameservers point to the same IP and then when fully propogated remove the old NS1 and NS2?

I’d want to minimise downtime.

(Will I also need to reconfigure anything for postfix/email or any other services?)

It should suffice to add A records to the “mydomain.net” zone for the “ns1” and “ns2” hosts and then use these names as NS records. I have a similar setup on my system.

This is a semi-guess though, details depend on how exactly your system is set up now and what your intended setup looks like. You might want to post current and desired example zone files here, in [code][/code] tags.

Brook,

== CHANGE HOSTNAME ==

  1. Go to:

“Webmin > Networking > Network Configuration > Hostname and DNS Client”

== ADJUST NAMESERVERS ==

  1. Go to:

“Virtualmin > System Settings > Server Templates > Default Settings > BIND DNS domain”

  1. For each domain, go to:

“Virtualmin > Edit Virtual Server”

  1. Disable “DNS” for the domain, then re-enable it.

*** If you have a system with lots of domains, please feel free to contact me and I can write you a simple script to take care of updating the DNS across all your domains via Virtualmin’s API. ***

Best Regards, Peter Knowles TPN Solutions

Email: pknowles@tpnsolutions.com
Phone: 604-229-0715 (new)
Skype: tpnsupport
Website: http://www.tpnsolutions.com

1 Like

Brook,

From a transitional point of view, you’ll need to register “ns1.mydomain.org” and “ns2.mydomain.org” with your registrar first as I’m sure you did with the “.net” domain.

Next, “add” two new “NS” records to each domain so that you end up with:

ns1.mydomain.net (OLD) ns2.mydomain.net (OLD) ns1.mydomain.org (NEW) ns2.mydomain.org (NEW)

*** Even though some domains may not actually point to the NEW or OLD servers it won’t break anything during the transition process. ***

Finally, transition at the domain registrar each domain from “ns1.mydomain.net” and “ns2.mydomain.net” to “ns1.mydomain.org” and “ns2.mydomain.org”.

Once you’ve confirmed each domain is pointing to the new servers, you can eliminate the old domain from the server.

*** you can follow the first step of my instructions for “ADJUST NAMESERVERS”, which will cause new domains added to make use of the new settings right away. ***

As always, if you have any further questions feel free to contact me or continue posting in the forum.

Best Regards, Peter Knowles TPN Solutions

Email: pknowles@tpnsolutions.com
Phone: 604-229-0715 (new)
Skype: tpnsupport
Website: http://www.tpnsolutions.com

Thanks both. That is pretty much what I had in mind, so feel much better for hearing it from you.

Would email/postfix or any other service require any changes too?

Brook,

No, unless you’ve made any customization to the server you should be fine.

Best Regards, Peter Knowles TPN Solutions

Email: pknowles@tpnsolutions.com
Phone: 604-229-0715 (new)
Skype: tpnsupport
Website: http://www.tpnsolutions.com

Thanks Peter.

I haven’t so hopefully things will go ok fingers crossed

Brook,

No problem. Feel free to Skype me if you run into any problems; I’m online most of the time.

Best Regards, Peter Knowles TPN Solutions

Email: pknowles@tpnsolutions.com
Phone: 604-229-0715 (new)
Skype: tpnsupport
Website: http://www.tpnsolutions.com

Thanks Peter :slight_smile:

I think this transition procedure work only for the new name servers are on the same machine as old server.
if new name servers are on another machines, I think new name servers should replicate all zone record of all domains. right ?