Expand on the response about registrar and nameservers

* Return website for registrar
* Return IPv4 and IPv6 addresses for nameservers
This commit is contained in:
Maciej Szlosarczyk 2018-10-03 16:34:26 +03:00
parent 28304559fd
commit 2a4995226f
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
8 changed files with 121 additions and 25 deletions

View file

@ -22,7 +22,10 @@ Content-Type: application/json
{
"id": "98d1083a-8863-4153-93e4-caee4a013535",
"name": "domain0.ee",
"registrar": "Best Names",
"registrar": {
"name": "Best Names",
"website": "example.com"
},
"registered_at": "2015-09-09T09:11:14.861Z",
"valid_to": "2016-09-09T09:11:14.861Z",
"registrant_id": 1,
@ -49,8 +52,16 @@ Content-Type: application/json
"ok"
],
"nameservers": [
"ns1.bestnames.test",
"ns2.bestnames.test"
{
"hostname": "ns1.bestnames.test",
"ipv4": ["173.245.58.41"],
"ipv6": ["2400:cb00:2049:1::adf5:3a33"]
},
{
"hostname": "ns1.bestnames.test",
"ipv4": ["173.245.58.51"],
"ipv6": ["2400:cb00:2049:1::adf5:3b29"]
},
],
"reserved": false,
"status_notes": {},
@ -91,7 +102,10 @@ Content-Type: application/json
{
"id": "98d1083a-8863-4153-93e4-caee4a013535",
"name": "domain0.ee",
"registrar": "Best Names",
"registrar": {
"name": "Best Names",
"website": "example.com"
},
"valid_to": "2016-09-09T09:11:14.861Z",
"registered_at": "2015-09-09T09:11:14.861Z",
"registrant_id": 1,
@ -118,8 +132,16 @@ Content-Type: application/json
"ok"
],
"nameservers": [
"ns1.bestnames.test",
"ns2.bestnames.test"
{
"hostname": "ns1.bestnames.test",
"ipv4": ["173.245.58.41"],
"ipv6": ["2400:cb00:2049:1::adf5:3a33"]
},
{
"hostname": "ns1.bestnames.test",
"ipv4": ["173.245.58.51"],
"ipv6": ["2400:cb00:2049:1::adf5:3b29"]
},
],
"reserved": false,
"status_notes": {},
@ -151,7 +173,10 @@ Content-Type: application/json
{
"id": "98d1083a-8863-4153-93e4-caee4a013535",
"name": "domain0.ee",
"registrar": "Best Names",
"registrar": {
"name": "Best Names",
"website": "example.com"
},
"registered_at": "2015-09-09T09:11:14.861Z",
"valid_to": "2016-09-09T09:11:14.861Z",
"registrant_id": 1,
@ -178,8 +203,16 @@ Content-Type: application/json
"ok"
],
"nameservers": [
"ns1.bestnames.test",
"ns2.bestnames.test"
{
"hostname": "ns1.bestnames.test",
"ipv4": ["173.245.58.41"],
"ipv6": ["2400:cb00:2049:1::adf5:3a33"]
},
{
"hostname": "ns1.bestnames.test",
"ipv4": ["173.245.58.51"],
"ipv6": ["2400:cb00:2049:1::adf5:3b29"]
},
],
"reserved": false,
"status_notes": {},

View file

@ -21,7 +21,10 @@ Content-Type: application/json
{
"id": "98d1083a-8863-4153-93e4-caee4a013535",
"name": "domain0.ee",
"registrar": "Best Names",
"registrar": {
"name": "Best Names",
"website": "example.com"
},
"registered_at": "2015-09-09T09:11:14.861Z",
"valid_to": "2016-09-09T09:11:14.861Z",
"registrant_id": 1,
@ -50,8 +53,16 @@ Content-Type: application/json
"serverTransferProhibited"
],
"nameservers": [
"ns1.bestnames.test",
"ns2.bestnames.test"
{
"hostname": "ns1.bestnames.test",
"ipv4": ["173.245.58.41"],
"ipv6": ["2400:cb00:2049:1::adf5:3a33"]
},
{
"hostname": "ns1.bestnames.test",
"ipv4": ["173.245.58.51"],
"ipv6": ["2400:cb00:2049:1::adf5:3b29"]
},
],
"reserved": false,
"status_notes": {},
@ -118,7 +129,10 @@ Content-Type: application/json
{
"id": "98d1083a-8863-4153-93e4-caee4a013535",
"name": "domain0.ee",
"registrar": "Best Names",
"registrar": {
"name": "Best Names",
"website": "example.com"
},
"registered_at": "2015-09-09T09:11:14.861Z",
"valid_to": "2016-09-09T09:11:14.861Z",
"registrant_id": 1,
@ -145,8 +159,16 @@ Content-Type: application/json
"ok"
],
"nameservers": [
"ns1.bestnames.test",
"ns2.bestnames.test"
{
"hostname": "ns1.bestnames.test",
"ipv4": ["173.245.58.41"],
"ipv6": ["2400:cb00:2049:1::adf5:3a33"]
},
{
"hostname": "ns1.bestnames.test",
"ipv4": ["173.245.58.51"],
"ipv6": ["2400:cb00:2049:1::adf5:3b29"]
},
],
"reserved": false,
"status_notes": {},