• 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
      • Remote Browser Isolation
    • 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
      • Global Cloud Architecture
      • Cloud Network Status
      • Cloud Network Activity
      • Recursive DNS Services
      • Top Reasons to Trial
      • Getting Started
    • Unmatched Intelligence
      • A New Approach to Cybersecurity
      • 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
      • Cybersecurity Webinars
      • Events
      • 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
      • Global Cyber Threat Intelligence
      • Ransomware
      • Cryptomining Malware Protection
      • Cybersecurity Threat Landscape
      • Cyber Threat Categories and Definitions
    •  
    • Navigation-dropdown-promo-threat-report_020521
  • 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
  • Contact Us
  • Umbrella Login
  • Cloudlock Login
Security

NXDOMAIN, NODATA and debugging DNS for dual-stacked hosts

By Lucas Siba
Posted on June 23, 2014
Updated on April 15, 2020

Share

Facebook0Tweet0LinkedIn0

An NXDOMAIN response means there are no records, of any DNS type, for the requested domain name. A NODATA response means there are records for the requested domain name, but none of them match the record type in your request.

At OpenDNS we want to help prepare everyone for the coming dual-stacked (meaning hosts will have both IPv4 and IPv6 addresses) world. In my previous post I discussed some of the issues that come from use searching domains with a dual stack host. In this post I’ll be going over exactly what DNS responses of NXDOMAIN vs NODATA mean, and why this it is important for people running dual-stacked machines to understand.

There is a common misconception about what an authoritative server is actually trying to tell you when you receive an NXDOMAIN response. The NXDOMAIN response is meant to imply that there are no records, of any request type, for the requested domain name.

Effectively, it’s the authority’s way of saying: “I have no information about this domain, regardless of what type of information you’re looking for”. The slightly different, but similar response of NODATA is meant to imply, there is no information, of the requested type, for the requested domain name. This is effectively like the authority saying: “I have information about the requested domain, but none of that information matches the specific type of information you’ve asked for”.

A good example of when a NODATA response is used is when requesting the A (IPv4) record for “www.ipv6.awfulhak.org”. The host www.ipv6.awfulhak.org is used for testing IPv6 enabled computers, specifically because it’s authoritative server only contain a AAAA (IPv6) record for that hostname.

# dig a www.ipv6.awfulhak.org
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1888
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;www.ipv6.awfulhak.org.INA
;; AUTHORITY SECTION:
ipv6.awfulhak.org.180INSOAns0.ipv6.Awfulhak.org. brian.Awfulhak.org. 2014051800 28800 1800 3600000 180

From the output we can see that our status code is “noerror”, and there is no answer section, this is dig’s way of showing a NODATA response. We’re getting this response because the authority server has some records for the host “www.ipv6.awfulhak.org”, just no records of type “A”. Now compare that output to running a dig for “does-not-exist.awfulhak.org”, a host which doesn’t exist (has no records in the authority at all).

# dig a does-not-exist.awfulhak.org
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 59249
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;does-not-exist.awfulhak.org.INA
;; AUTHORITY SECTION:
awfulhak.org.1800INSOAns2.knigma.org. brian.Awfulhak.org. 2014052400 28800 1800 3600000 1800

Because the name server has no entires, of any type, for the host “does-not-exist.awfulhak.org”, we get the NXDOMAIN error code.

“So why is this important to dual-stacked machines?”

When working in a dual-stacked network you’ll find many types of network configurations, some hosts with IPv4 addresses only, some with IPv6 only, and some with both. Often when debugging DNS, people will run “dig <hostname>” without considering what type of DNS record matter to their hosts. By default dig sends requests for A (IPv4) records, so if the hostname you’re querying for only has IPv6 records, you won’t see an answer section or an NXDOMAIN error code (because it is actually a NODATA response). This is now your cue to query for other (most likely AAAA) records.

Hopefully now you have a greater understanding of NXDOMAIN vs NODATA, and you can spot the difference when debugging DNS issues in a dual-stacked network.

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

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

Learn more

  • Webinars
  • 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