• Skip to primary navigation
  • Skip to main content
  • Skip to footer

Cisco Umbrella

Enterprise network security

  • Free Trial
  • Contact us
  • Blog
  • Login
    • Umbrella Login
    • Cloudlock Login
  • Products
    • Product
      • Cisco Umbrella Cloud Security Service
      • Cisco Umbrella Investigate
      • Product Packages
      • Support Packages
    • Functionality
      • DNS-Layer Security
      • Secure Web Gateway
      • Cloud Access Security Broker (CASB)
      • Interactive Intelligence
      • Cloud-Delivered Firewall
    •  
    • Webinar signup
  • Solutions
    • By Need
      • Protect Mobile Users
      • Fast Incident Response
      • Web Content Filtering
      • Shadow IT Discovery & App Blocking
      • Unified Threat Enforcement
      • Reduce Security Infections
      • Secure Direct Internet Access
      • Securing Remote and Roaming Users
    • By Network
      • Protect Guest Wi-Fi
      • SD-WAN Security
      • Off-Network Endpoint Security
    • By Industry
      • Higher Education Security
      • K-12 Schools Security
      • Healthcare, Retail and Hospitality Security
      • Enterprise Cloud Security
      • Small Business Cybersecurity
      • Our Customers
      • Customer Stories
    • Ransomware Defense for Dummies book
  • Why Us
    • Fast Reliable Cloud
      • Cloud Security Infrastructure
      • Cloud Network Status
      • Cloud Network Activity
      • Recursive DNS Services
      • Top Reasons to Trial
      • Getting Started
    • Unmatched Intelligence
      • Cyber Attack Prevention
      • Interactive Intelligence
    • Extensive Integrations
      • IT Security Integrations
      • Hardware Integrations
      • Meraki Integration
      • Cisco SD-WAN
    • Navigation-dropdown-promo-free-trial_102820
  • Resources
    • Content Library
      • Top Resources
      • Analyst Reports
      • Case Studies
      • Customer Videos
      • Datasheets
      • eBooks
      • Infographics
      • Solution Briefs
    • International Documents
      • Deutsch/German
      • Español/Spanish
      • Français/French
      • Italiano/Italian
      • 日本語/Japanese
    • Cisco Umbrella Blog
      • Latest Posts
      • Security Posts
      • Research Posts
      • Threats Posts
      • Product Posts
      • Spotlight
    • For Customers
      • Support
      • Customer Success Hub
      • Umbrella Deployment Hub
      • Customer Success Webinars
      • What’s New
      • Cisco Umbrella Studio
  • Trends & Threats
    • Market Trends
      • Rise of Remote Workers
      • Secure Internet Gateway (SIG)
      • Secure Access Service Edge (SASE)
    • Security Threats
      • Ransomware
      • Cryptomining Malware Protection
      • Cybersecurity Threat Landscape
    •  
    • 2020 Cybersecurity trends
  • Partners
    • Channel Partners
      • Partner Program
      • Become a Partner
    • Service Providers
      • Secure Connectivity
      • Managed Security for MSSPs
      • Managed IT for MSPs
    •  
    • Become a partner
  • Free Trial Signup
  • Umbrella Login
  • Cloudlock Login
  • Contact Us
Product

Releasing OpenResolve – Docker Image for Domain Information as a REST-like API

By OpenDNS Team
Posted on December 4, 2014
Updated on March 5, 2020

Share

Facebook0Tweet0LinkedIn0

Today we are open-sourcing OpenResolve – a Docker image for domain information as a REST-like API. OpenResolve was built as a Master’s Project by Ryan Piaget and Kevin Funk during an internship at OpenDNS. Learn more about the project at OpenResolve.com.

About the Team

2014-12-03 17.21.10 HDR We are graduating Master’s Students at the University of San Francisco who’ve been interning at OpenDNS the last four months working on our Master’s Project.
For our project, we designed and built a public API for retrieving domain information as a REST-like service. This guest post will share the results of our work.

Motivation

OpenResolve aims to address three issues in the realm of domain name lookup:

    

  1. DNS lookup typically requires command line tools like dig, or manual interaction with an HTML interface. Our API makes DNS resolution available as a web service for any application.
  2. DNS lookups are typically conducted over UDP, which offers no security regarding the data being transferred. Performing DNS resolution over HTTP and SSL ensures the data has not been altered.
  3. Most DNS resolution returns output in a human readable format, but isn’t easily accessible programmatically. By transferring data in a commonly consumed format, JSON, we make it convenient for even high-level applications to use the data returned from a resolver.

How It Works

OpenResolve is implemented as a simple python server using the Flask framework, running behind nginx. DNS lookups are performed using the dnspython library and then parsed into JSON before being returned to the client. We implement the provisional RFC draft-bortzmeyer-dns-json-00 for the return format. The server runs inside a container built from a custom Docker image and is hosted on OpenDNS infrastructure.

How to Use It

The API lives at api.openresolve.com and can be queried for standard lookups by making a GET request to:

 api.openresolve.com/<record-type>/<domain-to-lookup>

The response is returned in JSON. Here’s the result of making a request for ‘A’ type records for the domain www.opendns.com:

curl api.openresolve.com/a/www.opendns.com
{
    AA: false,
    ReturnCode: "NOERROR",
    AD: false,
    AdditionalSection: [ ],
    AnswerSection: [
        {
            Class: "IN",
            Address: "67.215.92.218",
            Type: "A",
            Name: "www.opendns.com.",
            TTL: 30
        }
    ],
    ID: 45762,
    AuthoritySection: [ ],
    QuestionSection: {
        Qclass: "IN",
        Qtype: "A",
        Qname: "www.opendns.com."
    },
    RD: true,
    RA: true,
    Query: {
        Duration: 0.003942966461181641,
        Server: "208.67.222.222"
    },
    TC: false
}

We support lookups for these record types:
A, AAAA, CNAME, LOC, MX, NAPTR, NS, PTR, SOA, TXT
We also support internationalized domains via punycode conversion. So, querying: api.openresolve.com/a/ąćęłńóśźż.pl will work just fine!
Additionally, OpenResolve provides support for reverse lookups:

curl api.openresolve.com/reverse/67.215.92.211
{
    AA: false,
    ReturnCode: "NOERROR",
    AD: false,
    AdditionalSection: [ ],
    AnswerSection: [
        {
            Class: "IN",
            Target: "www.opendns.com.",
            Type: "PTR",
            Name: "211.92.215.67.in-addr.arpa.",
            TTL: 764
        }
    ],
    ID: 58757,
    AuthoritySection: [ ],
    QuestionSection: {
        Qclass: "IN",
        Qtype: "PTR",
        Qname: "211.92.215.67.in-addr.arpa."
    },
    RD: true,
    RA: true,
    Query: {
        Duration: 0.004873037338256836,
        Server: "208.67.222.222"
    },
    TC: false
}

Next Steps

In the near future we plan to add the ability to perform ANY-type queries as well as support for who-is lookups. We’ve open-sourced the project and made the source available under a BSD License. Fork it on Github, pull the docker image, or try the demo at API.OpenResolve.com.
For more information check out OpenResolve.com.

Previous Post:

Previous Article

Next Post:

Next Article

Follow Us

  • Twitter
  • Facebook
  • LinkedIn
  • YouTube

Footer Sections

What we make

  • Cloud Security Service
  • DNS-Layer Network Security
  • Secure Web Gateway
  • Security Packages

Who we are

  • Cisco Umbrella Blog
  • Cloud Network Status
  • Cloud Network Activity
  • OpenDNS is now Cisco Umbrella

Learn more

  • Events
  • Careers
  • Support
  • Cisco Umbrella Live Demo
  • Contact Sales
Umbrella by Cisco
208.67.222.222+208.67.220.220
2620:119:35::35+2620:119:53::53
Sign up for a Free Trial
  • Cisco Online Privacy Statement
  • Terms of Service
  • Sitemap

© 2021 Cisco Umbrella