Chapter 9: Domain Names, DNS and Subdomains
9.4 Before you point a domain: prepare the server
Friends, prepare the intended endpoint before pointing the name. Confirm its address or managed target, which clients may reach it, and the result of a named request.
मित्रांनो, डोमेन पॉइंट करण्याआधी अपेक्षित endpoint तयार करा. त्याचा पत्ता किंवा managed target, कोणत्या clients ना access आहे आणि योग्य नावाने येणारं उत्तर तपासा.
दोस्तों, डोमेन पॉइंट करने से पहले सही endpoint तैयार करें. उसका पता या managed target, किन clients को access है और सही नाम से आने वाला उत्तर जाँचें.
- Identify the approved frontend. In a direct public IPv4 EC2 design, verify the intended stable address and association. An eligible managed load balancer uses its documented name or alias approach.
- Check the route, public or private access plan, actual listener and selected hostname. Use appropriate rules for the client-facing endpoint and any internal backend connections. Keep administrative access separate.
- Make a named request to the prepared endpoint and compare the expected body, important asset and TLS identity where applicable. Keep the existing service ready during an approved transition as the plan requires.
Verify that the planned address remains yours
An automatically assigned public IPv4 address can change across an instance stop and start. An associated Elastic IP can supply a stable direct IPv4 destination. For a managed frontend, configure its documented DNS target. Confirm the expected connection paths and current public IPv4 charges before allocating anything.
Ravindra Bagale's Tip
An auto-assigned address can change after stop and start. Decide whether your design needs a stable EC2 IPv4 address or a managed endpoint. Check the intended listener and named response before updating DNS.
Ravindra Bagale's Tip – मराठी
Instance थांबवून पुन्हा सुरू केल्यावर आपोआप मिळालेला public IPv4 बदलू शकतो. तुमच्या रचनेला स्थिर EC2 IPv4 हवा की managed endpoint ते ठरवा. DNS बदलण्याआधी listener आणि योग्य नावाने येणारं उत्तर तपासा.
Ravindra Bagale's Tip – हिंदी
Instance को रोककर फिर शुरू करने पर अपने-आप मिला public IPv4 बदल सकता है. अपनी रचना के लिए स्थिर EC2 IPv4 या managed endpoint चुनें. DNS बदलने से पहले listener और सही नाम का उत्तर जाँचें.
Lab
Chala, compare the IP fallback and named result in the loopback exercise below. Check the intended page, supporting asset and missing path before planning a DNS change. No public address allocation is needed for this exercise.
Got it? Identify the frontend and its allowed client path. Verify the hostname, response and TLS conditions before publishing the new DNS association.
समजलं का? योग्य frontend आणि client चा मार्ग ठरवा. DNS बदलण्याआधी नाव, उत्तर आणि TLS तपासा.
समझ आया? सही frontend और client का रास्ता तय करें. DNS बदलने से पहले नाम, उत्तर और TLS की जाँच करें.
Prove the new endpoint is ready before publishing its address
Friends, the practice dairy is preparing a weekend collection page. Staff have printed the website name on their receipts. They want that name to lead to a new server without asking customers to learn another address. The DNS administrator should be able to ask the hosting team for evidence that the new endpoint already serves the right site. This matters because changing DNS tells some clients where to go as soon as their resolvers see the changed result. It does not start the server, make a route reachable, or choose the right certificate on its behalf.
Write down the intended hostname, scheme, port, URL path and body before checking the machine. Use a distinctive response such as Weekend collection ready, and include an asset or another useful route. Also write the audience that should be able to reach it. A public shop website and a staff-only site can require quite different networks and rules. The required setup follows that intended access. An Elastic IP can be suitable for a single public IPv4 EC2 instance, while a load balancer can be the public endpoint for several private instances. Neither choice follows automatically from having a domain.
For the lesson, we will test a private loopback endpoint with a short temporary name override. It shows how a numeric-address check and a named request can produce different bodies before any real DNS record is changed. Then we can apply the same reasoning to eligible, authorized staging environments. The lab does not need an AWS account or address allocation. Keep public cloud charges, provider ownership and production policy changes outside a local rehearsal unless the exercise specifically assigns a disposable resource and owner.
Choose the endpoint architecture first
A common single-server design has an EC2 instance that is reachable directly from the intended client network. For a simple public IPv4 arrangement, the published A answer could point to an Elastic IP associated with that deployment. The instance needs a valid route and permission for the expected traffic, plus the operating system and application settings needed to answer. If the business expects the site to remain available during instance loss or maintenance, decide whether one instance alone meets that expectation. A stable address is an addressing feature. It cannot make one server respond when its process, network or underlying machine is unavailable.
Another design uses an internet-facing Application Load Balancer. The public DNS name is intended to lead to the load balancer using provider-supported DNS records. The public listener can serve TLS and forward selected requests to a target group. A target is the host or application endpoint that receives the forwarded action. Its reachable address may be private to the network. In this arrangement the backend does not need its own public Elastic IP just to make the website work. Observe the expected listener, relevant routing rule, eligible target and response through the front door. A healthy status for a configured check path is useful but still leaves the intended application request to verify.
A third useful design is a private site for staff. Its clients may connect from a corporate network, a routed private environment or a VPC with approved DNS and network access. A private hosted zone can publish the intended name within the applicable resolver arrangement. Opening internet-wide rules would contradict this service goal. Write the intended audience and their route first. A coworker on the authorized network can give evidence about that design. A generic public URL check from an unrelated network cannot certify it.
Some hosts are reached through a managed CDN or other service that supplies a documented endpoint by name. A CDN is a content delivery network that can serve or proxy responses from closer locations. Its addresses may change without the web team changing its target name. Use the documented way to attach a custom domain and appropriate certificates. Copying a currently returned provider address into a record can hide this relationship and leave a brittle setup. Decide which component is the client's destination, then distinguish the origin behind it from the name clients actually request.
Read EC2 addressing before choosing a published IPv4 value
An EC2 instance has network interfaces, and IPv4 instances normally receive a private address in their subnet. The operating system uses local addresses on those interfaces. In a common public IPv4 configuration, the internet gateway maps traffic between the public IPv4 address and the instance's private IPv4 address. That explains why a public IP displayed in the EC2 console may not appear as a directly assigned IP in the operating system. A process binds to an appropriate local address and port. The cloud networking arrangement then determines whether traffic for the public address can reach that process.
A normally assigned public IPv4 address can be released on stop or hibernate and replaced on a later start, according to the instance's addressing setup. It is not a durable address to publish for an owned website if clients must keep reaching the service through those lifecycle events. An Elastic IP is static public IPv4 infrastructure allocated to the account for its supported Region and network border group. When appropriately associated, that allocation can provide a stable planned endpoint. Check the intended association, route and resource before use. Elastic IPs are not the way to allocate an IPv6 counterpart for an AAAA record.
Allocation and association differ. Allocating reserves an address to the account. Associating links it to the appropriate instance or network interface configuration. An allocation alone does not make a web page reachable. When associating an Elastic IP to an instance or its primary interface replaces an auto-assigned public address, the old public address can be released. Existing remote clients using it, including SSH clients, can lose that connection path. Before an authorized association, record the active access path and arrange verification and an approved fallback. Avoid making an address change remotely based solely on a control-panel guess about the right interface.
AWS documents charges for public IPv4 addresses, including Elastic IPs whether in use or idle, subject to its current pricing rules. Read the official pricing terms and the account's applicable arrangement before provisioning a practice resource. The safe local exercise does not allocate or associate any public address. For a separate cloud exercise, track the owned allocation and dependencies. An address that still receives real user traffic is not a disposable resource. If a migration is approved, verify the replacement and retire or release only the allocation that is no longer needed through the agreed process.
When IPv6 is part of the plan, check the separate address and route setup. The client can obtain an AAAA result and try an IPv6 connection independently of IPv4. You need an applicable IPv6 listener, network routing and permissions for the intended client path. An IPv4-only success with an existing stale AAAA record can still leave some users on a wrong endpoint. Write down both family requirements. If a managed endpoint supports dual stack according to its documentation, use the proper record choices and make actual named observations for the published families.
Trace the path from the intended client to the socket
Before checking DNS, identify the route from the intended client to the intended endpoint. For a simple directly public EC2 design, check the internet gateway arrangement and the subnet route table supporting the desired internet traffic. Confirm the relevant public addressing and routing, then check the security groups attached to the receiving resource. Security groups are stateful and control the allowed traffic for their associated resources. Network ACLs apply at subnet scope and have different, stateless behavior. Local firewall rules can also affect the receiving machine. These controls have separate places in the path, and a rule on one layer may leave another layer unchanged.
For a public HTTPS service, the approved design may allow clients to reach the frontend's HTTPS listener. If the site redirects HTTP to HTTPS or requires a compatible challenge path, an HTTP listener may be required as well. A private site can restrict access by client network or security-group relationship, depending on topology and applicable service features. Opening both ports to the entire internet is a design choice for some public endpoints, not a universal prerequisite. Administration is a distinct path. Keep SSH or other management access scoped to the approved administrators and methods, rather than matching the access allowed for public website visitors.
Suppose an internet-facing load balancer listens on HTTPS, and its target group forwards to a web service on an internal HTTP port. The load balancer's receiving rule and target's receiving rule refer to different connections. The target must accept the relevant traffic from the load balancer and support its health checks. Its client-facing certificate can be at the load balancer even if the target uses a separately selected protocol. Use the documented frontend-to-target design. A direct public IP probe to the target might be intentionally unavailable, and requiring it to return a page would weaken the intended boundary.
Inside an approved Linux session, an observation such as ss -ltn helps you see which local TCP addresses and ports are listening. A listener on 127.0.0.1 is local to that network environment. One that should accept traffic through an interface may need a different binding. A bound socket tells you a connection could be accepted there, subject to the rest of the path. A service status check says a supervisor reports a process active. Compare a real request to the selected socket and the expected body. A successful local default-page check cannot prove a distinct hostname's virtual host or public path works.
When planning a change, write a simple sequence of checks. Identify the address that belongs to the endpoint, the route that reaches it, the relevant policy permitting the intended source, the local listener on the desired port, and the hostname-specific service response. If no network connection gets through, identify which layer needs evidence before adjusting it. If a request produces HTTP 404, it reached an HTTP component and selected some handler. Compare the requested site and path before opening access further. The ordered observations make subsequent work more precise.
Verify the host before changing the lookup
Many web servers support several websites on one listener. They use the client's named request to help choose the right site. A request made by numeric address may select an intended fallback with a status of 200. It does not establish that pickup.dairy.example.test matches its configured site or that the correct path exists there. In the workshop we prepare a different marker for the normal site and for the fallback, then make both requests to one address. Seeing the exact difference helps a future operator diagnose the wrong default page without changing DNS.
Curl can make a controlled request to an authorized address while keeping the intended hostname in the URL. Its --resolve option supplies a mapping for a specific hostname and port in that invocation. The connection goes to the provided address. The URL retains the intended name for the HTTP request and, for an ordinary HTTPS connection, the relevant TLS identity checks. This is especially useful before a public DNS update. Confirm any configured HTTP proxy or network intercept behavior is appropriate to the test. The local lab uses a narrow bypass for its private names and loopback address.
Scheme and port matter when test requests use a temporary mapping. A route prepared for HTTP does not also prove HTTPS works. On a TLS listener the name, certificate validity and applicable trust configuration need to be correct before a normal HTTP request can pass. If the certificate is not yet ready, report that separately. A temporary local mapping is useful for checking an authorized preconfigured host, but does not itself prove DNS control to an external issuer. Some issuers support suitable DNS challenges before a site record is moved. Later lessons explain TLS and approved validation choices in more depth.
Choose a safe GET for the initial check. A HEAD probe can return only headers, and may use different application handling from the customer route. A body marker gives clear evidence for a planned page or harmless frontend service. Add a neighboring supported response and a planned missing-path test. Save only a small excerpt of any relevant logs. Expected successes and intentional negative cases describe the target more accurately than one unlabeled 200. When the site serves multiple hosts, add a baseline for an unrelated host that should keep its own behavior.
Run the readiness probes without publishing DNS
Use a fresh Bash terminal with Python 3.7 or newer and curl. Copy the block in full. Python starts a small private HTTP listener at a port chosen by the operating system. Curl probes that exact loopback address, first as an IP and then as the planned name. The handler returns different markers for those hosts. The exercise does not listen on a public interface, load a live web configuration or write any files. The forced mapping applies only to the listed curl command, and the reserved test name stays out of public DNS.
Predict the four observations before running the code. The IP request should receive the generic fallback, even though it responds on the same socket. The planned hostname at the collection path should receive the intended weekend body. The planned hostname at the route for a supporting asset should receive that asset's marker. An incorrect path under the same host should return 404. This exercise means that a listener which is merely available can still fail the more precise readiness condition.
python3 - <<'PY'
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
import shutil
import subprocess
import threading
if not shutil.which("curl"):
raise SystemExit("Install or use an available curl before this optional local lab.")
site = "pickup.dairy.example.test"
class PreviewHandler(BaseHTTPRequestHandler):
def do_GET(self):
host = self.headers.get("Host", "").split(":", 1)[0]
if host != site:
status, data = 200, b"Fallback: listener is running"
elif self.path == "/collection":
status, data = 200, b"Weekend collection ready"
elif self.path == "/assets/notice.txt":
status, data = 200, b"Weekend notice asset"
else:
status, data = 404, b"No matching path"
self.send_response(status)
self.send_header("Content-Type", "text/plain")
self.send_header("Content-Length", str(len(data)))
self.end_headers()
self.wfile.write(data)
def log_message(self, format, *args):
pass
def run_probe(url, bypass, expected_status, expected_body, *mapping):
command = [
"curl", "-q", "--noproxy", bypass, "--silent", "--show-error",
"--max-time", "3", "--write-out", "\n%{http_code}", *mapping, url,
]
result = subprocess.run(command, check=True, capture_output=True, text=True, timeout=5)
body, status = result.stdout.rsplit("\n", 1)
print(f"{url} -> HTTP {status}: {body}")
assert (status, body) == (str(expected_status), expected_body)
with ThreadingHTTPServer(("127.0.0.1", 0), PreviewHandler) as preview:
port = preview.server_port
worker = threading.Thread(target=preview.serve_forever, daemon=True)
worker.start()
try:
target = f"http://{site}:{port}"
map_to_loopback = ("--resolve", f"{site}:{port}:127.0.0.1")
run_probe(f"http://127.0.0.1:{port}/collection", "127.0.0.1",
200, "Fallback: listener is running")
run_probe(target + "/collection", site, 200, "Weekend collection ready", *map_to_loopback)
run_probe(target + "/assets/notice.txt", site, 200, "Weekend notice asset", *map_to_loopback)
run_probe(target + "/missing", site, 404, "No matching path", *map_to_loopback)
finally:
preview.shutdown()
worker.join()
print("Private listener closed. No files or DNS were changed.")
PY
The script gives curl a bounded time to receive each response and prints its body and HTTP status separately. It uses curl's -q as the first argument to skip a personal curl configuration file during this exercise. The bypass names avoid applying a configured HTTP proxy to the exact loopback and reserved practice requests. The ordinary HTTP check for the missing path still returns status 404 to the program. Curl can complete the exchange successfully even for such a status when no fail-on-status option is in use. The test asserts 404 as an intended result.
Compare the first and second printed URL. Both go to the protected loopback listener on the same port. The first sends the numeric host and returns a generic body. The second sets a per-invocation mapping and uses the planned name as the HTTP host. Now compare the third and fourth cases. Both use the planned name, while the path alone changes the result. The supporting notice file is represented by a fixed body in the fixture. This teaches you to add an asset check explicitly for a page whose visual result depends on more than its own HTML.
The lab's ports and outcomes are controlled by the local script, and it closes its own listener on completion. To explain a public launch you would need the real external ingress path and the appropriate TLS listener, each verified by an authorized probe. For ordinary HTTPS use the intended HTTPS URL and keep normal certificate verification enabled. Passing the local HTTP experiment is useful preparation for understanding named hosting. It gives no certificate or AWS network evidence by itself.
If the lab command fails because curl is unavailable, complete the four-row worksheet on paper. Put the address and port in the first column, the URL hostname and path in the next two, and the response status and body in the last two. Which rows can have the same status but a different marker? Which rows share a host but differ by path? Explain which comparison would make you halt DNS publication. A previous marker or fallback for the intended host is a failed readiness check even if another request returns a numeric success.
Use a preflight record that another operator can repeat
For an authorized real project, write an inventory of the intended external endpoint, any private targets and the currently published DNS association. Identify the resource owner and the only planned changes. Record whether the service uses static IPv4, appropriate IPv6 or a managed endpoint by name. Keep the current project scope explicit so adding a site on a shared host does not accidentally change a different site's binding, certificate or default rules. A small comparison request to a known unrelated route can prove what remained healthy while you concentrate on the new site.
On the server side, confirm the approved server configuration, including any include and selected root or proxy. Run the server's appropriate configuration check for the active setup. Review the intended site name and path. Then make the authorized local or staged request under that name. Record any operator action needed to test or apply it and keep a recoverable version of the working config. A package test with generic defaults is helpful background. The release test needs the actual configured named request.
Next trace the expected path from the client's environment. Confirm the traffic reaches the designated public or private frontend on the correct family and port. Use an authorized remote vantage point where relevant. Pay attention to which component accepts TLS and which forwarding or routing rule selects the backend. A CloudFront or load balancer result may be more relevant than a query to the origin on its own. A direct origin check still helps the service owner isolate a failure. Explain which path each observation used, along with which response it confirms.
Then verify protocol and content. Compare the header or redirect destination where needed, and the expected GET body for the core route. Check a supporting asset or another important route. If users normally use the apex and www, verify both desired names. If one should redirect, record which way and whether the incoming HTTPS connection succeeds under that name. If you can only verify HTTP today, record what the certificate operator still needs before the public change. Do not infer that the issue is only DNS when another layer is still insufficiently configured.
Finally, decide what a failed preflight means. Do not publish an unverified route simply to make it easier to test from a browser. Confirm the missing part first. When the intended route succeeds, capture the before and after DNS outputs from the proper authorities and client resolvers at the planned change time. A change window may need both old and new endpoints working while caches retain earlier data, and it can include a recovery option. Restoring a record will not instantly rewrite every cache. The previous lesson explains why the exact cached answers matter.
Keep the handoff bounded to evidence someone can use. A possible record is “The intended host and collection path returned the weekend marker when forced to our approved endpoint, the corresponding asset route returned the expected text, and the missing path returned 404. The external HTTPS probe is still pending because the listener certificate is scheduled for the next stage.” This is graded more favorably than “200 on the server.” The claimed observation states the name, path and scope. The remaining task belongs to the next authorized owner.
Compare two cloud diagrams before touching access rules
In the direct EC2 diagram, draw the customer, public address, internet gateway, subnet route, security policy and local listener. The public IPv4 address is associated with the intended instance or interface. A route must permit the appropriate traffic to traverse the gateway. The local receiving process sees a connection on its configured port and can select the site by name. If an external connection times out after a successful local GET, your diagram shows the missing stages. Gather observations about the destination, address family, route and relevant access policy before updating them.
Now draw a second diagram. Put a public load balancer between the customer and the private web target. Draw two separate connections with distinct source, destination and protocol. The frontend accepts the ordinary customer name and certificate. The target receives the load balancer's chosen request or health probe. A rule permitting clients to reach the frontend does not automatically govern the other connection. An instance can be designed to remain inaccessible to direct public connections while the approved frontend works. This is a valid design, not a failed first diagram.
For the practice task, write which DNS value belongs to the direct plan and which belongs to the load balancer plan. Use documentation addresses or provider examples, so there is no allocation to make. In the direct case describe the stable associated address and how an address record uses it. In the second case describe the provider-supported name or alias arrangement, without choosing a temporary load balancer IP learned from a lookup. Add the name, port and root response you would want in both circumstances. Success is an explanation of the difference plus an observable expected result.
Use one more comparison with your partner. Suppose both drawings show traffic on a number you recognize, but the named response gives the default marker. Which stage worked? The connection and HTTP response establish that the request reached a listener. They leave an unresolved question about the selected site or route. Compare the exact client hostname with the accepted configuration and understand each intermediary's handling of that host value. If the TLS name fails first, find the certificate endpoint before looking for a named HTTP request log. This exercise brings together the practical distinction between network reachability and a ready website.
Decide when the preflight should stop a change
Suppose the private site returns the right collection page when tested loopback, but the intended external probe cannot connect. Write down the destination, requested port, address family and source context. Ask which architecture is expected. If an instance is meant to remain private behind a load balancer, the external probe should go through the load balancer. If a directly public instance is the designated endpoint, compare its current public association, route and approved ingress. A successful localhost observation stays valuable because it separates the application content from the missing external path.
In a second scenario, the external connection succeeds but the named test times out on TLS or presents a different certificate. Check the actual endpoint that terminates that connection and the requested certificate name. The correct DNS destination alone does not cause the service to offer a certificate for every hostname. A local IP-only browser test may have used a different scheme or different name. Record the precise result from the intended hosted endpoint. Until the relevant TLS check and route both pass, an ordinary HTTPS customer is not ready to use the site.
In a third scenario, the site returns the right page but its notice style is missing. That suggests some part of the site works. Use the customer's actual asset URL as an independent check. It might use a different host, a different path mapping or separate TLS. A page can include an incorrect base URL that sends additional requests to an old origin. Trace the address the browser attempts and compare it with the accepted deployment plan. This is why our test checks a supporting path and a deliberate missing path. The visual page requires its dependencies as well as its main body.
In a fourth scenario, the staged target returns the expected page yet the old public service still carries important traffic. Verify the known working old endpoint, publish the approved change only when the new path is ready, and ensure the service owner can monitor both during the transition. Keep a specific recovery decision in the plan. For example, if named HTTPS breaks on the new endpoint, who can restore the intended association and who keeps the old endpoint available temporarily? Restoring an authoritative value does not call clients back from old cached answers immediately. That is why a change window considers both configurations.
The exercise ends when a second learner can inspect your evidence and decide whether the intended public release is ready. They should see which endpoint you tested, how the hostname was kept in the request, whether it used HTTP or HTTPS, and which response marker proved selection. If access scope, certificate issuance or public DNS is still pending, that question has an owner. Write the remaining action in terms of the missing proof instead of estimating how long all customers will see the change. Successful preparation makes the next DNS decision explicit and repeatable.
Here is a paper task for a handoff between two teams. The hosting team says the new public endpoint is ready, but its work order recorded one IPv4 address from the initial launch and a different current association. The DNS team has an existing record for the previous service and permission to change only that record. Ask the hosting team to verify which current address actually belongs to the approved resource, including its intended public route. Ask the DNS team to record the previous value, type and TTL. Compare a named request using the approved new endpoint before publishing. If the earlier launch value is no longer assigned, remove it from the decision table instead of trying it as though it were still controlled by the team.
Now extend the table with timing. Write when the prior audience could have learned the current DNS value and where traffic arriving with it will still go. Include when the previous service can be retired under the team's plan. Test the currently working endpoint before assuming recovery is available. If one operator can update DNS but another owns the old host or certificate, record the handoff. A restore request cannot recover a server that is already deleted or an address already released. Either preserve that agreed fallback until the transition is complete or document an alternate verified recovery route.
Finally, compare the two diagrams with an example that uses a front proxy and an internal app. The address visible to the user is the proxy's destination. The app may have a completely different internal name and port. Intruding a public address rule into the app environment would add a second confusing path without helping the proxy know where to send requests. Check the selected proxy rule and intended target instead. Your plan passes when it preserves the right client boundary and identifies which two separate connections need evidence.
Explain the evidence behind a ready endpoint
Why prepare the site before updating its DNS?
A changed DNS answer can direct clients to the destination as soon as their resolver learns it. The route, listener, name-based handler and certificate must already support the intended request. I would verify the named route and its expected body using an approved staging or forced-address test, then check the real client path after publication. DNS contributes a location. It does not create the site's response.
When would you use an Elastic IP for this project?
For a supported direct public IPv4 EC2 design needing a stable address, I could use an account-allocated Elastic IP with the appropriate association. I would verify which resource and interface it belongs to and how that changes any existing connection path. I would also review AWS pricing and resource ownership. A managed public load balancer or private service can use a different appropriate design and does not require every backend to have one.
What does curl --resolve let you check before a published DNS change?
It supplies an address for a specific host and port in one curl invocation while the URL retains the intended hostname. A request to an authorized prepared endpoint can therefore show the named web response and, for ordinary HTTPS with trust verification, the correct certificate behavior. It does not change public DNS or make an external issuer use the same mapping. I would use a safe GET and check a distinct marker.
Why isn't a successful request to the EC2 public IP enough?
A numeric URL can select a fallback on a multi-site server. The name in an HTTPS URL can also affect the certificates encountered before HTTP. I would check the real hostname and path at the intended endpoint, and compare content with a recognizable marker. The IP check is evidence of one connection and HTTP response. It leaves other parts of the release to verify.
How do you verify network rules for a website behind an Application Load Balancer?
Identify what may reach the frontend and what the frontend must reach. The public listener's client path and the internal target or health-check path are separate. I would verify the appropriate security-group configuration and record the endpoints, ports and protocols involved. Then I would use the expected public name, TLS and route through the load balancer. Successful direct traffic to a backend is not required in a design where it is intentionally private.
What would you check if IPv4 works but some visitors still cannot connect?
Compare the exact DNS A and AAAA results and the actual address family each client attempted. Trace the routes, relevant permissions and service bindings for that family, then use the named request on the intended endpoint. A working IPv4 release does not show that another published family is ready. If a stale address remains, document the appropriate corrective scope through the DNS and service owners.
Decide whether the release condition has been reached
A numeric HTTP request returns a default welcome page with 200. What other smoke test would you run?
Answer and reasoning
Request the intended hostname and path through the real expected protocol and destination. A named GET with a body marker helps identify the correct handler. The numeric success establishes that an HTTP responder exists, not that it selected the intended site.
The service uses a public load balancer and private instances. Which layer should receive public HTTPS traffic?
Answer and reasoning
The configured public frontend is the destination. Its listener accepts the client connection and forwards appropriate traffic to eligible targets. The backend access should follow that internal connection design. Confirm the target and health-check ports separately from the client-facing listener.
An Elastic IP was allocated but the owner cannot reach the instance through it. What must you establish next?
Answer and reasoning
Confirm the intended association, addressing and route, applicable policy, then the actual listener. Allocation reserves the address to the account. It alone provides no working web endpoint and should not be announced as release-ready.
In the lab, the named page and asset pass but the deliberate negative path returns 404. Is that a failed readiness assertion?
Answer and reasoning
The intended negative case passes. The HTTP status and body match the expected missing path, while the two expected successful named routes were verified independently. Checks grade the stated contract instead of assuming every request should return 200.
A teammate asks you to use an insecure curl option to call a certificate check successful. What result should the handoff state?
Answer and reasoning
Record the actual certificate result with normal verification for the intended hostname. A bypass can skip the identity condition ordinary visitors need. If naming or trust still fails, keep that as a pending release condition and verify the actual TLS endpoint.
Cards for the DNS change meeting
Identify the real frontend
Choose the direct endpoint, managed load balancer, CDN or private design. Follow the documented DNS target for that architecture.
Allocate and associate have different effects
Allocation reserves the address. Association connects it to the intended network resource. Routing, allowed traffic and a listener still matter.
Verify the intended name
A fallback can respond to an IP address. Keep the hostname in an authorized probe and compare the exact status and body marker.
Plan the old and new paths
Record the current DNS and service state. Verify the replacement before publication, and account for earlier answers that clients may still use.
One probe answers one question
Local listening, public reachability, TLS identity, virtual host and path each need the appropriate observations. Include a relied-on asset or second route.
Official references
- EC2 Elastic IP allocation, association, lifecycle and charging
- EC2 public, private, IPv4 and IPv6 addressing
- Current AWS public IPv4 pricing
- VPC internet gateways and subnet routing
- VPC security groups and rule scope
- VPC subnet network ACLs
- Application Load Balancer and target security groups
- Route 53 records for managed load balancers
- Private hosted zone visibility
- Curl per-invocation host resolution and request controls
- Named TLS endpoints and certificate selection