惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

有赞技术团队
有赞技术团队
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
P
Palo Alto Networks Blog
C
Cisco Blogs
The Hacker News
The Hacker News
T
Threatpost
S
Schneier on Security
K
Kaspersky official blog
Spread Privacy
Spread Privacy
博客园_首页
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
NISL@THU
NISL@THU
量子位
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Google DeepMind News
Google DeepMind News
Security Latest
Security Latest
博客园 - 司徒正美
云风的 BLOG
云风的 BLOG
博客园 - 叶小钗
H
Hackread – Cybersecurity News, Data Breaches, AI and More
N
News and Events Feed by Topic
爱范儿
爱范儿
P
Proofpoint News Feed
C
CERT Recently Published Vulnerability Notes
Project Zero
Project Zero
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Cisco Talos Blog
Cisco Talos Blog
GbyAI
GbyAI
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Apple Machine Learning Research
Apple Machine Learning Research
T
Tenable Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
V
Vulnerabilities – Threatpost
Forbes - Security
Forbes - Security
博客园 - 三生石上(FineUI控件)
C
Cyber Attacks, Cyber Crime and Cyber Security
N
News and Events Feed by Topic
V
V2EX
Webroot Blog
Webroot Blog
The Register - Security
The Register - Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
阮一峰的网络日志
阮一峰的网络日志
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Blog — PlanetScale
Blog — PlanetScale
M
MIT News - Artificial intelligence
Scott Helme
Scott Helme
Simon Willison's Weblog
Simon Willison's Weblog
L
LangChain Blog
W
WeLiveSecurity
Cloudbric
Cloudbric

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
DNS Rebinding and NXDOMAIN Hijacking: Two Overlooked DNS Attacks
Kishore Bhavnanie · 2026-06-19 · via DEV Community

Most DNS attacks people know about involve changing where a domain points: cache poisoning, hijacking, subdomain takeover. But two of the more insidious DNS attack techniques work differently. DNS rebinding turns a victim's own browser into a tool for reaching systems it should never be able to touch. NXDOMAIN hijacking exploits the moment when a domain doesn't exist, turning "not found" into an opportunity for manipulation. Neither is as widely understood as it should be, and both remain relevant threats.

These attacks are worth understanding because they exploit legitimate DNS behavior rather than breaking it. They don't require compromising your nameservers or stealing credentials. They abuse the way DNS and browsers are designed to work, which makes them harder to spot and defend against.

This guide explains both attacks, how they work, who they target, and what defends against them.


DNS Rebinding: Turning a Browser Against Its Own Network

DNS rebinding is an attack that lets a malicious website bypass the browser's same-origin policy to interact with devices and services on the victim's local network, the very systems a remote attacker normally can't reach.

The Problem It Exploits

Browsers enforce a same-origin policy: a script from evil.com can't read responses from yourcompany-internal.local or 192.168.1.1. This is a fundamental web security boundary. But the same-origin policy is based on the hostname, not the IP address. DNS rebinding exploits the gap between the two.

How the Attack Works

  1. The victim visits a malicious site. They load attacker.com, perhaps through an ad, a link, or a compromised page. The attacker controls the DNS for this domain.
  2. The first DNS response is legitimate. When the browser resolves attacker.com, the attacker's nameserver returns the attacker's real server IP, with a very short TTL (a few seconds). The malicious JavaScript loads and runs.
  3. The attacker "rebinds" the domain. After the page loads, the short TTL expires. The malicious script makes another request to attacker.com. This time, the attacker's nameserver responds with a different IP, an internal address like 192.168.1.1 (the victim's router) or 127.0.0.1 (their own machine).
  4. The browser now talks to the internal target. As far as the browser's same-origin policy is concerned, the script is still talking to attacker.com, the origin hasn't changed. But the requests now go to the internal IP. The attacker's script can now interact with the victim's router admin panel, local services, internal APIs, or IoT devices, reading responses and sending commands.

The attack effectively uses the victim's browser as a proxy into their own private network, defeating the network boundary that would normally protect those internal systems from the internet.

What DNS Rebinding Targets

  • Router and gateway admin interfaces (often at predictable IPs like 192.168.1.1 with default or weak credentials)
  • IoT and smart home devices with local web interfaces and little authentication
  • Internal services and APIs that assume "if you can reach me, you're trusted" because they're not exposed to the internet
  • Local development servers and admin tools running on the victim's own machine

The core danger is that many internal services have weak or no authentication precisely because they rely on network isolation for protection. DNS rebinding breaks that isolation.

Defending Against DNS Rebinding

  • DNS rebinding protection in resolvers: Many resolvers and DNS filtering services can block responses where an external domain resolves to a private/internal IP address. This is the most effective network-level defense. Some routers and resolvers (and tools like a configured Pi-hole or NextDNS) offer this.
  • Host header validation: Internal services should validate the Host header and reject requests that don't match their expected hostname. Since the rebinding attack sends requests with the attacker's domain in the Host header, strict validation blocks them.
  • Authentication on internal services: Never rely solely on network isolation. Internal admin panels, routers, and APIs should require authentication, so reaching them isn't enough to control them.
  • HTTPS on internal services: TLS certificate validation adds another barrier the attack must overcome.

NXDOMAIN Hijacking: Exploiting "Does Not Exist"

NXDOMAIN is the DNS response code meaning "this domain does not exist." NXDOMAIN hijacking (also called NXDOMAIN substitution or redirection) is the practice of intercepting these "does not exist" responses and replacing them with something else, usually a page the interceptor controls.

How It Works

When you type a domain that doesn't exist, you should get an NXDOMAIN response and your browser shows an error. In NXDOMAIN hijacking, an intermediary, often an ISP or a resolver, intercepts that NXDOMAIN and instead returns an IP address pointing to their own server, typically showing a search page, ads, or a "did you mean?" page.

This was historically common among ISPs, who monetized typos and mistyped domains by redirecting NXDOMAIN responses to ad-laden search pages. While it might seem like a minor annoyance, it has real security implications.

Why It's a Security Problem

  • It breaks the expected "does not exist" signal. Applications and security tools that rely on NXDOMAIN to detect non-existent domains get a false "this exists" answer, which can mask problems or break functionality.
  • It creates an injection point. An intermediary substituting DNS responses is, by definition, manipulating your traffic. If that intermediary is malicious or compromised, the same mechanism used for ad redirection can be used to redirect real traffic.
  • It interferes with security mechanisms. Some security and anti-malware systems use NXDOMAIN responses as signals. Substituting them can blind these systems or cause false results.
  • It can expose user behavior. The intermediary sees every mistyped or non-existent domain a user queries, a privacy concern.

NXDOMAIN and Attack Detection

There's an important defensive flip side. Monitoring NXDOMAIN patterns is actually a useful security signal. A sudden spike in NXDOMAIN responses from inside a network can indicate malware using a domain generation algorithm (DGA), where malware algorithmically generates many candidate domains to find its command-and-control server. Most generated domains don't exist (NXDOMAIN), so a flood of NXDOMAIN responses is a red flag. NXDOMAIN hijacking that masks these responses can hide this signal, which is another reason it's problematic.

Defending Against NXDOMAIN Hijacking

  • Use a trustworthy resolver. Reputable public resolvers (and properly configured private ones) return honest NXDOMAIN responses rather than substituting them. Choosing a resolver that doesn't hijack NXDOMAIN is the first step.
  • Use encrypted DNS (DoH/DoT). DNS over HTTPS and DNS over TLS prevent on-path intermediaries from seeing and modifying your DNS queries and responses, blocking the interception that NXDOMAIN hijacking relies on. We cover these in our DoH vs DoT guide.
  • DNSSEC for your own domains. While DNSSEC doesn't directly stop NXDOMAIN substitution for domains you query, it does cryptographically authenticate responses for signed domains, including authenticated denial of existence (proving a name really doesn't exist), which prevents forged NXDOMAIN-related manipulation for your zones.

What These Attacks Have in Common

DNS rebinding and NXDOMAIN hijacking both share a defining characteristic: they exploit DNS as a manipulation layer rather than attacking DNS records directly. They don't change your A record or compromise your nameserver. Instead, they abuse the resolution process itself, the short-TTL re-resolution in rebinding, the response substitution in NXDOMAIN hijacking.

This makes them different from the attacks much of DNS security focuses on. They're a reminder that DNS security isn't only about protecting your own records from unauthorized change; it's also about the integrity of the resolution process that connects users to your domain, and the systems that process DNS responses.


How DNS Assistant Fits In

DNS Assistant focuses on monitoring the security posture of your own domains, the authoritative side of DNS. While rebinding and NXDOMAIN hijacking are primarily resolver-side and client-side attacks, strong posture on your own domains is part of the broader defense:

  • DNSSEC validation monitoring ensures your domains are properly signed, enabling authenticated denial of existence and protecting against forged responses for your zones.
  • Record monitoring ensures your legitimate records are correct and unchanged, so the authoritative answers feeding resolvers are trustworthy.
  • Continuous validation of your DNS configuration, with alerting via email, Slack, Microsoft Teams, webhooks, and SMS.

Defending against rebinding and NXDOMAIN hijacking primarily involves resolver choice, encrypted DNS, internal service authentication, and host-header validation, but maintaining strong DNSSEC and record integrity on your own domains is the authoritative-side contribution to a healthy DNS ecosystem.


Check Your DNS Posture

Verify your domains are properly signed with DNSSEC and your records are correct using the DNS lookup tool at dnsassistant.com/tools, or run a Free Domain Risk Report for a comprehensive view including DNSSEC status.

For continuous monitoring of your DNS security posture with real-time alerting, sign up at dnsassistant.com.

This article describes attack techniques for educational and defensive purposes, to help you understand and protect against them. The information reflects publicly documented security research on DNS rebinding and NXDOMAIN manipulation.