As long as your domain is registered through joomla site there will be no problem to change its name servers.
This can be done from your User Area -> My Accounts -> Manage (next to the domain name you want) -> Your Domain DNS.
Modify the NS records for your domain and then click the Update button to save the changes. It will take several hours for the DNS change to propagate.
If you are not a joomla site customer, you should be able to edit your name servers from the control panel at your host/domain Registrar. For more information on how to do this you will have to contact your host/Registrar.
Important! When you change the name servers of a domain, all advanced records (A-records, CNAME-records, MX-records, SRV-records and so on) would resolve from the DNS zone of the provider, whose nameservers you are setting. Thus, if you are using a custom A-record or MX-record for your needs, it is strongly recommended to add them in the DNS zone of your new provider in order to ensure minimal downtime and / or propagation.
You find this article useful? Click here to learn more about joombig template and extension experts and what else we can do for you!
Related Article
destination source:https://www.siteground.com/kb/how_to_change_my_ns_record/