Sub Domains


#1

Hi @larry - just letting you know my ‘mike.personal.id’ has turned up - thanks!

Also you mentioned editing my zone file to remove the link to dropbox I set in an older version of the portal. Any pointers on how to go about doing this much appreciated?


#2

@mikecohen.id is this a publicly available feature yet? How can I register a subdomain?


#3

I’d like to know this too. I saw in the latest update that this was a feature that was included, but I haven’t been able to figure out how to do it.


#4

It’s shipping very soon - lucky attendees of the Blockstack Berlin Hackathon got a sneak peak.

They’ll likely be called “sponsored names”

Awesome! Thanks for letting me know!

There’s not a tool for this yet. You could use this function in blockstack.js to do it: https://github.com/blockstack/blockstack.js/blob/f6666f0e03b6d758cbc48a69d3e0e83f2008d55e/src/operations/txbuild.js#L281


#5

@jude I managed to get the subdomain registrar running, but after attempting to register my first subdomain (which hasn’t gone through after about 12 hours) I also can’t register a new subdomain. Is there a way to kill the previous (pending?) subdomain registration?

$ curl http://localhost:3000/status/citizen1 | jq . % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 95 0 95 0 0 103 0 --:–:-- --:–:-- --:–:-- 103
{
“status”: “Subdomain is queued for update and should be announced within the next few blocks.”
}
$ curl -X POST -H ‘Authorization: bearer API-KEY-IF-USED’ -H ‘Content-Type: application/json’ --data ‘{“zonefile”: "$ORIGIN newname\n$TTL 3600\n_https._tcp URI 10 1 "https://gaia.blockstack.org/hub/16kHpNLfMeyQx1n3EYkkAVV92tknug9Uae/profile.json"\n", “name”: “newname”, “owner_address”: “16kHpNLfMeyQx1n3EYkkAVV92tknug9Uae”}’ http://localhost:3000/register/
{“status”:false,“message”:"FBSK_SUBDOMAIN_CONFIG=/home/xxxxx/subdomain-registrar/config.json sudo npm run start

Subdomain registrar started
2018-03-20T20:23:09.036Z - warn: newname failed spam-check: IP address ::1 already registered 1 subdomains.
2018-03-20T20:23:09.038Z - error: Error: IP address ::1 already registered 1 subdomains.
at /home/xxxxx/subdomain-registrar/lib/server.js:139:17


#6

@aaron would be a better person to answer this than me.


#7

@jude thanks

@aaron if you could share a way to bypass the spam-features for testing purposes that would be great. I have added the bearer API-KEY but it still says that my IP address went over the max?


#8

Hey @blockpac – this issue would make more sense as a different topic. If you move that question over to a new comment, I’ll be happy to help out!