Forwarding DNS Server

options {
directory “/var/named”;
forwarders {172.16.10.1; 172.16.10.2;};
forward only;
};

I had to setup a forwarding DNS servers today and since I had never done it before I was looking for a quick way.

I installed the bind rpm package that comes with RHEL5 and was puzzled since it did not create the /etc/named.conf. So I created one with this content:

options {
directory “/var/named”;
forwarders {10.1.1.1; 10.1.1.2;};
forward only;
};

Changed the ownership to named:named and started the service.
Quite simple and in our lab it is a simple way to address an issue with routes to access a DNS Server.
Advertisements

Published by

m5c

Java developper that loves photography and good coffee

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s