DNS and HTTP Basics for Web Projects

DNS and HTTP belong to the basic structure of every web project. The examples cover resolution, headers, policies, and session cookies.

Read DNS records and lookups

bash

These lookups return addresses, mail servers, TXT entries, and responsible name servers.

Read request and response headers

http
http

These headers define format, caching, and variants of a resource.

Set CORS and CSP

http

CORS handles access between origins. CSP limits allowed sources for content.

Set cookies for sessions

http

Key points

  • DNS provides the basis for reachability and mail delivery
  • Headers define format, cache behavior, and origin
  • CORS handles access between origins
  • CSP limits allowed sources
  • Cookies store sessions and attributes

See also

Hosted in 🇩🇪 by

manitu
© 2026  |  Armin Kunkel  |  Author, Software Developer, Lecturer, Computer Scientist  |  Karlsruhe