Suggest an editImprove this articleRefine the answer for “At which OSI layer does DNS operate?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)**DNS** operates at the application layer of the OSI model (layer 7): it is an application-layer protocol because it provides a service directly to applications, rather than transmitting bits or packets. **Key point:** DNS forms its request at the application layer, while the request itself is delivered over UDP/TCP at the transport layer.Shown above the full answer for quick recall.Answer (EN)Image**DNS operates at the application layer of the OSI model (layer 7).** In simpler terms: **DNS is an application-layer protocol**, because it provides a service **directly to applications**, rather than dealing with transmitting bits or packets. --- ## Why the application layer specifically ### What the OSI application layer does The application layer: - provides network services to applications - works with the **logic and meaning of data** - is responsible for how programs interact with the network Examples of protocols at this layer: - HTTP - FTP - SMTP - **DNS** --- ### What DNS does DNS: - accepts requests like "What is the IP address of `example.com`?" - returns a response the application can understand - operates at the level of **names, records, and logic**, not data transmission This is a typical **application-layer** task. --- ## A common point of confusion in interviews *DNS runs over UDP and TCP, so why is it the application layer?* The answer: - **UDP and TCP** are the transport layer - **DNS** uses them **as a delivery mechanism**, but **the DNS protocol itself is application-layer** An analogy: - the postal service delivers a letter (transport) - the text of the letter is already the application layer --- ## How DNS fits into the OSI model Simplified: - DNS forms a request -> **application layer** - the request is sent over UDP/TCP -> **transport layer** - then the IP and link layers take over But **DNS itself, by OSI classification, is L7**. --- ## Short interview answer Remember this formulation: > **DNS operates at the application layer (layer 7) of the OSI model, because it provides a network service to applications, converting domain names into IP addresses.**For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.