Jump to content

Recommended Posts

Posted

At present, clients have to fill the name servers while ordering the domain name and obviously they don't know what to enter there.

So, its a good idea to prefill the name server fields with the default name servers (defined somewhere in Blesta).

 

I am sorry for this post, if someone already has the solution to this issue, can guide me here or point to any URL containing the solution to this issue.

  • 2 weeks later...
  • 2 years later...
Posted

Until this feature is ready, if you are using Domain Manager you could set the correct nameservers beforehand for each TLD and these nameservers will be autofilled during ordering a domain name.

Unfortunately TLDs would have to be edited one by one to set the nameservers, so if you has a lot of TLDs is a pain, but you could use an SQL query on the database to update the TLDs faster:

-- Define your desired nameservers as serialized PHP array
SET @ns_value := 'a:4:{i:0;s:14:"ns1.domain.com";i:1;s:14:"ns2.domain.com";i:2;s:0:"";i:3;s:0:"";}';

-- Update only package_meta entries with key 'ns' and an empty value
UPDATE package_meta
SET value = @ns_value
WHERE `key` = 'ns'
  AND serialized = 1
  AND (value = 'a:0:{}' OR value IS NULL);

Backup the database first, use it at your own risk. Change ns1.domain.com & ns2.domain.com to your actual nameservers and change s:14 to the correct string length of your nameservers (eg. ns1.domain.com is 14 characters long, that's why s:14).

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.

Loading...
×
×
  • Create New...