What configurations do I need to modify to make sure that on that particular host DNS resolution happens the way I've stated.
You can setup lightweight DNS forwarder such as unbound
where you can override any DNS records.
Using your example it would looks in unbound
config like:
local-zone: "foo.bar.name" redirect
local-data: "foo.bar.name A 1.1.1.1"
If you want to override external DNS you may use:
local-data: "www.google.com. 1800 IN A 172.16.34.12"
local-data: 'www.google.com. 7200 IN TXT "My own TXT record for text"'
local-data-ptr: "172.16.34.12 www.google.com"
When you finish setting it up, test it with dig @127.0.0.1 foo.bar.name a
If your new resolver works Ok, then set it as a system wide by changing nameserver
line in the /etc/resolf.conf
to nameserver 127.0.0.1
P.S.
Some of debian base distros installs dnsmasq
as a DNS cacher. If you will use unbound
then turn off dnsmasq