On this page
What this issue is
A wildcard DNS record is an A, AAAA or CNAME record whose name is *, for example *.example.com. It acts as a catch-all. If someone asks for a subdomain that has no record of its own, DNS returns the wildcard's answer instead of saying the name does not exist.
That is useful for some setups, such as one app serving a separate subdomain per customer. It becomes a problem when you did not intend it. anything.example.com then resolves, and the server behind it may show your homepage, a default hosting page, an error, or content from a different site.
A subdomain with its own record always wins over the wildcard. The wildcard only covers names with no record. It also does not cover the bare domain (example.com), and it only matches names with no records at any deeper level under that name.
Why it costs you leads or sales
The direct cost is usually small, which is why this issue is rated low. The damage is indirect and easy to miss.
- Mistyped links (for example
wwww.example.comorshop.example.com) load a page that looks broken, shows the wrong brand or a hosting default page instead of failing clearly. - Search engines can find and index many hostnames that all show the same content, which creates duplicate content and splits signals.
- Tracking and cookies can be set on hostnames you never planned for, which muddies analytics and ad reports.
- The wildcard may point at an old server or a third-party service. Anyone can then request a subdomain name there and have it look like part of your brand.
- Phishing or spam links using your domain with a made-up subdomain look more believable, because they resolve and may show your real site.
- Certificate and redirect rules built for the main host can behave oddly on random hostnames, showing browser warnings to visitors.
- Ad or email linkLink uses a mistyped subdomain such as offers.example.com
- DNS lookupNo record exists, so the wildcard answers anyway
- Server responseDefault page, error or wrong site is shown
- Lead form or checkoutVisitor never reaches the real funnel
Example: a mistyped campaign link resolves because of the wildcard, then lands on the wrong content.
How to check if your site has it
Ask DNS for a subdomain that you are sure does not exist. Use a long random name so it cannot be a real record.
dig +short this-should-not-exist-84721.example.com A
dig +short this-should-not-exist-84721.example.com AAAA
dig +short this-should-not-exist-84721.example.com CNAME
# Windows alternative
nslookup this-should-not-exist-84721.example.comIf you get an IP address or a CNAME target back, a wildcard is active. If you get no answer (NXDOMAIN in the full dig output), there is none. Then compare the result with your zone file.
Open your DNS zone
Log in to wherever your nameservers are hosted (check with
dig NS example.com +short). Look for a record named*or*.example.com.Note what it points to
Write down the type, value and TTL. Check whether the target is your current server, an old server or a third-party service.
Open a random subdomain in a browser
Visit https://this-should-not-exist-84721.example.com. Note whether you see your site, a default page, a certificate warning or an error.
List subdomains in use
Check your site builder, email provider, CDN, help desk and ad landing pages so you know which subdomains need to keep working.
How to fix it
The safest fix is to add explicit records for every subdomain you use, then delete the wildcard. If you must keep it, make the server handle unknown hostnames properly.
Inventory real subdomains
Combine your DNS zone, analytics hostnames, ad destination URLs, email links and tool settings. Include www, go, app, shop, mail, help and any funnel builder subdomain.
Add explicit records first
Create an A, AAAA or CNAME record for each subdomain that relies on the wildcard today. Do this before deleting anything.
Lower the TTL
Set the wildcard's TTL to a low value such as 300 seconds a day ahead if you can, so a rollback is quick.
Delete the wildcard record
Remove the
*record in your DNS provider's panel and save.Retest
Run the dig test again and open each real subdomain to check it still works.
Fix DNS at the DNS host
WordPress does not manage DNS. Delete the
*record at your registrar, host or DNS service (for example Cloudflare or your hosting control panel's DNS zone editor).Check multisite settings
If you run WordPress Multisite with subdomains, the wildcard is required. Instead, review Network Admin > Sites and remove sites you do not want to be reachable.
Check host-level wildcard vhosts
Some hosts add a wildcard subdomain setting in the control panel (often under Domains or Subdomains). Remove it if you do not need it.
Open Settings > Domains
Shopify only connects the domains you add. Confirm that only the domains you want are listed.
Edit DNS at your registrar or DNS host
Delete any
*record and keep the records Shopify asks for: A record for the root domain and a CNAME for www pointing to shops.myshopify.com.
Check the container for hostname assumptions
If triggers use 'Page Hostname contains example.com', random subdomains can fire tags. Change the condition to 'equals' for the exact hostnames you use.
Fix the wildcard in DNS
GTM cannot remove it. Delete the record at your DNS host. If you use a server-side tagging subdomain, keep its explicit record.
Open Project Settings > Hosting > Custom domains
Confirm which domains are connected. Webflow serves only those.
Remove the wildcard at your DNS host
Delete the
*record and keep the records Webflow shows for your root domain and www.
Open Settings > Domains
Check which funnel and website domains are connected.
Replace the wildcard with explicit CNAMEs
For each funnel subdomain (for example go.example.com), add a CNAME to the target GoHighLevel shows you, then delete the
*record at your DNS host.
Open Domains in your Wix dashboard
If DNS is managed by Wix, choose Manage DNS Records and look for a wildcard entry under CNAME or A records.
Delete it or move it
Remove the
*record, keeping Wix's connection records for the root domain and www. If DNS is hosted elsewhere, edit it there.
Open Settings > Domains > DNS Settings
Look in Custom Records for a host named
*.Delete the custom record
Leave the default Squarespace records in place and remove only the wildcard.
Return 404 for unknown hosts
If you must keep the wildcard, make your web server reject names it does not serve. See the nginx example below.
Redirect or restrict
Redirect only known hostnames to the canonical URL, and let everything else get a 404 or a closed connection.
# Catch-all: unknown hostnames get no response
server {
listen 80 default_server;
listen 443 ssl default_server;
server_name _;
ssl_certificate /etc/ssl/certs/default.pem;
ssl_certificate_key /etc/ssl/private/default.key;
return 444;
}
# Real site
server {
listen 443 ssl;
server_name example.com www.example.com;
# ... your normal config
}Wildcard active
- Any made-up subdomain resolves
- Typos load a default page or your homepage
- Many hostnames can show the same content
- Old or third-party target may serve unknown content
Explicit records only
- Only named subdomains resolve
- Typos return NXDOMAIN, a clear failure
- One canonical hostname per page
- No unexpected target answering for your domain
How to confirm it's fixed
dig +short random-name-12345.example.comreturns nothing (or the intended 404 behaviour if you kept the wildcard).- Every real subdomain still resolves and loads over HTTPS without a certificate warning.
- Ad landing pages, email links and funnel URLs you use all load.
- Your lead form still submits and sends the notification on the main site.
- Search Console shows no new unexpected hostnames over the following weeks.
- You tested from a different network or resolver, since DNS caches may keep old answers until the TTL expires.
How to prevent it happening again
- Keep a written list of subdomains and what each one is for.
- Use explicit records, not wildcards, unless the product needs them.
- Review the DNS zone every quarter and after any migration or tool change.
- Limit who can edit DNS and ask for a note when records change.
- Remove records for tools you stop using.
- Make unknown hostnames return 404 or close the connection on every server that answers for your domain.
How FunnelGuard handles this
This issue is outside what FunnelGuard checks. FunnelGuard runs your real customer journeys, such as lead forms and checkouts, on the pages you give it. It does not scan your DNS zone for wildcard records or look for hostnames you never set up.
The kind of tool that fits is a DNS or external attack-surface scanner, or a DNS record monitor that compares your zone with a known-good list and reports new or changed records. Your DNS provider's change log, or a periodic dig test like the one above, also works for small sites.
What FunnelGuard can do alongside this is run your funnel journeys on the subdomains you really use, on a schedule, so you see if a real page stops working after you remove a wildcard. The Free plan covers 1 site and 2 journeys with daily checks, no card needed.
Questions people ask
Why does a random subdomain of my website load my site?
Most likely your DNS zone has a wildcard record (*.yourdomain.com) that answers for any name without its own record. The web server behind it then serves its default site. Test with dig on a made-up subdomain, then remove the wildcard or make the server return 404 for unknown hostnames.
How do I check if I have a wildcard DNS record?
Run dig +short some-random-name-12345.yourdomain.com. If it returns an IP address or CNAME target, a wildcard is active. If nothing comes back, there is none. You can also look for a record named * in your DNS zone.
Is a wildcard DNS record bad for SEO?
Not by itself, but it can let many hostnames show the same content, which creates duplicate pages that search engines may index. Use canonical tags and make unknown hostnames return 404 or redirect to your main domain.
How do I remove a wildcard DNS record?
Add explicit records for every subdomain you use, lower the TTL, then delete the * record at the DNS host that serves your nameservers. Retest with dig and open each real subdomain to confirm it still works.
Can a wildcard DNS record be a security risk?
Yes, if it points to an old server or third-party service. Others may be able to claim a subdomain name there, and unknown hostnames can look like part of your brand in phishing links. Remove it or make sure the target returns a clear 404.
Does a wildcard DNS record cover the root domain?
No. *.example.com matches subdomains with no record of their own, not example.com itself. A name with its own record always takes priority over the wildcard.
Does a wildcard DNS record need a wildcard SSL certificate?
To serve HTTPS without browser warnings on arbitrary subdomains, yes, you need a wildcard certificate or one per hostname. Without it, visitors who reach a random subdomain see a certificate warning.
Does FunnelGuard detect wildcard DNS problems?
No. This needs a DNS or attack-surface scanning tool. FunnelGuard checks that your real funnel journeys work on the pages you set up, so it can show whether a real subdomain still works after a DNS change.
Related issues
- OPS-030NXDOMAIN for a funnel subdomain (e.g. go.brand.com)Fix guide
- OPS-035Dangling CNAME to deprovisioned service (subdomain takeover)Fix guide
- OPS-036Dangling record to deleted S3 bucket / Heroku / Azure appFix guide
- OPS-028DNS change made by someone without noticeFix guide
- OPS-027A/AAAA record points to old serverFix guide
- OPS-038CAA record blocks certificate renewalFix guide