Run two Grapes:
grape --dp 20001 --aph 30001 --bn '127.0.0.1:20002'
grape --dp 20002 --aph 40001 --bn '127.0.0.1:20001'
# Add base as upstream:
git remote add upstream https://github.com/bitfinexcom/bfx-util-js
# Configure service:
cp config/common.json.example config/common.json
cp config/facs/grc.config.json.example config/facs/grc.config.json
cp config/service.dns.json.example config/service.dns.json
node worker.js --env=development --wtype=wrk-dns-service-api --apiPort 1337
args
: <Array>0
: <Object>ip
: <String> Ip to resolve
Response:
- <Array>
0
: <String> Ip that was resolved1
: <Array> Hostnames
Example Payload:
args: [ { ip: '8.8.8.8' } ]
Example Response:
[ '8.8.8.8', [ 'google-public-dns-a.google.com' ] ]
Example: example.js