Conditional DNS forwarding with named on Linux

I have a Centos 5.2 server which runs named for DNS resolution - it doesn't hold any information of its own, and just forwards all requests. From the named.conf:

options {
        forwarders {;; };

All other lines in named.conf are left as default.

I want to change the configuration so requests for anything under get passed to, while requests for any other address go to or

How can I configure the DNS on this server to do this?
Who is Participating?
      In /etc/named.conf file, you can have global attributes and domain specific attributes.

For domain specific attributes, use the following syntax.

zone "" {
type forward;
forwarders {; };

Then, use this as a global attribute.

options {
        forwarders {;; };

Please try this and give your feedback.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.