Corporate website administrators often need to map domains to specific server IPs or subdomains. This article outlines the configuration of A records for primary domains and CNAME records for wildcard subdomains, ensuring users can access the site via standard URLs.
Preparing Domain and Server Details
This is a hypothetical scenario. A corporate site administrator is preparing a launch checklist for a fictional company site, and the working notes contain three candidate configuration entries. The first is an A record labeled “primary web host” pointing to the IPv4 address 203.0.113.24, with the note “root and www.” The second is a CNAME record labeled “customer portal” pointing to portal.example.internal, with the note “subdomain only.” The third is an A record labeled “staging host” pointing to 203.0.113.31, marked “hold until launch approval.”
The administrator chooses to keep the primary and portal entries in the launch checklist and moves the staging entry to a separate pre-launch section. The reason is scope: the first two entries describe addresses the public site will answer on, while staging is not part of the public launch path. The record type matters here. An A record maps a hostname directly to an IPv4 address, so the primary entry needs the final server address confirmed rather than a placeholder. A CNAME points one hostname to another hostname, so the portal entry depends on the target name resolving correctly and must not sit at the zone apex if the administrator's DNS provider disallows that arrangement.
A compact launch table could use these columns: hostname, record type, target, TTL, owner, launch status. Two fictional rows show the intended grouping. Row one: “www and root,” A, 203.0.113.24, 3600, web team, ready. Row two: “portal,” CNAME, portal.example.internal, 3600, web team, verify target first. The staging row would be excluded from this table and listed separately as pending approval.
These entries are examples the author invented to illustrate preparation, not records from a real zone. The fictitious spellings and addresses are simply the author's own drafting shorthand. Before launch, the administrator would still need to confirm the authoritative nameserver, verify that the chosen TTL suits the change window, and check that any subdomain delegation does not conflict with the CNAME target.
Configuring A Records for Main Domains
In the documented cloud DNS console, the administrator opens the target domain's DNS settings and adds a record with host record @ to represent the main domain itself. The record type is A, which points the domain to an IPv4 address; the record value is the server's public IP address obtained beforehand. The request source is left at default so it applies to all sources, and TTL stays at the default 10 minutes (600 seconds).1
The prerequisites are stated plainly: the domain must already appear in the public authoritative DNS list, the website service must be running and reachable by IP, and inbound ports 80 and 443 must be open on the server firewall or security group. For servers in mainland China, ICP filing must be completed first, though records can be configured during the review period.1
After saving, global DNS propagation is said to take time, typically within the TTL of 10 minutes. Verification can be done by visiting the domain in a browser or by running nslookup or dig commands to confirm the returned IP matches the configured one.1
Begin by reopening your own launch notes and pairing each hostname you plan to publish with one intended destination address. You can write these as two-column entries, for example “main site — planned server address” and “portal — planned server address,” so the comparison stays visible without turning your notes into a formal zone file. Where two hostnames share the same destination, consider whether that overlap is intentional and note it beside the pair.
You might then draft a short before-and-after line for each entry. A fictional example could read: before, “main site points to a placeholder address”; after, “main site points to the approved launch address.” This gives you a plain-language check you can read back later. If an address is still undecided, you can leave the field marked as pending rather than filling it with a guess, and you can keep that pending row separate from rows you consider settled.
You can also record one reason beside each destination you choose, such as “matches the server named in the launch plan,” so your own notes show why an entry belongs in the main-domain group. These notes are personal preparation, not a confirmed record of any live setup.
Verifying DNS Resolution Status
After adding A records, global DNS propagation takes time, typically within the TTL setting of ten minutes. Verify resolution by visiting the domain in a browser to confirm content loads. Alternatively, use command-line tools like nslookup or dig to check if the returned IP matches the configured address.1
If access fails, wait at least ten minutes for refresh. Clear local DNS caches using ipconfig /flushdns on Windows or sudo dscacheutil -flushcache on macOS. Ensure the server firewall allows inbound traffic on ports 80 and 443. Confirm web services such as Nginx or Apache are running correctly. For servers in mainland China, verify that ICP filing is complete, as domestic users cannot access the site via the domain until approval finishes.1
You can extend your launch notes for each hostname with a small resolution-check line. Next to your main site entry, note whether the lookup now returns the address you intended, and beside each portal entry, note whether the lookup now returns the intended subdomain. This is a short record you fill in before launch, not a record of a test already run.
For example, a two-row check for your launch file might read: hostname "main site", record type A, expected result "the server address named in the launch plan", status "to confirm". Second row: hostname "portal", record type CNAME, expected result "the subdomain named in the launch plan", status "to confirm". You might add a short reason beside each row, such as "matches the destination chosen for this entry".
Consider writing the observed result and the check date in the same row when you review it. If the observed result differs from the expected one, you can flag that row and leave it flagged until you review the entry again. When the same field set is reused for an archived announcement entry, you can mark that row as archived and keep the date, so current and archived entries remain distinguishable in one file.
Setting Up CNAME Records for Wildcards
To make all undefined subdomains, such as blog.example.com, point to the main site, the guide describes adding a wildcard record with a host record of *. The record type should be CNAME, which points the * domain to another domain name.1
The form fields in that example are: host record *, which has the lowest priority and catches all undefined subdomain lookups; resolution line 默认 (default), which applies to requests from all sources; record value example.com, the main domain; and TTL 10分钟 (600秒), kept at the default.1
The guide also notes a conflict rule: one host record, such as @, cannot have a CNAME record and any other record type at the same time. If adding a record reports a resolution record conflict, the conflicting record should be deleted before adding the new one.1
For wildcard entries, you can add one line to your launch notes listing the literal wildcard hostname, the CNAME target, the expected outcome, and the check date. A fictional example might read: hostname "wildcard entry for subdomains," record type CNAME, target "the hostname named in the launch plan," expected result "a lookup for an unspecified subdomain returns the target hostname," check date left blank until you review it.
You might also draft a before-and-after line for the wildcard. Before, "no wildcard entry exists, so unspecified subdomains return nothing"; after, "the wildcard entry points them to the planned target." Keep the wildcard in its own row rather than merging it with named hosts, so your notes show that it covers only subdomains you have not listed separately.
When you review, consider adding a short observation beside the expected result, such as "lookup returned the target" or "lookup returned a different name," along with the review date. You can decide whether to keep, revise, or remove the wildcard row based on what your own notes record.
Handling Port and Protocol Constraints
DNS translates a domain to an IP address but cannot perceive or specify a port number. When a user visits a domain, the browser requests the server's port 80 for HTTP or port 443 for HTTPS by default.1
If the website service runs on a non-standard port such as 8080, users must include the port manually in the address, which is usually unsuitable for a public website. The source's suggested solution is to configure a reverse proxy on the server side, such as a self-built Nginx reverse proxy for HTTPS forwarding, or to use a product such as application load balancing (ALB) to forward traffic from ports 80 and 443 to the backend service's actual port, hiding the port details from users.1
For each hostname in your launch notes, you can add a short line about any port or protocol details that the published address will need to work with. Keep this as your own written note rather than a rule: for example, next to “main site, A record, server address from the launch plan,” you might write “planned for standard web access on the usual port; confirm before launch.” This shows what you expect without claiming that any check has happened.
You might also record where a non-standard port or a secure protocol would sit in your planning. A fictional line could read: “portal hostname: destination address confirmed in notes; port and protocol still undecided; owner to confirm.” When you return to the entry, you can compare the planned detail with what you later expect to see, and mark any mismatch in the same row.
If you are keeping a small comparison table, you can add columns for “planned protocol or port” and “open question.” A filled example row might read: hostname “main site,” record type A, target “server address named in the launch plan,” planned protocol or port “standard web access, to confirm,” open question “does the launch plan name a different port?” These fields are yours to adjust, and you can choose which rows need them.
Troubleshooting Access Failures
When a domain still fails to load after a record is added, the documented checks are ordered: wait at least 10 minutes for global DNS propagation, since refresh takes time within the TTL window. If only the domain was typed, the browser may request HTTPS by default, so try the HTTP version of the address when no certificate is configured yet.1
Other checks include clearing the browser cache or flushing the local DNS cache, confirming the server firewall or security group allows inbound traffic on ports 80 and 443, and logging in to confirm the web service is running. If the server is in mainland China, verify that ICP filing is complete.1
A record conflict prompt usually means the host record already holds a CNAME or another type; the conflicting record must be removed before adding the new one.1
You can reopen your own launch notes and mark each access failure as either “not yet published,” “wrong destination,” or “needs a second look.” This turns the failure into a note you can compare with earlier entries rather than a separate problem to solve.
For a fictional entry, your note might read: hostname “main site,” intended destination “the server address in the launch plan,” observed result “a different address,” flag “compare with the destination you recorded.” You might add a second line for a subdomain that has no entry yet, flagging it as “not yet published” so you can decide whether to leave it out or add it to the next review.
Consider keeping one open question beside each flagged line, such as “does the destination match my current plan?” Then choose which flagged entries to carry into the next version of the notes and which to set aside until the plan changes. This is a way to organize your own material, not a test of any external service.
Frequently asked questions
How can I start organizing my own launch notes by pairing each hostname with a planned destination address?
Begin by reopening your own launch notes and pairing each hostname you plan to publish with one intended destination address. You can write these as two-column entries, for example “main site — planned server address” and “portal — planned server address,” so the comparison stays visible without turning your notes into a formal zone file.
What can I write beside each destination I choose to record why it belongs in the main-domain group?
You can also record one reason beside each destination you choose, such as “matches the server named in the launch plan,” so your own notes show why an entry belongs in the main-domain group.
What should I include in one line of my launch notes for wildcard entries?
For wildcard entries, you can add one line to your launch notes listing the literal wildcard hostname, the CNAME target, the expected outcome, and the check date.