Info

Páginas: 13 (3034 palabras) Publicado: 8 de noviembre de 2012
How to configure DNS service?
 Updated 23 Sep 2012, 3:50 PM GMT
Rate
-------------------------------------------------
Principio del formulario

Cancel rating
Give it 1/5
Give it 2/5
Give it 3/5
Give it 4/5
Give it 5/5
Average: 5 (1 vote)
Final del formulario
Email Notifications
* Enable email notifications for this document
Issue
* How to configure DNS service?
*How to configure DNS server to provide different query results based on different clients (internal and external)?
Environment
* Red Hat Enterprise Linux 6
* Red Hat Enterprise Linux 5
Resolution
Index
* How to configure a simple DNS server
* How to configure multi-view DNS
* How to configure DNS server with slave server
* How to secure DNS translation inmaster/slave DNS environment
* How to configure Dynamic DNS(DDNS) and using DHCP service to update DNS information
How to configure a simple DNS server ?
1 Install the DNS server packages
On Red Hat Enterprise Linux 5,
-------------------------------------------------
# yum install bind bind-chroot caching-nameserver
On Red Hat Enterprise Linux 6-------------------------------------------------
# yum install bind bind-chroot
2 Edit the configure file
Go to the configure directory, and you can see some files and one end of conf and one end of zones.
For RHEL 5, the configuration files have been placed there.
-------------------------------------------------
# cd /var/named/chroot/etc/-------------------------------------------------
# ls
-------------------------------------------------
localtime named.caching-nameserver.conf named.rfc1912.zones rndc.key
For RHEL 6, you need copy the sample files to the specific directory.
-------------------------------------------------
# cd /var/named/chroot/etc/-------------------------------------------------
# cp /usr/share/doc/bind-9.7.3/sample/etc/* .
Modify named.caching-nameserver.conf with the content below: (On RHEL 6, please modify the named.conf, all the configuration options are the same)
-------------------------------------------------
options {
-------------------------------------------------
listen-on port53 { 127.0.0.1; any; };
-------------------------------------------------
listen-on-v6 port 53 { ::1; };
-------------------------------------------------
directory "/var/named";
-------------------------------------------------
dump-file "/var/named/data/cache_dump.db";-------------------------------------------------
statistics-file "/var/named/data/named_stats.txt";
-------------------------------------------------
memstatistics-file "/var/named/data/named_mem_stats.txt";
-------------------------------------------------
allow-query { localhost; any; };
-------------------------------------------------allow-query-cache { localhost; any; };
-------------------------------------------------
};
-------------------------------------------------

-------------------------------------------------
logging {
-------------------------------------------------
channel default_debug {-------------------------------------------------
file "data/named.run";
-------------------------------------------------
severity dynamic;
-------------------------------------------------
};
-------------------------------------------------
};
-------------------------------------------------...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Info
  • Info
  • Info
  • INFO
  • Info
  • info
  • info
  • info

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS