Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Cloud DNS
  • Getting started
    • Overview
    • DNS zones
    • Resource records
    • DNS filters
    • DNS resolver
    • Integration with Compute Cloud
    • Quotas and limits
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • FAQ

In this article:

  • FQDN lists
  • How to use DNS filters
  • Centralized filter management
  1. Concepts
  2. DNS filters

DNS filters

Written by
Yandex Cloud
Updated at May 20, 2026
  • FQDN lists
  • How to use DNS filters
  • Centralized filter management

A DNS filter is a feature that enables you to control and filter outbound DNS queries from cloud resources using FQDN lists. You can use DNS filters on outbound DNS queries routed through the cloud DNS resolver.

This feature protects cloud resources from DNS-related threats, such as DNS tunneling, and blocks access to phishing websites, botnets, and malware domains. You can also apply DNS filters when deploying resources in isolated environments (submarine mode).

FQDN listsFQDN lists

DNS filters support the following list types:

  • Allowlist (whitelist): Contains FQDNs that will resolve successfully.
  • Blocklist (blacklist): Contains FQDNs that will not resolve.

When creating FQDN lists, follow these rules:

  • Each FQDN in the list must end with a dot (.).
  • You may specify a domain name or its subdomains. You can use the * wildcard as a mask to represent any value but only at the beginning of a mask, e.g., *.mydom.net..
  • The list does not support regular expressions.

Examples of FQDN lists:

  • mydom.net.
  • www.mydom1.net.,www.mydom2.net.
  • mydom1.net.,*.mydom2.edu.

How to use DNS filtersHow to use DNS filters

  1. By default, DNS filters are created in the current folder depending on the management interface in use. To place a filter elsewhere, specify the target folder in the folder-id attribute during filter creation. This is especially important for centralized filter management.

  2. You can apply DNS filters to the following cloud resources:

    • Cloud
    • Folder
    • Network
    • Subnet-level filtering is not supported.
  3. You can create multiple filters for a single resource type.

  4. When creating a filter, you can specify cloud resources to which it will apply.

  5. A single filter can contain both allowlists and blocklists. You can explicitly allow a specific FQDN even if its parent domain is in the blocklist. Also, you can apply different list types to different cloud resources, e.g., use a blocklist at the cloud level and an allowlist for a specific network located in one of the cloud's folders.

  6. If a single resource has multiple filters assigned to it:

    • All FQDNs from across allowlists of all filters are grouped into a single allowlist.
    • All FQDNs from across all blocklists are grouped into a single blocklist.
    • Domain resolution decisions are made based on these combined lists.
  7. FQDN priority in the lists depends on the domain level, e.g., google.com. takes precedence over *.com.. If the domain levels are equal, the allowlist take precedence over the blocklist.

Centralized filter managementCentralized filter management

To implement centralized DNS filter management, restrict filter creation to a single folder. You can still apply these filters to any of the supported resource types listed above.

To activate centralized DNS filter management, create your first cloud-level DNS filter and bind it to a specific folder. This binding prohibits creating filters in any other folder within that cloud.

With centralized management on, attempts to create a filter in an unauthorized folder will fail with this error:

ERROR: rpc error: code = InvalidArgument desc = Resource "b1g28..........q7f5"
is locked by the DNS Firewall "dnsa5...........fgdpi" and must be used 
in the same folder as it

Was the article helpful?

Previous
Resource records
Next
DNS resolver
© 2026 Direct Cursus Technology L.L.C.