Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.

Right Of Registration EPP Script (Free)

Discussion in 'Drop catching Domain Names' started by Aaron Clifford, Jun 4, 2019.

  1. Sam

    Sam Super Moderator Staff Member

    Joined:
    Dec 2007
    Posts:
    2,714
    Likes Received:
    95
    No this is not needed
     
  2. Ben Thomas

    Ben Thomas Well-Known Member

    Joined:
    Mar 2018
    Posts:
    2,626
    Likes Received:
    365
    Hi Aaron,

    I used your script to register on the testbed, but I'm hoping to catch a few domains tomorrow with on the live connection. Has this been updated to the live version now? If not, what steps do I need to take to ensure this is running and how can I put this on a cron to run every minute?

    If I catch any of the domains on the list I have, I'll be sure to throw a few quid your way for the usage of this code.
     
  3. Gav United Kingdom

    Gav Active Member

    Joined:
    Jul 2019
    Posts:
    63
    Likes Received:
    13
    How many did you have in your list?
     
  4. stitchbob

    stitchbob Active Member

    Joined:
    Feb 2019
    Posts:
    339
    Likes Received:
    44
    You need to update the config\Config.php file. Specifically: the first few lines change to this:

    'dac' =>
    array('host' => 'dac.nominet.org.uk', 'port' => '3043'),

    'epp' =>
    array(
    'host' => 'ssl://ror-epp.nominet.org.uk',

    Then your password needs changing to the live one, and the create_requests changing to your actual quota. It's probably worth testing it by adding an available domain to today's list and running it - you can always delete it to avoid being charged if you don't want it.
     
  5. Ben Thomas

    Ben Thomas Well-Known Member

    Joined:
    Mar 2018
    Posts:
    2,626
    Likes Received:
    365
    Thanks Stitchbob, I've noticed this code still remains:

    Code:
     'testRegistrantID' => '', // Max 16 characters, change this every time you run the script.
                'testRegistrantName' => '',
                'testRegistrantOrg' => '',
                'testDomain' => '', // Must be a domain on the ROR list to successfully complete the Nominet requirements
    Do I need to fill this out or can I delete this and just fill out the liveRegistrantID?
     
  6. stitchbob

    stitchbob Active Member

    Joined:
    Feb 2019
    Posts:
    339
    Likes Received:
    44
    I think you can just leave it alone. Make sure your liveRegistrantID is valid though.
     
  7. Ben Thomas

    Ben Thomas Well-Known Member

    Joined:
    Mar 2018
    Posts:
    2,626
    Likes Received:
    365
    I'm assuming the connection URL would need to be changed inside epp.php too?
     
  8. stitchbob

    stitchbob Active Member

    Joined:
    Feb 2019
    Posts:
    339
    Likes Received:
    44
    No, that's just a default value in case its left blank in config.
     
    • Informative Informative x 1
  9. Ben Thomas

    Ben Thomas Well-Known Member

    Joined:
    Mar 2018
    Posts:
    2,626
    Likes Received:
    365
    @dee I don't suppose you could .zip me up a copy of your script (minus your config details) as I believe you have a working cron version? I'm getting a 500 php error on my code for some reason.
     
  10. dee

    dee Well-Known Member

    Joined:
    May 2013
    Posts:
    2,594
    Likes Received:
    407
    sure.... send me a PM with email youd like it too

    EDIT : Sent

    For info or anyone else who'd like cron . All i did was add:

    chdir(__DIR__); to the index php. Thanks to @RobM for the knowledge. That changes path ref to current directory. So. the top if your index.php should look like this:

    Code:
    <?php
    chdir(__DIR__);
    // Set correct time zone
    date_default_timezone_set('Europe/London');
    i will add that it was working fine, but i actually just hit it live today
     
    • Winner Winner x 1
    Last edited: Jul 1, 2019
  11. Gav United Kingdom

    Gav Active Member

    Joined:
    Jul 2019
    Posts:
    63
    Likes Received:
    13
    OK, turns out that it does run fine for 6 requests and then craps out.

    I did actually manage to register 1 domain out of my first 6 at 2pm today: 1up.uk (not the best, but nice and short).

    So for some reason, the script is failing for me at the loop inside
    app/Nominet/Dac.php yet it worked fine on the testbed server. I'm at a complete loss at why this is happening, I stopped all other scripts from running and the config is correct as it works for the first 6 domains in the list. Nothing in the log file suggests anything is wrong other than these:

    PHP Notice: fputs(): send of 2 bytes failed with errno=32 Broken pipe in nominet-ror-epp-software/app/Nominet/Dac.php on line 36

    PHP Notice: Undefined offset: 1 in nominet-ror-epp-software/app/Nominet/Dac.php on line 41
     
  12. Looks like you have another script running which is disconnecting it?
     
  13. ian

    ian Well-Known Member

    Joined:
    Jan 2008
    Posts:
    4,156
    Likes Received:
    316
    The first sends are not validated with DAC first, which is why it is tripping up afterwards. You have added your IP to the DAC Settings option in your online services too right, not just in EPP Settings?
     
    • Like Like x 1
  14. I've not seen that error for anything other than that
     
  15. Ben Thomas

    Ben Thomas Well-Known Member

    Joined:
    Mar 2018
    Posts:
    2,626
    Likes Received:
    365
    [​IMG]
    If you know, you know.
     
  16. ian

    ian Well-Known Member

    Joined:
    Jan 2008
    Posts:
    4,156
    Likes Received:
    316
    What is the reference? The date? It wasn't part of ROR.
     
  17. Ben Thomas

    Ben Thomas Well-Known Member

    Joined:
    Mar 2018
    Posts:
    2,626
    Likes Received:
    365
    Guess you don't know, lol.
     
  18. davedevelopment

    davedevelopment Well-Known Member

    Joined:
    May 2009
    Posts:
    1,307
    Likes Received:
    86
    "domainhere" was probably a placeholder in the code?
     
    • Agree Agree x 1
  19. lazarus

    lazarus Super Moderator Staff Member

    Joined:
    Feb 2013
    Posts:
    1,485
    Likes Received:
    409