In resolv.conf, I have list of nameservers. Is is somehow possible to make resolver use given dns server only for hosts for given domain?
I envision it like this (this is purely theoretical syntax, doesn't work anywhere as far as I know):
nameserver 192.168.0.1 nameserver 192.168.3.15 for example.com test.com
it would work like this: when I need ip for host "a.example.com" it would query 192.168.3.15, but for serverfault.com - it would query 192.168.0.1.
Kind of like routing table, but for dns requests.
Operating system is Linux - if that matters.