Apache2: Zone " " (Type Master )

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

-----Apache2

$ sudo apt-get install apache2 $ sudo nano /var/www/index. $ sudo /etc/init.d/apache2 restart

----DNS(bind9):

$ sudo apt-get install bind9 $ sudo nano /etc/bind/named.conf.local

zone "greivin.com" { type master; file "/etc/bind/zones/greivin.com.db"; };

$ sudo mkdir /etc/bind/zones $ sudo nano /etc/bind/zones/example.com.db

$TTL 1h greivin.com. IN .(

SOA

ns.greivin.com.

webadmin@greivin.com

2009010910 ;serial 3600 ;refresh 3600 ;retry 3600 ;expire 3600 ;minimum TTL

) greivin.com. IN NS ns.greivin.com.

@ IN A 10.10.200.2 www IN A 10.10.200.2 ns IN A 10.10.200.2

$ sudo nano /etc/resolv.conf # add the below line as the first nameserver entry nameserver 10.10.200.2 Search telenetcr.net

$ sudo /etc/init.d/bind9 restart

----Cambiar a direccin ip esttica:

$sudo nano /etc/network/interfaces

auto eth0 iface eth0 inet static address 10.10.200.2 netmask 255.255.255.0

network 10.10.200.0 broadcast 10.10.200.254 gateway 10.10.200.1

$sudo /etc/init.d/networking restart

-----DHCP(isc-dhcp-server):

$sudo apt-get install isc-dhcp-server $sudo nano /etc/default/isc-dhcp-server

#Defaults for dhcp initscript #sourced by /etc/init.d/dhcp #installed at /etc/default/isc-dhcp-server by the maintainer scripts # #This is a POSIX shell fragment # #On what interfaces should the DHCP server (dhcpd) serve DHCP requests? #Separate multiple interfaces with spaces, e.g. eth0 eth1?.

INTERFACES=eth0?

$sudo nano /etc/dhcp/dhcpd.conf

ddns-update-style none;

option subnet-mask 255.255.255.0; option broadcast-address 10.10.200.254; option routers 10.10.200.2; option domain-name "Greivin.com"; option domain-name-servers 10.10.200.2;

default-lease-time 600; max-lease-time 7200;

log-facility local7;

subnet 10.10.200.0 netmask 255.255.255.0 { range 10.10.200.162 10.10.200.192; }

$sudo service isc-dhcp-server restart

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy