Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

How to Add a Wildcard DNS Record

This guide shows how to add a wildcard record, so any subdomain you type will point to your site.

Domains and DNS2 min read11 steps1 screenshots

What is a wildcard record?

DNS is like a phone book for the internet. It turns names into numbers. A subdomain is a front part added to your domain, like blog.example.com.

A wildcard record uses a star, written as *. The star means "anything". So *.example.com catches blog.example.com, shop.example.com and any other name you did not set up on its own.

Wildcards are useful for sites that make a new subdomain for each user. They are also used when you want any typo subdomain to land on your site.

Good to know

  • A wildcard only works for names that have no record of their own. If mail.example.com has its own record, that one wins.
  • The server itself must also accept these names. In cPanel, the server must have a matching wildcard subdomain, or your web app must handle them.
  • A wildcard does not cover the bare domain, example.com.

Steps in cPanel

  1. Log in to cPanel.
  2. Open Zone Editor in the Domains section.
  3. Click Manage next to your domain.
  4. Click Add Record.
  5. In Name, type *. cPanel will fill in the rest of the domain name.
  6. Choose the type A. An A record connects a name to an IP address, the number of a server.
  7. In the address box, type the IP address of your server. Your welcome email has it, or you can ask Hostvento support.
  8. Click Add Record.
    wildcarddns

If you want the star name to be an alias of another name, use a CNAME record instead and enter the target name.

Make the server accept the names

  1. In cPanel, open Domains or Subdomains.
  2. Create a subdomain called *.
  3. Set its folder to the one that holds your site files.

Some hosts limit this. If cPanel does not allow it, ask Hostvento support at https://secure.hostvento.com/submitticket.php.

Test it

Wait a few hours for DNS to spread. Then type a random name, like anything.example.com. It should open your site.

Tip: If your DNS is not in cPanel, add the record where your name servers are managed.

Quick recap

  • A wildcard record uses * as the name.
  • It catches all subdomains that have no record of their own.
  • Add it in Zone Editor as an A record with your server IP.
  • Also set up the wildcard subdomain on the server.