Contact us
Cisco Partner

Product

DNS-layer security: what layer is DNS and why protect it?

DNS sits at the application layer, but it comes before almost every other connection. That timing is what makes the DNS layer such a useful place to stop threats.

  • We reply by email
  • Forever Systems, part of Forever Group

In short

DNS is an application-layer protocol: layer 7 in the OSI model and the application layer in the TCP/IP model. It normally runs over UDP and TCP port 53, with DNS over TLS on port 853 and DNS over HTTPS on port 443. DNS-layer security uses those lookups as a first checkpoint, blocking harmful domains before any connection starts.

Get a quote for DNS-layer security

Tell us roughly how many users or sites you have and we will reply by email with options and a quote.

Contact us

What layer is DNS?

DNS is an application-layer protocol. In the seven-layer OSI model it sits at layer 7, alongside HTTP and SMTP; in the four-layer TCP/IP model it sits in the application layer. It feels like infrastructure because every other service depends on it, but technically it is an application that other applications rely on before they connect.

Underneath, DNS is carried by transport-layer protocols. Which one depends on the type of DNS:

Type of DNSTransportPortStandard
Classic DNSUDP, with TCP for large answers and zone transfers53RFC 1035, RFC 7766
DNS over TLS (DoT)TCP with TLS encryption853RFC 7858
DNS over QUIC (DoQ)UDP with QUIC encryption853RFC 9250
DNS over HTTPS (DoH)HTTPS443RFC 8484

The ports matter for security. Classic DNS and DoT use dedicated ports, so a firewall can force them through your chosen resolver. DoH shares port 443 with ordinary web traffic, which is why it can slip past network controls; see encrypted DNS and should you block DNS over HTTPS?.

Not sure which option fits? Ask us

Tell us what you need and we will recommend the right option for your organisation, with a quote.

Contact us

What is DNS-layer security?

DNS-layer security is protection applied at the moment a device looks up a domain. The device's lookups go to a protective resolver, which checks each domain against threat intelligence and your policy before answering. If the domain is malicious or blocked, the resolver does not return its real address, so the connection does not begin.

That makes it a first control: it acts before a TCP session opens, before a TLS handshake, before any content downloads. Cisco uses the term for the DNS protection in Cisco Umbrella and Cisco Secure Access, and the same approach is used by every protective DNS service, including the NCSC's protective DNS service for the public sector. Our what is DNS security? guide covers the lookup process step by step.

Why block threats at the DNS layer

  • Before the connection: a blocked lookup means no session, no handshake and no download, so there is nothing to clean up afterwards.
  • Every port and protocol: it covers any application that resolves names, not just web browsers on ports 80 and 443.
  • Every device on the network: printers, cameras and guest devices that cannot run an agent are still protected when they use your resolver.
  • Light to deploy: changing DNS settings or forwarders needs no new hardware, and there are no certificates to install for basic blocking.
  • Early warning: repeated lookups for command-and-control domains point you to a device that may already be infected.
  • Works off site too: roaming clients keep laptops and mobiles on the protective resolver at home and on public Wi-Fi.

Is DNS-layer security the right fit for you?

We will check it against your systems and requirements and recommend the right option.

Contact us

How DNS-layer security complements other controls

DNS-layer security does not replace firewalls, proxies or endpoint protection. Each layer sees something different:

ControlWhat it seesGood atWhat it misses
DNS-layer securityDomain names devices look upStopping known-bad and unwanted domains before connection, for every appFull URLs, file contents, direct-to-IP traffic
FirewallIP addresses, ports and (with inspection) applicationsControlling which traffic may leave and enter; forcing DNS through your resolverMalicious domains on shared hosting it allows
Proxy or secure web gatewayFull URLs and, with HTTPS inspection, contentPage-level policy, file scanning, data loss preventionNon-web traffic; devices not sending traffic through it
Endpoint protection and EDRProcesses, files and behaviour on the deviceStopping and investigating malware that runsThreats on devices without an agent

In practice the DNS layer removes a large share of obvious threats cheaply, so the heavier controls behind it deal with less. Our page on DNS filtering vs URL filtering explains when the extra proxy layer is worth adding.

The limits of DNS-layer security

  • It sees domains, not pages. A malicious file on a trusted domain resolves like everything else.
  • It cannot inspect content. Nothing is downloaded or scanned at the DNS layer.
  • Direct-to-IP traffic is invisible. Malware that connects straight to an IP address makes no lookup. Cisco's DNS-only Umbrella packages, for example, cannot see these connections.
  • Bypass is possible through browser DoH to another provider, hard-coded DNS servers or personal VPNs, unless firewall rules and device policy close those routes.
  • Threat lists are not instant. A brand-new malicious domain may not be categorised yet, which is why optional newly-registered-domain categories exist.

None of these is a reason to skip the DNS layer; they are reasons to pair it with the right controls and to test it properly.

Building up from the DNS layer

Many services let you start at the DNS layer and add depth only where you need it. Cisco's model is a good worked example:

  1. DNS layer: Umbrella DNS Security Essentials, or its migration product Secure Access DNS Defense Essentials, blocks threats and content categories at lookup.
  2. Selective proxy: Umbrella DNS Security Advantage sends traffic for risky domains to an intelligent proxy that can inspect URLs and files on just those domains. Cisco's DNS Defense data sheet also lists selective proxying and inspection; we confirm which DNS Defense package includes what against Cisco's current package guide when we quote.
  3. Full web gateway: the Umbrella SIG packages, whose migration product is Secure Internet Access in Cisco Secure Access, send web traffic through a cloud secure web gateway and firewall.

Our Cisco DNS-layer security page maps every Umbrella and DNS Defense package to this model. Outside Cisco, SASE platforms such as Check Point SASE Internet Access, Todyl and NordLayer combine DNS filtering with web controls, and products such as Webroot DNS Protection and ThreatDown DNS Filtering add the DNS layer to an endpoint agent you may already run. DNS security solutions compares them.

Where DNS-layer security fits best

DNS-layer protection suits almost any organisation, but it is especially useful in a few situations:

  • Small teams without a security operations function, who want a control that works in the background and needs relatively little day-to-day attention once tuned.
  • Multi-site organisations, where every branch can point at the same protective resolver without new hardware at each site.
  • Hybrid and remote workers, whose laptops spend more time on home broadband than on the office network, protected through a roaming client.
  • Schools, colleges and trusts, which need content filtering across shared and personal devices as well as security; see web filtering for schools.
  • Guest and public Wi-Fi, where you cannot install anything on the devices that connect.
  • Devices that cannot run an agent, such as printers, screens, cameras and other connected equipment, which still use your resolver.

It is less suited to being the only web control where you need page-level policy, file scanning or data loss prevention on web traffic. In that case DNS is the first layer, and a secure web gateway or SASE platform does the rest.

Getting DNS-layer security in place

For most organisations the first steps are the same: point every network and internal DNS server at a protective resolver, keep internal names resolving locally, block outbound DNS that does not go through your resolver, control browser DoH, and put a roaming client on devices that leave the office. Our DNS security best practices checklist covers each step.

We can review how DNS flows in your organisation today and recommend the DNS-layer option that fits what you already run. Contact us for advice or a quote.

How Forever Systems helps with DNS security

We are an independent UK IT and cyber security provider and a Cisco Partner. We supply Cisco Umbrella and Cisco Secure Access DNS Defense, and a range of other DNS filtering options, so we can recommend what fits rather than one answer for everyone.

  • Start with what you have: we look at your firewall, endpoint protection and Microsoft 365 licences first, as some already include DNS or web filtering
  • Choosing a service: Cisco DNS-layer security, DNS filtering bundled with endpoint protection, or a protective DNS service from the public sector, compared in plain English
  • Set-up and roll-out: network forwarding, roaming clients for laptops off site, policies, block pages and controls to stop encrypted DNS bypassing the filter
  • Migration help, including planning a move from Umbrella DNS packages to Cisco Secure Access DNS Defense
  • Ongoing help: policy changes, reporting reviews, licence management and renewals, agreed at quote

We work with businesses, schools, charities and public sector organisations.

Frequently asked questions

What layer is DNS in the OSI model?

DNS is an application-layer protocol, so it sits at layer 7 of the OSI model. In the TCP/IP model it is part of the application layer. It is carried by UDP or TCP at the transport layer.

Is DNS TCP or UDP?

Both. Classic DNS uses UDP port 53 for most queries and TCP port 53 for large responses and zone transfers. DNS over TLS uses TCP port 853, DNS over QUIC uses UDP port 853, and DNS over HTTPS uses port 443.

What is DNS-layer security?

DNS-layer security is protection applied when a device looks up a domain. A protective resolver checks the domain against threat intelligence and policy and refuses to resolve it if it is malicious or blocked, so the connection does not start.

Why block threats at the DNS layer?

Because it acts before any connection is made, covers every application and device that uses your resolver, needs no new hardware and gives early warning of infected devices through its logs.

What can DNS-layer security not see?

Full URLs and pages on allowed domains, file contents, connections made directly to IP addresses, and lookups that bypass your resolver through another DNS over HTTPS provider, hard-coded DNS or a VPN.

What port does DNS over HTTPS use?

DNS over HTTPS uses port 443, the same port as ordinary HTTPS web traffic. That is why it is harder to control with firewall rules than classic DNS on port 53 or DNS over TLS on port 853.

Still have a question about DNS-layer security?

Ask us and a member of our team will reply by email.

Contact us

Next step

Want help choosing or setting up DNS security?

Tell Forever Systems what you need and we will come back to you by email with options and next steps.

  1. 1
    Tell us what you needA few lines is enough: your organisation, users or sites, and timescales.
  2. 2
    We read it and reply by emailWith options and clear next steps.
  3. 3
    You decideChoose the option that suits you and we take it from there.

DNS Security UK is a website of Forever Systems, part of Forever Group. A Cisco Partner. We supply and support several DNS security platforms, so we recommend what fits.

Send a quick enquiry

We reply by email.

About: DNS-layer security

We only use these details to reply to your enquiry.

Talk to us about DNS-layer security

We reply by email.

We only use these details to reply to your enquiry.
Talk to us aboutDNS-layer security
Contact us