Home > centOS, Fedora 12, Unix/Linux > centOS – How to BIND

centOS – How to BIND

What is BIND?

http://www.bind9.net/

BIND (Berkeley Internet Name Domain) is an implementation of the DNS protocols and provides an openly redistributable reference implementation of the major components of the Domain Name System, including:

  • Domain Name System server
  • Domain Name System resolver library
  • Tools for managing and verifying the proper operation of the DNS server


Why i use it?

shell> ping shamun.com  > 127.0.0.1

shell> ping mail.shamun.com > 192.168.1.2

How i use it?

/etc/named.conf

<statement-1> ["<statement-1-name>"] [<statement-1-class>] {
	<option-1>;
	<option-2>;
	<option-N>; };
	<statement-2> ["<statement-2-name>"] [<statement-2-class>] {
	<option-1>;
	<option-2>;
	<option-N>; };
	<statement-N> ["<statement-N-name>"] [<statement-N-class>] {
	<option-1>;
	<option-2>;
	<option-N>;
};


 acl black-hats {     
	10.0.2.0/24;     192.168.0.0/24;  };  
	acl red-hats {     10.0.1.0/24;  };  
options {     
	blackhole { black-hats; };     
	allow-query { red-hats; };     
	allow-recursion { red-hats; };  
} 

more: http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-bind-namedconf.html

Advertisements
Categories: centOS, Fedora 12, Unix/Linux Tags:
  1. No comments yet.
  1. No trackbacks yet.

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

%d bloggers like this: