Aiman H Posted March 30, 2019 Share Posted March 30, 2019 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 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted April 1, 2019 Share Posted April 1, 2019 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? 0 Quote Link to comment Share on other sites More sharing options...
Aiman H Posted April 1, 2019 Author Share Posted April 1, 2019 Thank you for your reply We need to use cron job with table in database to store old NS to recover them when the client renew his domain name 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.