Skip to main content

Overview

DNS configuration in Xloud Networking controls which resolvers instances use for hostname resolution. Name servers are set at the subnet level and pushed to instances via DHCP at boot time. You can configure private internal resolvers, public fallback resolvers, or a combination — giving instances access to both internal service hostnames and public domain names.
Prerequisites

Configure DNS on a Subnet

Open the subnet for editing

Log in to the Xloud Dashboard (https://connect.<your-domain>) and navigate to Project → Network → Networks. Click the network name, open the Subnets tab, and click Edit Subnet on the target subnet.

Update DNS Name Servers

In the Subnet Details section, update the DNS Name Servers field. Enter one resolver per line.
Resolver TypeExampleUse Case
Internal resolver10.0.0.53Resolve private hostnames (e.g., db.internal)
Public fallback8.8.8.8Resolve public internet domains
Secondary public8.8.4.4Redundant public resolver
Place your internal resolver first. Instances try resolvers in the order they are listed — putting the internal resolver first speeds up private hostname lookups.

Save and verify

Click Save. Existing instances pick up the new resolvers on their next DHCP renewal.
New instances launched on this subnet receive the updated DNS resolvers automatically.

Apply DNS Changes to Running Instances

DNS resolvers are delivered via DHCP at instance boot. Running instances retain their current resolvers until their DHCP lease renews or you force a renewal.
Force DHCP renewal (systemd-networkd)
sudo networkctl renew eth0
Force DHCP renewal (NetworkManager)
sudo nmcli device reapply eth0
Force DHCP renewal (dhclient)
sudo dhclient -r eth0 && sudo dhclient eth0

Remove DNS Resolvers

Clear DNS name servers from subnet
openstack subnet set app-subnet --no-dns-nameservers
Removing all DNS resolvers means instances will have no resolvers after their next DHCP renewal. They will be unable to resolve any hostnames, including internal ones. Always configure at least one resolver.

DNS Reference

ResolverAddressNotes
Google Public DNS8.8.8.8, 8.8.4.4Low-latency, widely available
Cloudflare DNS1.1.1.1, 1.0.0.1Privacy-focused, fast
Internal (example)10.0.0.53Resolves private hostnames within your cluster
For deployments with a dedicated DNS service, Xloud Networking supports the optional DNS service (Xloud DNS) which provides zone management, record lifecycle, and floating IP-to-hostname associations. Contact your administrator to enable Xloud DNS.

Next Steps

Create and Manage Subnets

Manage all subnet settings including DHCP, allocation pools, and host routes

Network Troubleshooting

Diagnose DHCP and name resolution failures on your instances

Floating IP Addresses

Assign public IPs to instances with DNS-resolvable hostnames

Network Topologies

Design multi-tier topologies with DNS-aware subnets