You are on page 1of 5

/etc/bind/named.conf.local // Consider adding the 1918 zones here, if they are not used in your // organization //include "/etc/bind/zones.

rfc1918"; include "/etc/bind/rndc.key"; zone "agora.es"{ type master; file "/etc/bind/Agora1.es"; allow-transfer {192.168.195.126;}; allow-update {192.168.195.0/24; key "rndc-key";}; }; zone "195.168.192.in-addr.arpa" { type master; file "/etc/bind/db.dns4"; };

//

/etc/bind/Agora1.es $ORIGIN . $TTL 604800 ; 1 week agora.es IN SOA servidor.agora.es. root.servidor.agora.es. ( 8 ; serial 60 ; refresh (1 minute) 86400 ; retry (1 day) 2419200 ; expire (4 weeks) 604800 ; minimum (1 week) ) NS servidor.agora.es. $ORIGIN agora.es. aulas4 A 192.168.13.127 estacion1 A 192.168.195.127 otro A 192.168.13.127 otro A 192.168.195.127 s4 NS s4 A 192.168.195.126 servidor A 192.168.195.127 $TTL 1200 ; 20 minutes winxp A 192.168.195.20 $TTL 604800 ; 1 week www A 192.168.195.127 vvv A 192.168.13.127 ; Para hacer un servidor secundario S4 s4 IN A 192.168.46.126 s4 IN NS s4.agora.es.

/etc/bind/named.conf.local # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet static address 192.168.195.127 netmask 255.255.255.0 gateway 192.168.195.2 allow-hotplug eth1 iface eth1 inet static address 192.168.13.127 netmask 255.255.255.0

/etc/bind/Agora1.es ; ; BIND reverse data file for broadcast zone ; $TTL 604800 @ IN SOA servidor.agora.es. root.servidor.agora.es. ( 1 ; Serial 60 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS servidor.agora.es. servidor IN A 192.168.46.125 estacion1 IN A 192.168.46.119 s4 IN A 192.168.46.126 s4 IN NS s4.agora.es.

/etc/bind/rndc.key key "rndc-key" { algorithm hmac-md5; secret "1JWhGkZ0xYwHhNZuMRd83w=="; };

/etc/dhcp/dhcp.conf Include "/etc/dhcp/rndc.key"; ddns-domainname "agora.es."; ddns-updates on; zone agora.es. { primary localhost; key rndc-key; } ddns-update-style none; option domain-name "agora.es"; option domain-name-servers 192.168.195.127; default-lease-time 600; max-lease-time 7200; subnet 192.168.195.0 netmask 255.255.255.0 { range 192.168.195.20 192.168.195.30; option routers 192.168.195.2; # Lo Siguiente en caso de querer poner direcciones IP reservadas a algunas MACs. # option domain-name-servers 192.168.46.127; # host estacion1 { # hardware ethernet 00:0C:29:9B:87:49; # fixed-address 192.168.46.30; # update-static-leases on; # } }

/etc/apache2/000-default <VirtualHost 192.168.195.127:80 192.168.13.127:80> ServerAdmin webmaster@localhost ServerName www.agora.es ServerAlias vvv.agora.es DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> Alias /apuntes /var/apuntes

<Directory /var/apuntes> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all AuthType Basic AuthName "Zona Apuntes" AuthUserFile /etc/apache2/.passwd AuthGroupFile /etc/apache2/Alumnos Require group Alumnos </Directory> <Directory /var/www/datos/> Options Indexes FollowSymLinks MultiViews DirectoryIndex pagina.html AllowOverride None Order allow,deny allow from 192.168.46.30 </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> </VirtualHost> <VirtualHost 192.168.13.127:80> ServerName aulas4.agora.es DocumentRoot /var/aulas4 </VirtualHost>

<VirtualHost 192.168.13.127:8080> ServerName otro.agora.es DocumentRoot /var/otro2 <Directory /var/otro2> AuthType Basic AuthName "Zona privada" AuthUserFile /etc/apache2/.passwd Require user gato dani </Directory> </VirtualHost> <VirtualHost 192.168.195.127:80> ServerName otro.agora.es DocumentRoot /var/otro </VirtualHost>

/etc/apache2/ports.conf #NameVirtualHost *:80 NameVirtualHost 192.168.13.127:8080 NameVirtualHost 192.168.13.127:80 NameVirtualHost 192.168.195.127:80 Listen 80 Listen 8080

You might also like