Unknownhost: Removing subdomain DNS wildcard

Abstract: Remove DNS wildcard subdomain records to stop undefined subdomains from resolving to your server.

Created: 2026-10-04 by
To remove a DNS wildcard subdomain, you must access your domain registrar or DNS hosting provider’s control panel and delete the specific record with the host value set to an asterisk (*). This action prevents all undefined subdomains from resolving to your server. After deletion, allow time for DNS propagation to ensure the change takes effect across the internet.

Understanding DNS Wildcards

A DNS wildcard is a special record type that matches any subdomain not explicitly defined in your zone file. It is represented by an asterisk (*) in the hostname field. For example, if you have a wildcard A record pointing *.example.com to 192.0.2.1, then test.example.com, blog.example.com, and even randomname.example.com will all resolve to that IP address unless a more specific record exists for them.

This feature is incredibly useful during development or when managing many temporary subdomains, as it eliminates the need to create individual records for every new service. However, it can become problematic when moving servers, changing security policies, or decommissioning services. Leaving a wildcard in place after migration might cause old or unused subdomains to point to a non-existent or incorrect server, leading to broken links, security vulnerabilities, or unexpected traffic routing.

Locating Your DNS Management Interface

The first step in removing a wildcard is identifying where your domain’s DNS records are hosted. This could be at your domain registrar (like GoDaddy, Namecheap, or Cloudflare) or a dedicated DNS provider (like AWS Route 53, Google Cloud DNS, or Azure DNS). Log in to the account associated with your domain name.

Navigate to the section labeled "DNS Management," "Zone Editor," "Name Server Records," or similar terminology depending on your provider. Look for a list of existing records. You will typically see columns for Type (A, CNAME, MX, etc.), Host/Name, Value/Content, TTL, and Priority. Scan this list carefully for any entry where the Host or Name column contains only an asterisk (*) or sometimes @.* depending on the interface.

Deleting the Wildcard Record

Once you have located the wildcard record, proceed with caution. Deleting the wrong record can take down your entire website. Verify that the record type matches what you intend to remove. Most commonly, wildcards are A records for IPv4 addresses or AAAA records for IPv6. They can also be CNAME records, though less frequently due to RFC restrictions.

  • Identify the Record: Find the row where the Host is *. Check the Value column to confirm it points to the IP address you are trying to disassociate from subdomains.
  • Delete the Entry: Click the "Delete," "Remove," or trash icon associated with that specific record. Some providers require you to edit the record and clear the fields before saving, effectively deleting it. Others have a direct delete button.
  • Confirm Action: A confirmation dialog will usually appear. Confirm that you want to permanently remove this DNS record.

If you have multiple wildcard records (e.g., one for A and one for CNAME), repeat this process for each type. Ensure you do not accidentally delete your root domain record (often denoted as @ or example.com), which is distinct from the wildcard subdomain record.

Handling Specific Subdomains

Before removing the wildcard, consider if you still need certain subdomains to function. If you have explicit records for www.example.com or mail.example.com, these will remain unaffected by the deletion of the * record. The wildcard only catches requests for subdomains that do not have their own specific entries.

If you plan to migrate specific services to new IPs, ensure those specific subdomains have their own A or CNAME records created and propagated before deleting the wildcard. Otherwise, they might temporarily fail to resolve if there is a gap in coverage. This approach allows for a controlled transition rather than a sudden blackout of previously working subdomains.

DNS Propagation and Verification

After deleting the record, changes do not happen instantly. DNS propagation relies on Time-To-Live (TTL) values set on previous records. Even if you delete the record, users with cached DNS data may still see the old IP address for a period ranging from minutes to 48 hours, depending on the previous TTL setting.

To verify the removal, use command-line tools like nslookup, dig, or online DNS checkers. Query a random subdomain that was previously covered by the wildcard, such as xyz123.example.com. If the wildcard is successfully removed and no other record exists for it, the query should return a "NXDOMAIN" error or indicate that the host does not exist. This confirms that the subdomain is no longer resolving to your server.

If you are experiencing issues with other DNS configurations, such as pointing subdomains to specific ports, you may find additional guidance in our guide on Pointing Subdomain DNS Record to Specific Port on Ubuntu VPS Server. Additionally, understanding how wildcards interact with other domains can help troubleshoot broader issues, as seen in our case study on Troubleshooting DNS Wildcard Domains: github.com Case Study.

Frequently Asked Questions

Will deleting the wildcard affect my main website?

No, deleting a wildcard subdomain record does not affect your root domain (e.g., example.com) or explicitly defined subdomains like www.example.com. These rely on separate, specific records that remain untouched.

How long does it take for the change to take effect?

The change is immediate on the authoritative DNS server, but global propagation depends on the TTL of the deleted record. Users may see stale data for up to 24-48 hours if they had cached the old record.

Can I restore the wildcard record later?

Yes, you can add a new wildcard record at any time through your DNS provider’s interface. Just ensure you select the correct record type (A, AAAA, or CNAME) and point it to the desired IP address.

What happens if I delete the wrong record?

If you delete your root A record, your website will go offline immediately. Always double-check the Host/Name column to ensure you are targeting the asterisk (*) and not the @ symbol or a specific subdomain name.

Do I need to restart my server after removing the DNS record?

No, DNS records are managed externally by your DNS provider. Deleting a record does not require any action on your web server or application server. The server continues to run normally; it just stops receiving traffic for unmatched subdomains.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More