Issues configuring a subdomain registrar

@AkshitV please find my original config.json file below. Note the ipLimit = 0 entry to prevent a subdomain registrar flag.

Copying in @aaron && @jude as they were helping me out at the time and may be able to assist with your query in case there have been changes in functionality of the subdomain registrar.

All the best,

  • Pete van Velden

{
“ownerKey”: “myOwnerKey”,
“paymentKey”: “myPaymentKey”,
“domainUri”: “https://gaia.blockstack.org/hub/xxxxxxxxxxxxxxxxxx/profile.json”,
“dbLocation”: “/root/subdomain_registrar.db”,
“domainName”: “xxxxxxxx.id”,
“adminPassword”: “xxxxx”,
“port”: 3000,
“ipLimit: 0”,
“disableRegistrationsWithoutKey”: false,
“apiKeys”: [“just_a_made_up_key”],
“winstonConsoleTransport”: {
“level”: “info”,
“handleExceptions”: false,
“timestamp”: true,
“stringify”: true,
“colorize”: true,
“json”: false
}
}


Some commands you may want to use:

BSK_SUBDOMAIN_CONFIG=/path/subdomain-registrar/config.json sudo npm run start

Then run something like this:

sudo curl -X POST -H ‘Authorization: bearer just_a_made_up_key’ -H ‘Content-Type: application/json’ --data ‘{“zonefile”: "$ORIGIN subdomain_name_of_choice\n$TTL 3600\n_https._tcp URI 10 1 "https://gaia.blockstack.org/hub/xxxxxxxxxxxxxxxxxxx/profile.json"\n", “name”: “subdomain_name_of_choice”, “owner_address”: “xxxxxxxxxxxxxxxxxxxxxxx”}’ http://localhost:3000/register/

Then run a check:

curl http://localhost:3000/status/subdomain_name_of_choice | jq .

It then shows:

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 95 0 95 0 0 144 0 --:–:-- --:–:-- --:–:-- 145
{
“status”: “Subdomain is queued for update and should be announced within the next few blocks.”
}

2 Likes