Skip to content

Instantly share code, notes, and snippets.

View achalkov's full-sized avatar

Artem Chalkov achalkov

  • Moscow, Russia
View GitHub Profile

Configure systemd-resolved to use a specific DNS nameserver for a given domain

Use case

Given

  • I use a VPN to connect to my work network
  • I'm on a Linux computer that uses systemd-resolved
  • I have a work domain called example.com
  • example.com is hosted by both public and private DNS nameservers