Jump to content

NS change on domain expiration


Aiman H

Recommended Posts

Hello,

As .MA registrar, we can change NS aven if domain expires.

We are trying to automate NS change on domain expiration and after renewal the NS come back to the previous NS.

the scenario:

the domain example.ma expires today.
At 00.00 the Ns change to:
expired1.mydns.ma
expired1.mydns.ma

if the client renew his domain name tomorrow, the NS come back to the original one

i have see it maybe here in the community, I don't found it

Link to comment
Share on other sites

Both actions would be handled in the registrar module:

  • Domain expires - use domainsync function to check for expired domains and change their NS via domainupdatenameservers API call or directly in module's SaveNameservers . 
    • You will need to store the old nameservers some how though. 
  • Domain renews via client area - use _RenewDomain(0 function to check if the domain is expired before renewing, renew it, then change NS back . 

So just to confirm, you're not using a reselling registrar provider and so they wouldn't be taking care of that?

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated