FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
When systemd-resolved Picks the Wrong DNS Server
How-ToWeb Development

When systemd-resolved Picks the Wrong DNS Server

via Dev.toNikita Vakula3h ago

In a previous post , I described how I built a DNS forwarder for qcontroller — a tool that manages QEMU VM instances. The forwarder watches the host's resolv.conf for changes and propagates upstream DNS servers to VMs transparently. It worked great — until I noticed that VMs occasionally failed to resolve private hostnames defined in the host's /etc/hosts . The Symptom The setup was straightforward. Inside each VM, DHCP advertised three DNS servers: the gateway IP (pointing to the forwarder) plus 8.8.8.8 and 1.1.1.1 as fallbacks. From the host, querying the forwarder directly worked fine: $ dig @192.168.71.1 myserver.internal.corp ; ; ANSWER SECTION: myserver.internal.corp. 0 IN A 10.0.50.42 But from inside a VM: $ dig myserver.internal.corp ; ; ->>HEADER <<- opcode : QUERY, status: NXDOMAIN ; ; SERVER: 127.0.0.53#53(127.0.0.53) (UDP) NXDOMAIN . The VM's systemd-resolved returned a negative answer — even though the forwarder had the correct one. What was going on? systemd-resolved Trea

Continue reading on Dev.to

Opens in a new tab

Read Full Article
2 views

Related Articles

How to Use Claude Code for Free — No Subscription, No Tricks
How-To

How to Use Claude Code for Free — No Subscription, No Tricks

Medium Programming • 7h ago

Nobody Warned Me About This Part of Being a Junior Developer
How-To

Nobody Warned Me About This Part of Being a Junior Developer

Medium Programming • 8h ago

Talent gets the spotlight.
Discipline builds the legacy.
How-To

Talent gets the spotlight. Discipline builds the legacy.

Medium Programming • 9h ago

Coding in the Age of Co-Pilots: Why Developers Who Think Will Win
How-To

Coding in the Age of Co-Pilots: Why Developers Who Think Will Win

Medium Programming • 10h ago

Two more EVs for the trash heap: Volvo EX30 and Honda Prologue
How-To

Two more EVs for the trash heap: Volvo EX30 and Honda Prologue

The Verge • 11h ago

Discover More Articles