Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Check for domain availability only in ISPConfig #24

Closed
ole1986 opened this issue Oct 24, 2019 · 5 comments
Closed

Check for domain availability only in ISPConfig #24

ole1986 opened this issue Oct 24, 2019 · 5 comments

Comments

@ole1986
Copy link
Owner

ole1986 commented Oct 24, 2019

Currently wp-ispconfig3 uses whois to check for avaialble domains It was requested to only check the domain against ISPConfig (through REST API).

Therefore I will provide a new option soon

Pingback: ole1986/wc-invoice-pdf#5

@ole1986
Copy link
Owner Author

ole1986 commented Oct 25, 2019

Unfortunately there is no proper way to do a REST API call and request all domain being used by the websites/clients.

Only option is to receive all available sites, based on the given sys_userid and sys_usergroup

See: https://git.ispconfig.org/ispconfig/ispconfig3/blob/master/interface/lib/classes/remote.d/sites.inc.php#L831

@MachineITSvcs
Copy link
Collaborator

MachineITSvcs commented Oct 25, 2019 via email

@ole1986
Copy link
Owner Author

ole1986 commented Oct 25, 2019

I am currently working on it... Almost done but being also busy with other stuff unfortunately

@ole1986
Copy link
Owner Author

ole1986 commented Oct 26, 2019

BONUS:

Once then wp-ispconfig3 plugin is enabled you can access the domain check using ajax request (E.g. jQuery)

var domain = 'yourdomain.net';
$.post(ajaxurl, { action: 'ispconfig_whois', 'domain': domain }, null, 'json').done(function(resp){
    if (resp.class !== 'ispconfig-msg-error') {
        // is free
    } else {
        // is reserved
    }
});

@MachineITSvcs
Copy link
Collaborator

MachineITSvcs commented Oct 26, 2019 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants