Skip to content

Free domain registration and practical DNS learning resources for everyone.

4.6 KB
Raw Blame

Monitoring and Incident Response

Monitoring answers whether the system is behaving as expected. Incident response defines what to do when it is not.

Monitor the User Path

The most useful external check follows the public path:

DNS resolves
-> TCP connects
-> TLS validates
-> HTTP returns expected status
-> Page contains expected identity

A process can be running while users still see an expired certificate, wrong DNS address, or error page.

Essential Checks

Domain expiration

Alert well before the current renewal window closes. Assign the alert to a responsible owner and a backup.

Nameserver delegation

Compare current parent delegation with the approved nameserver set.

DNS records

Monitor important A, AAAA, CNAME, MX, and policy records for unexpected changes.

TLS certificate

Alert on expiration, hostname mismatch, invalid chain, and unexpected issuer when the project maintains an issuer expectation.

HTTP

Check the canonical HTTPS URL, expected status, redirect path, response time, and a small content marker.

Server health

Monitor disk space, memory pressure, CPU saturation, process restarts, time synchronization, backup results, and security updates.

Avoid Noisy Alerts

An alert that fires constantly without action trains operators to ignore it.

Every alert should answer:

  • What user impact does this indicate?
  • Who receives it?
  • How urgent is it?
  • What first diagnostic should be run?
  • When should it escalate?
  • How is recovery verified?

Establish a Baseline

Record normal values:

  • Typical HTTP latency
  • Normal response size
  • Expected redirect count
  • Expected DNS answers
  • Normal disk growth
  • Normal application error rate

Thresholds without a baseline can miss slow degradation or create false alarms.

Incident Severity

Example levels:

Severity Example Response
SEV-1 Domain hijack, widespread phishing, total critical outage Immediate coordinated response
SEV-2 Website unavailable, certificate expired, major feature broken Urgent owner response
SEV-3 Partial degradation or noncritical failure Scheduled prompt investigation
SEV-4 Cosmetic or documentation issue Normal maintenance

Define severity for the actual project. A personal portfolio and a public safety service do not have the same impact.

First Response Checklist

  1. Record the detection time and reporter.
  2. Confirm the issue from an independent path.
  3. Define affected hostnames, users, and services.
  4. Preserve relevant logs and current configuration.
  5. Contain harm with the smallest reversible action.
  6. Assign an incident lead.
  7. Communicate a factual status and next update time.
  8. Diagnose from registration and DNS toward the application.
  9. Apply and verify recovery.
  10. Monitor for recurrence.

Do not erase logs, rotate every system, or redeploy unrelated components before preserving evidence and understanding the scope.

Domain Hijack Signals

  • Nameservers changed unexpectedly.
  • DNS records point to unfamiliar infrastructure.
  • Account recovery email changed.
  • A certificate was issued unexpectedly.
  • Website content changed while the server remained untouched.

Response may require securing the email account, revoking sessions and API keys, restoring registration settings, contacting official support, and warning users. Preserve exact timestamps and account notices.

Certificate Incident

If a private key may be exposed:

  1. Remove unauthorized access.
  2. Revoke or replace the affected certificate according to the certificate workflow.
  3. Generate a new private key.
  4. Deploy the new certificate and chain.
  5. Confirm every server uses the replacement.
  6. Investigate how the key was exposed.

Merely deleting a copied key from a public location does not make it secret again.

Post-Incident Review

Write a blameless technical review containing:

  • Impact
  • Timeline
  • Detection method
  • Root cause and contributing conditions
  • What reduced impact
  • What delayed recovery
  • Corrective actions with owners and dates
  • Verification that actions were completed

Avoid vague actions such as “be more careful.” Improve a system, review gate, alert, backup, permission, or runbook.

Tabletop Exercise

Scenario: the canonical domain suddenly resolves to an unknown IP while the production server remains healthy.

Write:

  1. The first three commands you run.
  2. Which accounts you secure.
  3. Which evidence you preserve.
  4. How you restore service.
  5. How you notify users.
  6. How you verify the incident is over.

Continue to Server Hardening and Maintenance.