Forward-Confirmed Reverse DNS lookup implementation for node v6.11.1 (supported by Google Cloud Functions)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
package.json

README.md

fcrDnsPromise

Forward-Confirmed Reverse DNS lookup implementation for node v6.11.1 (supported by Google Cloud Functions)

Installation

 $ npm i --save fcrdns-promise

Example use in an express app (locally):

const DnsUtils = require('fcrdns-promise')

app.get('/test-fcr', (req, res) => {
    const ip = req.ip;
    console.log("IP: ", ip);
    DnsUtils.fcrDns(ip, 'fitbit.com')
        .then(() => res.sendStatus(200))
        .catch((err) => {
            console.error(err);
            res.status(400).json(err);
        });
});