hehe, I up-voted the previous answer before doing some fettling myself.
Right, so, if you edit your named.conf
and add the following:
zone "newdomain.com" {
type forward;
forward only;
forwarders { 22.22.22.22; };
};
now you won't be able to do reverse lookups easily, you'll have to modify the following zone statement to make sense for the IP address(s) of the domain (this was originally a reverse for 192.168.80.0/24).
zone "80.168.192.in-addr.arpa" {
type forward;
forward only;
forwarders { 22.22.22.22; };
};
After making the changes, you should
Check that you havn't faffed up the config files:
named-checkconf
Tell bind to reload its config:
rndc reload
(much prefered to /etc/init.d/bind reload
)
Bear in mind this will return non-authorative answers for the domain. The way around this (and to offer better local caching should the remote DNS be problematic) would be to act as a slave for the zone.
edited to add the forward only;
statement. this will cause the query to fail after trying the server(s) specified in forwarders, rather than failing and then trying a standard lookup. Also edited to change /etc/init.d/bind reload to rndc reload
after advice in comments.