January 2019
Beginner to intermediate
776 pages
19h 58m
English
As you have installed ldns, now you may check out the Dyn's dns_lg source code from its source code repository:
git clone git@github.com:dyninc/dns_lg.git
cd dns_lg/
Now, you may run the application simply by executing api.py. Running it produces the following output:
$ python api.py * Running on http://0.0.0.0:8185/ (Press CTRL+C to quit)
Now open another console window to run a curl:
curl http://0.0.0.0:8185/cnn.com/
This will output a line to the preceding api.py console:
127.0.0.1 - - [15/Jul/2017 23:33:40] "GET /cnn.com/ HTTP/1.1" 200 -
The curl command produces the following output with the detailed DNS information from the looking glass implementation:
$ curl http://0.0.0.0:8185/cnn.com/
{
"AdditionalSection": [Read now
Unlock full access