egidux77 Posted January 7, 2010 Share Posted January 7, 2010 Hello, maybe anyone have expierence to writing registrar module. Documentation is very small I have list of registrar commands and examples, of each command. But how all that implement to registrar module? This is list of commands. Comunication goes via Extensible Provisioning Protocol (EPP). HELLO / GREETING LOGIN LOGOUT CREATE CONTACT UPDATE CONTACT DELETE CONTACT INFO CONTACT CREATE NSGROUP UPDATE NSGROUP DELETE NSGROUP CHECK NSGROUP INFO NSGROUP CREATE DOMAIN UPDATE DOMAIN DELETE DOMAIN TRANSFER DOMAIN CHECK DOMAIN INFO DOMAIN POLL Here is few examples from registrar manual: Example "create DNS group": Clent send command su server create new group of DNS servers with name "group1": <?xml version="1.0" encoding="UTF-8"?> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <command> <create> <nsgroup:create xmlns:nsgroup="http://www.domain.tld/epp/xml/domreg-nsgroup-1.0"> <nsgroup:name>group-1</nsgroup:name> <nsgroup:ns>ns1.domain.tld</nsgroup:ns> <nsgroup:ns>ns2.domain.tld</nsgroup:ns> </nsgroup:create> </create> <clTRID>NS-12345</clTRID> </command> </epp> Server reply with code 1000 (“Command executed successfully“): <?xml version="1.0" encoding="UTF-8"?> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <response> <result code="1000"> <msg lang="lt">Command executed successfully</msg> </result> <trID> <clTRID>NS-12345</clTRID> <svTRID>DOMREG-0</svTRID> </trID> </response> </epp> Example CHECK DOMAIN: Pavyzdys: Client sends queries, check or domains available „domain1.tld“, „domain2.tld“ and „domain3.tld“: <?xml version="1.0" encoding="UTF-8"?> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <command> <check> <domain:check xmlns:domain="http://www.domain.tld/epp/xml/domreg-domain-1.0"> <domain:name>domain1.tld</domain:name> <domain:name>domain2.tld</domain:name> <domain:name>domain3.tld</domain:name> </domain:check> </check> <clTRID>ABC-12345</clTRID> </command> </epp> Server reply with code 1000 (“Command executed successfully“). By each <domain:name> atribute „avail“ value shows is it possible register domain or not. „0“ means not, and „1“ – means ok: <?xml version="1.0" encoding="UTF-8"?> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <response> <result code="1000"> <msg lang="lt">Command executed successfully</msg> </result> <resData> <domain:chkData xmlns:domain="http://www.domain.tld/epp/xml/domregdomain-1.0"> <domain:cd> <domain:name avail="0">domain1.tld</domain:name> </domain:cd> <domain:cd> <domain:name avail="1">domain2.tld</domain:name> </domain:cd> <domain:cd> <domain:name avail="1">domain3.tld</domain:name> </domain:cd> </domain:chkData> </resData> <trID> <clTRID>ABC-12345</clTRID> <svTRID>DOMREG-0</svTRID> </trID> </response> </epp> Anyone can help. Any sugesstions welcome. 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.