Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • 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 BareMetal
    • All guides
    • Overview
    • Integrations with other Yandex Cloud services
      • Overview
      • Stock server configurations
      • Custom server configuration
      • On-request server configuration
      • Overview
      • Extend: Virtualization
      • Extend: Yandex Cloud Stackland
      • Extend: Managed Service for Kubernetes®
      • Overview
      • Public network
      • Private network
      • DHCP
      • DNS in a private network
      • MC-LAG
      • Restrictions in BareMetal networks
      • Overview
      • Images
      • Access management
      • Additional server settings
      • Management console
      • Monitoring metrics
    • Quotas and limits
  • Pricing policy
  • Release notes
  • FAQ

In this article:

  • DNS servers
  • Domain name
  • Applying the settings
  • Limitations
  • Use cases
  1. Concepts
  2. Network
  3. DNS in a private network

DNS in a private network

Written by
Yandex Cloud
Updated at October 30, 2026
View in Markdown
  • DNS servers
  • Domain name
  • Applying the settings
  • Limitations
  • Use cases

In a BareMetal private subnet with enabled DHCP, you can configure DNS servers and a domain name. These settings are provided via DHCP to the private network interfaces of all servers on the subnet that use DHCP. You can specify these settings when creating a subnet or edit them for an existing subnet.

DNS serversDNS servers

In the subnet settings, you can select an incoming Yandex Cloud DNS connection or specify the IPv4 address of your own DNS server. You can also configure several DNS servers and use both options together.

An incoming DNS connection allows resolving names from internal DNS zones available in the Virtual Private Cloud network the connection was created in. For example, you can access managed database cluster hosts from a BareMetal server by their FQDNs. You do not need to deploy a separate VM with a DNS forwarder for that.

To use an incoming DNS connection, configure network connectivity between the VRF of the private subnet and the cloud network using Yandex Cloud Interconnect and Cloud Router. Make sure the virtual router announces the prefix of the Virtual Private Cloud subnet the DNS connection IP address is in.

Your own DNS server can reside in a BareMetal network or your enterprise infrastructure. The specified IPv4 address must be reachable from the private subnet.

Domain nameDomain name

The domain name in the DHCP settings is the search domain the server’s operating system adds to short names when resolving DNS queries. For example, with example.internal as the domain name, app resolves as app.example.internal.

Specifying a domain name is optional. All selected DNS servers must support name resolution for this domain. Configuring a domain name in DHCP does not create a DNS zone or resource records: you need to configure them on your DNS servers.

Applying the settingsApplying the settings

DHCP option 6 provides the DNS server addresses, while options 15 and 119 provide the domain name. Once you save the settings, the DHCP server transmits them for five minutes to connected servers during their next address lease renewal.

The list of DNS servers thus provided overrides the previous DNS settings of the private interface rather than extends them. If the server uses custom DHCP or DNS processing rules, make sure the operating system can accept the new settings.

Note

The operating system may ignore the domain name provided via DHCP. For example, you may need to specify dhcp4-overrides.use-domains: true for an OS with Netplan. For more info on how to check and configure your operating system, see Verify that the settings apply.

LimitationsLimitations

  • DNS settings can only be provided to network interfaces that get their IP addresses via DHCP. For interfaces with static IP addressing, configure DNS manually in the OS.
  • You can specify a maximum of three DNS servers per private subnet, including your own servers and incoming DNS connections.
  • BareMetal sends the DHCP options but does not check whether the DNS servers are available. You need to configure routing between the BareMetal server and the DNS servers by yourself. Selecting an incoming DNS connection does not establish network connectivity with the cloud network.
  • You can only create one incoming DNS connection per Virtual Private Cloud network. The number of connections available through a virtual router depends on the number of cloud networks associated with that router. With that said, the limit of three DNS servers per private subnet still applies.
  • Several DNS servers on the list should resolve the same names. Incoming connections from different cloud networks may have access to different internal DNS zones. If one server returns NXDOMAIN (name not found), the client resolver may not query the next server. Therefore, do not use this list to distribute queries across different DNS zones.
  • You cannot delete an incoming DNS connection as long as it is in the settings of at least one BareMetal private subnet. Before deleting a connection, remove it from the DNS settings of all such subnets.

Use casesUse cases

  • Configuring DNS name resolution from a private Yandex BareMetal network

Useful linksUseful links

  • Configuring DNS in a private subnet
  • DHCP in a Yandex BareMetal network
  • Creating an inbound DNS connection

Was the article helpful?

Previous
DHCP
Next
MC-LAG
© 2026 Direct Cursus Technology L.L.C.