Ravindra BagaleCourses & study guides मराठी Track your progress

Chapter 9: Domain Names, DNS and Subdomains

AWS Cloud

9.10 Subdomains

Create service names such as blog or api inside a DNS zone you manage. These names do not need a separate domain registration. DNS limits, separately hosted zones, or the service you point to may have their own costs. The web server or managed frontend still needs to recognize each name that it serves.

dairy.example.test       ─┐
www.dairy.example.test   ─┼─► A 192.0.2.51 ─► Nginx selects a named site
blog.dairy.example.test  ─┘
api.dairy.example.test   ───► A 192.0.2.81 ─► another frontend, then a private app
shop.dairy.example.test  ───► CNAME frontend.provider.example.test.

Step 1: DNS record (GoDaddy → DNS → Add New Record)

Type Name Value Use
A blog 192.0.2.51 Same server, different site
A api 192.0.2.81 Different approved frontend address
CNAME shop frontend.provider.example.test. AWS load balancer / other hostname
A * 192.0.2.51 Wildcard source when selected below the closest existing name

For a GoDaddy-managed zone, enter the label blog in the Name field. Verify that the saved full name has the intended suffix once, then query the exact name and record type. Other DNS dashboards may ask for a complete name instead.

Step 2: a site for the subdomain on the server

On a separate practice server you control, put a harmless marker page in a dedicated document root. Use the path provided for the practice site and confirm the web process can read it. The alternative snippets below illustrate the host-routing rules. Apache also needs a corresponding active Listen directive. Test the candidate configuration before an approved reload.

# Nginx: blog.conf
server {
    listen 80;
    server_name blog.dairy.example.test;
    root /var/www/blog;
    index index.html;
}
# Apache: blog.conf
<VirtualHost *:80>
    ServerName blog.dairy.example.test
    DocumentRoot /var/www/blog
    <Directory /var/www/blog>
        Require all granted
    </Directory>
</VirtualHost>

Verify the address answer for the hostname, then send a request using that hostname and look for the unique blog marker. On a dedicated test listener, curl --resolve can supply the address before public DNS is changed while preserving the name used for HTTP routing.

Subdomain for a backend app (reverse proxy)

server {
    listen 80;
    server_name api.dairy.example.test;
    location / {
        proxy_pass http://127.0.0.1:3000;        # A local app listener managed separately
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

Forwarded addresses should be used only with the application’s configured trusted proxy boundary. If the named route produces a gateway error, check the upstream listener and the proxy error log. On SELinux systems, investigate any recorded denial and obtain approval for a targeted policy change based on the actual cause.

Ravindra Bagale's Tip

In GoDaddy’s Name field use the label blog for this example. Then check the saved full name. For an api reverse proxy, distinguish a wrong public website from an unreachable backend using the frontend and upstream logs.

Lab

Start with the local model below. Predict when an exact name wins, when a wildcard can be used, and when a child zone owns the answer. Compare all eight predictions before planning an approved change to an actual domain.

Give each service a meaningful name under the same domain

Friends, our practice dairy keeps its main site for collection hours. It also wants a blog for news, a pickup app for customers and a separate classroom branch for training. Those services can have recognizable names under the same domain. A subdomain is a name below a parent in the DNS hierarchy. A new left-hand label often makes the service easier to identify. The organization can arrange its address, routing and ownership according to the purpose. A new name is one part of the design. You still need a service that can accept that particular hostname and do what users expect.

Write three proposed names under dairy.example.test. The label blog might lead to a distinct site on the same server as the main page. The label pickup might reach a managed frontend with its own route. The organization could delegate classroom as a branch to the team responsible for its records. These examples show that the next label can hold a regular record or mark an authority boundary. Use the reserved test suffix throughout the exercise. It needs no public registration or account.

Ordinary child names can typically be managed within an existing approved domain without purchasing a separate registration for each one. DNS provider quotas, hosted zone charges, applications and certificates can still have costs or limits. A child on a separate hosted zone can create another resource if you actually provision it. That is why the choice is based on the organization's operations and who needs authority. This lesson stays with a local worksheet for the decisions. It demonstrates exact record and wildcard behavior, then explains how to test the web result under the intended name.

Choose a hostname or a path according to the service

Compare https://dairy.example.test/blog/ and https://blog.dairy.example.test/. The first keeps the existing hostname and changes only the application path. The second asks the client to use a different name. It can require a DNS association, frontend host rule and applicable certificate. If all you need is a collection of news pages on the same site, a route may be enough. A distinct hostname can help when a separate service, endpoint or team needs a meaningful boundary. Describe that reason before creating an extra label.

Several names can still use one network destination. The authority can give the same address for the main and blog hostnames, and Nginx or Apache can distinguish the hosts on its shared listener. Each site can read its own content directory or route to an application. A separate hostname does not require a separate EC2 instance. Conversely, placing one data set under an existing URL path does not force it to be served by the same underlying process. A reverse proxy can forward a chosen path internally. Name and path are inputs to application routing, and their meaning depends on the selected design.

For ordinary browser same-origin behavior, the scheme, host and port matter. A subdomain is a different hostname, even when it points to the same IP address. Some application behavior involving access between origins needs an explicit policy. Cookies can also have their own domain or host scope, and setting a broad shared scope can have consequences. Decide which names really need to share application behavior. DNS does not by itself implement authentication or make one application trust another. If a private student portal needs authorization, verify how clients reach it and how the portal controls access under that name.

Write the resource owner and type for each DNS entry. For a verified stable IPv4 destination, use an A association. For a prepared IPv6 path, use AAAA. When the service provider gives a supported name rather than a stable numeric target, a CNAME can be suitable at an eligible child owner, or a provider-specific Alias where applicable. Do not assume all targets support both address families. Confirm the current documented endpoint. If a child label refers to an AWS load balancer, follow the appropriate DNS guidance instead of guessing an address from one observation of the load balancer.

Add regular records in the current active zone

The ordinary design is to put a suitable record in the existing authoritative zone for the domain. If GoDaddy is the active authority and the record type's interface asks for the prefix, the Name field for blog.dairy.example.test. can be blog relative to the selected zone. The value is the appropriate address or target for the record type. Other providers and formats can use different representations. A zone file can distinguish a fully qualified name with a trailing dot from a relative label. Always verify the fully formed record owner from the actual configured zone and query.

A common mistake is having the right idea under the wrong suffix. If the active editor already supplies dairy.example.test, entering the full host in a field that expects only the relative label may create a duplicated suffix or be rejected. Looking up the intended shorter spelling would then fail. The specific authority and full question let you separate a misnamed record from a still-cached result. If a parent zone and a delegated child both exist, also verify which one is authoritative for that name. A record in the wrong zone can look perfectly plausible in an account without answering the publicly delegated question.

For the dairy blog on the same server, build one approved route for the blog host and its distinct marker. Test the main host separately so adding the blog does not change the original site. For a pickup backend that speaks HTTP on a private socket or port, the frontend can accept the public hostname and forward selected paths. Customers connect to the frontend, and the backend's trusted proxy relationship and application policy need to match that design. It is unnecessary to publish the backend's internal port merely because the public host is new. Compare a safe named frontend request with the expected application response.

An app can be reachable through a public DNS name and still have strict application permissions. A security group or routing decision can limit who can connect, while application login and authorization govern what a user may read or change. A name within a private DNS environment can also be intentionally different from its public counterpart. Check the client resolver and network expected to see the child records. Do not diagnose private records against an external public resolver as though they should be available there. Define audience and expected access as part of what the child name represents.

Delegate a branch only when it needs its own authority

If the classroom team needs to manage its own branch, create a separate approved child zone under the design. Its apex is the child name itself, such as classroom.dairy.example.test.. It can hold its own records and provider-generated authority data. The team managing the parent creates an NS delegation at that child owner, pointing to the assigned name servers for the child's actual zone. A student asking about the branch can then be referred to those new authorities. The parent's other destinations and registrar can remain the same.

A child zone and an ordinary record are different choices. A CNAME can say a hostname refers to another name for a lookup. An NS delegation identifies which authorities answer for a part of the DNS tree. A separate Route 53 hosted zone needs records, an assigned server list and a correct parent delegation before normal public resolution can use it. Creating the child zone alone does not make its records publicly delegated. Copying its name servers to the registrar's setting for the parent could move the whole domain by mistake. The right parent operation is the NS record at the intended child in the parent zone.

Consider who owns each stage. The classroom team can prepare the child and verify its data. The parent team can publish the delegation for that branch under the appropriate permission. Some nameserver hostnames within the delegated branch can require supporting address data on the parent side to let a resolver reach them. Signed delegation may also need relevant parent trust information. Those are explicit DNS decisions to check with the owner. The practice examples use fictitious external nameserver labels to avoid needing actual glue or signing setup.

If the business only needs one blog record managed by the same team, creating a separate zone can increase cost and administrative work without helping the stated goal. If different people need control and independent changes of the branch, delegation can be appropriate. Document which records stay with the parent and which move under the child's authority. Keep agreed service behavior compatible through the transition and account for cached referrals. Test both the child path and a neighboring name under the parent so the change scope remains visible.

Understand when a wildcard answer can be synthesized

A DNS wildcard uses an asterisk as the leftmost label of a record owner, such as *.dairy.example.test.. A supplied wildcard can let the authority synthesize a record for some otherwise nonexistent names beneath that branch. The synthesis follows the shape of names that already exist. It is not an unconditional assignment for every string under the domain. It does not create the zone apex, replace an existing owner or cross a delegation as if the child were still served by the parent. A wildcard is a routing choice that needs a deliberate consumer and scope.

The closest encloser is the deepest already existing ancestor of the queried name in the zone. When the exact queried name does not exist and no delegation diverts it, the server looks for a wildcard one label beneath that ancestor. For example, if the only existing ancestor of a newly typed garden name is the dairy apex, an applicable wildcard there can supply the A data. If pickup already exists as a node and you query a nonexistent east.pickup below it, a wildcard directly under the dairy apex is no longer the relevant one. A wildcard at the closer pickup node would have to be considered separately.

An existing owner might lack the type requested. If a verification owner has TXT data and an A question finds that exact node exists, the broader wildcard does not fill in an A value for it. Even an empty nonterminal can count as an existing node. That term describes a name with descendants but no resource data directly at the node. For instance, adding a deep labeled service can make its ancestor part of the existing tree, even if no A or TXT is present for that ancestor. The lab gives you a deterministic set to practice this rule rather than assuming an asterisk overrides the whole tree.

A DNS wildcard and a TLS certificate wildcard are independent. The DNS rule follows the existing tree and can synthesize some multi-label descendant answers under the closest-encloser rules. A standard fully qualified TLS identity wildcard in its supported form matches only one complete leftmost label. A certificate for *.dairy.example.test can match blog.dairy.example.test if all other checks pass. It does not match the bare domain or a deeper name such as west.pickup.dairy.example.test. Website hosting has its own matching rules too. For each intended name check DNS data, configured HTTPS identity and actual host response separately.

Predict the record with the closest existing name

Run the following Python 3 worksheet or construct the tree from the displayed records. The table uses owner suffixes under the fictional dairy apex, all with documentation addresses. There is an explicit blog address, a pickup address and an existing verification node with only text. A deeper row under team gives it a descendant even though team itself has no data. A root-level wildcard is also present. The program compares seven ordinary names and a delegated branch. It does not send DNS questions or create a hosted zone.

Before pressing Enter, predict three contrasting outcomes. The exact blog name should get its explicit address. The new garden name should get a synthesized address because there is no closer existing node. An unlisted name below existing pickup should have a different result because only the broader wildcard exists. Also decide what happens for a request below the delegated classroom branch. The local model is limited to positive A data, type absence, name absence and referral under the supplied tree. Those are the distinctions the exercise uses.

python3 - <<'PY'
zone = "dairy.example.test"
delegated = "classroom." + zone
records = {
    zone: {"A": "192.0.2.50"},
    "*." + zone: {"A": "192.0.2.99"},
    "blog." + zone: {"A": "192.0.2.51"},
    "pickup." + zone: {"A": "192.0.2.52"},
    "_proof." + zone: {"TXT": "verification-placeholder"},
    "east.team." + zone: {"A": "192.0.2.53"},
}

def suffixes(name):
    labels = name.split(".")
    for index in range(len(labels)):
        suffix = ".".join(labels[index:])
        yield suffix
        if suffix == zone:
            return

nodes = {suffix for owner in records for suffix in suffixes(owner)}
nodes.add(delegated)

def lookup(name):
    if name == delegated or name.endswith("." + delegated):
        return "REFERRAL", delegated
    if name in nodes:
        value = records.get(name, {}).get("A")
        return ("EXACT", value) if value else ("NODATA", name)
    closest = next(suffix for suffix in suffixes(name) if suffix in nodes)
    wildcard = "*." + closest
    value = records.get(wildcard, {}).get("A")
    return ("WILDCARD", value) if value else ("NXDOMAIN", closest)

examples = [
    ("blog." + zone, ("EXACT", "192.0.2.51")),
    ("garden." + zone, ("WILDCARD", "192.0.2.99")),
    ("north.garden." + zone, ("WILDCARD", "192.0.2.99")),
    ("_proof." + zone, ("NODATA", "_proof." + zone)),
    ("team." + zone, ("NODATA", "team." + zone)),
    ("west.team." + zone, ("NXDOMAIN", "team." + zone)),
    ("east.pickup." + zone, ("NXDOMAIN", "pickup." + zone)),
    ("lesson." + delegated, ("REFERRAL", delegated)),
]
for name, expected in examples:
    result = lookup(name)
    print(f"{name:43} {result[0]:9} {result[1]}")
    assert result == expected
PY

Read the explicit blog row first and mark it as a match. The generated garden result comes from the wildcard because the dairy apex is its closest existing node in the table. When the model evaluates north.garden, the synthetically answered garden does not become an actual zone node. With no closer existing ancestor, the same wildcard can synthesize the deeper example too. This is a DNS behavior of the supplied tree. A certificate wildcard has its own one-label restriction and would not cover that two-label name for an ordinary HTTPS check.

Compare two no-data responses. The proof owner has a TXT row and therefore exists, but the lookup asks specifically for A. The team owner exists as an empty nonterminal because there is a descendant called east.team. It also has no A. Neither is filled by the broader wildcard. Asking for west.team follows a different branch test. The closest existing ancestor is team, and the model has no wildcard beneath it. Likewise the pickup node is closer for the nonexistent east pickup request. The output identifies which node made the broader entry irrelevant.

The last row refers the request to the delegated classroom branch. That choice is considered before the parent wildcard in the model. The child can have independent answers under its own authority. The toy script only handles the specific A questions and delegation shown. Actual DNS also handles multiple record types, aliases, validator behavior and provider-specific features. It is valuable to know the rule the script isolates before looking at more varied real outputs. Since the script works in memory, it has no cleanup actions.

For a paper variant, add *.pickup.dairy.example.test with an example address for the app. Predict how the existing explicit pickup data and the previously missing east pickup name would differ. Then write whether that new DNS pattern should be published for the application's intended audience. The server must still recognize requested names, and the application might not be designed for every generated alias. If new names are meant to be private or tenant-specific, plan the appropriate access separately. The worksheet is complete when you predict the DNS and service effects as separate items.

Test the public hostname, including its application behavior

For an approved change, collect a prior answer and intended service marker. Find the active authority, choose the correct owner and record type, and verify the correct destination is ready. For a delegated branch, prepare the child and verify its assigned authorities, then check the parent referral. For a normal child record, check the answer at the applicable authority and through the intended resolver. The record name and type must match the actual public host. If a resolver still reports earlier data, note its question, status and timing before making additional changes.

Next test the named service. If several sites share an address, make a scoped request using the actual hostname and path. A numeric request may receive a fallback. A controlled curl mapping to a known, authorized preview address can help isolate the service before normal public DNS is available. Keep ordinary HTTPS verification for a named TLS test. Compare one correct response and one intended negative or neighbor response. For example, an approved blog test can validate the article header under the blog name and leave the main dairy's hours and classroom authority as separate known checks.

If the child should point to an application behind a proxy, use the agreed public route and a safe request the app expects. Check the frontend hostname and the configured backend, then compare the response or error with relevant logs. A passing DNS address lookup does not prove the app is listening or accepts a given method. A private backend's bind and access scope should follow the architecture. On systems with SELinux restrictions, read relevant denial evidence with the authorized operator before discussing an applicable policy adjustment. An unconditional persistent networking permission is not a generic setup step.

Plan the certificate independently. For several explicit names an approved certificate arrangement can cover those names with individual identity entries. A suitable wildcard certificate may cover matching one-label children while the apex and deeper names need appropriate coverage. Know which frontend presents the certificate and when it must be renewed. If a provider manages certificates, use its documented domain association and verification process. The client needs the requested name and a valid trusted result before it can rely on a named HTTP response. A correct DNS wildcard cannot repair a certificate name mismatch.

Pay attention to which service should respond to names you did not intend to offer. If you configure a defensive catch-all or wildcard by design, make the fallback behavior explicit. A synthesized address for an undefined label can send an ordinary browser to your frontend before the frontend decides whether to serve that name. Avoid leaking content or impersonating a separate site merely because it arrived at the same socket. The shared web-server exercise teaches a dedicated unknown-name result. A user-facing subdomain plan can use the same principle to assert what unsupported names should return.

Choose the smallest matching design for the dairy

The marketing group wants a blog. Ask whether a subpath under the main site already meets the publishing goals. If it needs a distinct hostname on the same server, add the appropriate DNS association and named site under scope, then check the usual article and a supporting asset. Keep the existing homepage baseline. If the change uses another service's cloud endpoint, use the supported DNS reference and verification rather than assuming the current IP should be copied. A route plan names the endpoint and the expected body.

The classroom group needs to run its own DNS. Decide who controls the parent and child. The child team proposes its zone, assigned nameservers and intended data. The parent team verifies the exact child owner and publishes the agreed delegation when ready. Test a required child record at the intended authority and check the critical neighboring parent names separately. If the parent is under another provider, its organization can still delegate that branch where supported. The entire parent registration and DNS zone need not move for a child team to have its own authoritative zone.

The operations group wants every new outlet to have a page. Consider whether explicit per-outlet names are simple enough, or a deliberately configured wildcard is appropriate for the approved onboarding design. Write down how existing names, delegated branches and unsupported hostnames should behave. Verify the certificate arrangement separately. A wildcard DNS pattern may route more names than the application can authenticate, and the app should not assume every typed code names a genuine outlet. If support staff need a predictable setup, a smaller explicit inventory may be easier to test even if it requires one more ordinary DNS record for each outlet.

As the last task, give your partner the three use cases without the proposed implementation. They should distinguish path versus hostname, an ordinary record versus delegation, and an explicit record versus wildcard. Ask them to include a DNS and named service test for each. A correct answer explains which owner and authority the test reads and which feature is introduced. If they choose a wildcard because they expect it to override existing nodes or fill an unconfigured certificate, repeat the fixture rows until that misconception is resolved. The value of the worksheet is in the predicted differences.

Retire a name without bringing it back through a wildcard

After the dairy closes its winter pickup pilot, the pilot address still appears on printed receipts. A student proposes deleting its dedicated A record. First compare answers before and after within the zone. At present the exact name points to the retired pilot frontend. If the parent wildcard is eligible after removal, the same address may begin returning the default frontend instead. An old link can appear to work while landing in an unrelated service. That makes customers think their winter order is still being processed, and it can hide the reason the pilot really closed.

Choose an intentional retirement experience before making the DNS change. While printed links still matter, the dairy could keep the explicit name on its controlled frontend and display an end-of-pilot page with a link to current pickup options. Depending on the product, it might use a deliberate redirect or return a clear response for the retired endpoint. Update the certificate inventory for as long as customers can still request the old HTTPS name. An old HTTPS address needs its own acceptable TLS identity before the server can show a retirement message or redirect.

When the name can disappear entirely, review wildcard answers, data at the node, child names, delegations and aliases. Decide whether the intended DNS outcome is disappearance or a retained explicit name. Confirm the new authoritative result independently from the customer’s caching resolver. A captured positive answer might still be cached at one location, so write both the old and new IPv4 and IPv6 results into the change record with their time. Keep the expiry of the old target service, the removal of old routing, and the nameserver edit as distinct events, with an owner for each.

There is a second handoff when the retired name was an alias to a managed platform. The lease on that platform object and the DNS record have separate lifetimes. Plan to remove or repoint the alias while the team still controls the target, and account for the original answer’s TTL before handing the target back to the provider. Ask which sources still refer to the old name, including redirects, app allowlists, and mail links. After the handoff, test a link copied from a real receipt as well as the DNS response. The customer journey is the thing the team is retiring.

Set a simple return condition in advance. If the new retirement page displays the public order form by mistake, restore the last known route while keeping control of the still-valid public name and its private keys. A reversible application change usually offers faster and clearer evidence than repeating DNS changes while old positive or negative answers are cached. When support reports that a single browser still reaches the pilot, collect the exact URL and time first. A saved redirect or a still-cached DNS answer calls for a narrower follow-up than flipping the primary record again.

Verify a name through three separate decisions

Imagine a report says the new blog name shows the dairy homepage. Start with the actual HTTPS URL and the approved address association. If the blog reaches the correct frontend but the wrong named content appears, inspect the loaded matching host rule and configured directory or route. When a user opens the same path under a different hostname, the system can choose a different site before it ever searches for the file. Check the actual resulting certificate and page marker. If the blog row was added in an unused zone, the authoritative or recursive comparison may instead reveal where the question went wrong.

Now imagine a student cannot open a nested classroom name although the parent site works. Confirm which team is responsible for the affected child zone. Check the parent NS referral and then the selected authority's answer for the exact name and type. A record saved in a parent zone can appear in its control panel while normal queries below the delegated cut go to the child. If one provider lists the host but does not actually answer for it, inspect the placement and delegation rather than repeatedly creating the row elsewhere. A healthy parent homepage says little about independent child namespace behavior.

For a third incident, the browser gets a certificate name error for a kiosk under two labels. The administrator says the parent's wildcard DNS record gave it an address. That DNS observation may be accurate while the certificate matches only a one-label child. Confirm the actual reference name and certificate identity rules. If the plan needs a deeper DNS name, choose a valid certificate design or an appropriately different supported name before treating the service as ready. A host route and the application response still follow the certificate check. Keep the layer at which the test failed visible in the report.

One practical work order can state “add the explicit blog name on the main server, preserve the existing site and leave the classroom authority in place.” Make a before-and-after matrix with the chosen DNS owner, exact resolver context and expected web marker. For the blog, check an article and a safe supporting file. For the parent, check the collection home. For the classroom branch, inspect the referral and the expected child answer if that dependency is in scope. Include a plausible nonmatching hostname with the documented fallback where the frontend has a catch-all. This test plan limits the opportunity to fix the wrong site's problem.

Now consider retiring a subdomain. Identify which public links, client settings, existing certificates and provider endpoints refer to it. The approved owner should decide whether it should redirect, be removed or retain a stable response during a planned transition. Coordinate retiring the DNS association with the actual hosted service, particularly when a target name is assigned and managed by a service provider. Keep the endpoint ownership clear and verify the expected result after the change. An existing wildcard could still answer for a formerly explicit name when that exact node disappears. If absence is the intended result, include wildcard and closest-encloser behavior in the design.

A good peer review checks each decision without starting another project. Ask the partner to point to the record owner, the authority, the connection endpoint and the user-facing handler. If this is a private service, ask which intended clients can reach it and how their access is enforced. If the project aims only to add a blog route, decide whether a new DNS name helps that specific requirement. If a child zone is necessary, demonstrate the parent and child responsibilities on the diagram. The precise choice of a hostname should make the service easier to understand and maintain, as well as giving students a measurable result.

Explain the name and the authority separately

Can several subdomains share one EC2 server?

Yes. The DNS records can refer to the same verified endpoint, while the web service selects a site according to the requested name. I would configure the intended listener and name behavior, then test each public hostname and expected body. Each needed TLS identity must be covered at the relevant endpoint. A separate domain name does not necessarily mean a separate instance or public address.

When would you choose a delegated child rather than a normal address record?

When the relevant branch needs its own authority or separate operational control. The child team prepares a hosted zone whose apex is the subdomain and verifies its assigned nameservers and data. The parent team publishes the child NS delegation at the proper owner. A normal address record can be sufficient when the current zone already has the correct ownership and simply needs to identify one service.

How does changing a web path differ from adding a subdomain?

A path retains the host portion of the URL and affects routing within the receiving service's expected behavior. A subdomain changes the host. It can require relevant lookup data, network destination, TLS identity and named routing. I would first ask what boundary the client or operating team needs. The same physical server can implement either design, with different request and testing inputs.

Will an apex DNS wildcard answer an A request for an existing TXT-only name?

Under the ordinary DNS wildcard rules, the existing owner is matched first and the applicable no-data response remains if the A type is absent there. The broader wildcard is not used to fill missing ordinary data at an existing node. I would get the full result and compare the question type and exact owner. The fixture demonstrates this behavior for a proof label and an empty nonterminal.

What is the closest encloser and why does it matter?

It is the deepest existing ancestor of a nonexistent queried name in the applicable zone. The wildcard source considered by the rules is immediately beneath that ancestor. When pickup exists, an unknown child below it uses pickup as the relevant enclosing node. The wildcard at the dairy apex cannot simply fill it. I would review the actual tree and any delegation before predicting a result.

Can one wildcard certificate cover the bare domain and nested names?

A supported TLS identity wildcard matches one complete leftmost label. A certificate entry for a wildcard immediately under the dairy domain can match a one-label child. The bare name and a deeper name need compatible certificate identities of their own. I would check the exact identities presented by the actual TLS endpoint. A DNS wildcard has separate rules and cannot broaden what the certificate matches.

How would you diagnose a proxy-backed subdomain that resolves but returns an error?

I would verify its named TLS or HTTP route and read the relevant proxy evidence. Then confirm the intended upstream address, path, protocol and listener where authorized. A returned 502 or 504 carries a gateway-level symptom whose cause needs logs and specific tests. A healthy A record cannot demonstrate that the application behind the proxy can serve the request, and broad security policy changes need actual justification.

Predict which name and route apply

  1. The organization registers the parent domain and wants a blog hostname under it. Which services still need configuration?

    Answer and reasoning

    Plan the appropriate DNS record in the applicable zone, then verify the chosen endpoint can serve the hostname, certificate and expected content. An ordinary child name generally does not require another registration.

  2. The parent has a wildcard but a closer team node exists. There is no wildcard beneath team. What happens to an otherwise absent child in the lesson?

    Answer and reasoning

    The closest ancestor is the team node. With no applicable wildcard there and no exact child, the example gives NXDOMAIN. The broader wildcard does not override that closer existing node.

  3. A query below the delegated classroom branch reaches the parent provider. Which DNS result does it ordinarily need to continue?

    Answer and reasoning

    A referral identifying the authorities delegated for the classroom child. The parent does not serve the child's intended address by applying its ordinary wildcard across that zone boundary.

  4. The blog and main website show the same A value, but their pages differ. Can that be correct?

    Answer and reasoning

    Yes. The shared service can distinguish accepted names on one address and port, then load different handlers or root paths. Compare the exact named response and TLS identity for each.

  5. A deeper outlet name receives an address from DNS. How do you know whether it is covered by a wildcard certificate?

    Answer and reasoning

    Match the exact intended hostname against the certificate's subject alternative names and applicable wildcard rules. A DNS wildcard may synthesize a deeper answer in some cases. The TLS wildcard generally matches one complete leftmost label.

Cards for the next site name

Name or path

Changing a hostname can change DNS and identity checks. A path changes the request inside a selected reachable site.

Find the record's zone

Ordinary child records commonly live in the parent zone. Delegation sends questions for a branch to its own authority.

Existing names take precedence

Consider exact owners, empty nonterminals and closest enclosers. A DNS wildcard is a conditional source of synthesized data.

Certificates have distinct matching rules

Verify the requested TLS identity at the serving endpoint. A wildcard identity typically covers one complete subdomain label.

Share a listener and test separate names

Compare named request markers, intended fallback and existing neighboring services. A shared address can serve multiple sites.

Official references