[systemd-devel] resolved: use special nameservers for some domains

Lennart Poettering lennart at poettering.net
Wed May 11 19:04:30 UTC 2016


On Wed, 11.05.16 12:13, Felix Schwarz (felix.schwarz at oss.schwarz.eu) wrote:

> I'd like to know if resolved can redirect DNS queries for certain domains to
> different name servers?

Well, kinda. If you have multiple interfaces, and each interface has
one or more DNS servers attached, and each interface also has one or
more domains attached, then the DNS lookups within those domains will
be passed to the matching DNS servers. Thus, you have some pretty
powerful routing in place.

However, this all implies that there's an interface for each of these
DNS server "routes"... if you only have a single interface, and want
to route on that single interface to different DNS servers then, nope,
we don't support that currently. But I think it would be OK to add
this.

(You can hack around this for now, if you like, by adding a "dummy"
network interface a .netdev file with Type=dummy, and attaching the
DNS server/domain data to it.)

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list