Oracle Linux: Difference between revisions
Line 110: | Line 110: | ||
managed-keys-directory "/var/named/dynamic"; | managed-keys-directory "/var/named/dynamic"; | ||
}; | }; | ||
</pre> | |||
* Lisa faili named.conf lõppus enda teenindatavad domeeni tsoonid | |||
<pre> | |||
vi /etc/named.conf | |||
</pre> | |||
Teenindatavad domeeni tsoonid | |||
<pre> | |||
zone "students.ee" IN { | |||
type master; | |||
file "/var/named/students.ee"; | |||
}; | |||
zone "56.168.192.in-addr.arpa." IN { | |||
type master; | |||
file "/var/named/56.168.192.in-addr.arpa"; | |||
}; | |||
</pre> | </pre> | ||
Revision as of 03:01, 11 January 2013
Autorid
- Dmitri Keler
- Jevgeni Pogodin
Oracle Linux paigaldamine
Virtuaalmasina valmistamine
- RAM 512MB
- HDD 12GB Dynamic
- 2 Võrgukaarti
- eth0 - NAT (lubab Interneti pääseda)
- eth1 - Host only (ühendamine teise virtuaalmasinaga)
Installeerimine
Juhendis kasutatakse Oracle Linux Server 6.3. Allalaadimise link on siin: http://www.oracle.com/technetwork/server-storage/vm/downloads/index.html (seal on vaja registreerida)
Installerimine käigus:
1. Buutides isolt vali "Install an existing system"
2. Aknas "testing the media" , vajutage skip
3. Vali keel ja klaviatuuri layout
4. Vali time zone
5. Sisesta root kasutaja parooli
6. Partitsiooni muutmine
7. Peale partitsiooni muutmine, automaatselt tuleb package installimine
8. Installerimine lõpeb, süsteemi reboot
Võrgukaartide seadistamine
On vaja muuda 2 faili:
1. /etc/sysconfig/network-scripts/ifcfg-eth0 - NAT
2. /etc/sysconfig/network-scripts/ifcfg-eth1 - Host Only
eth0 konfigureerimine:
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0" BOOTPROTO="dhcp" HWADD="08:00:27:9E:F4:FC" NM_CONTROLLED="yes" ONBOOT="yes" TYPE="Ethernet" UUID="441d9faa-078f-405d-9f30-45849ca8c8f4"
eth1 konfigureerimine:
vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE="eth1" BOOTPROTO="static" HWADDR="08:00:27:22:BB:1D" NM_CONTROLLED="yes" ONBOOT="yes" IPADDR=192.168.56.205 NETMASK=255.255.255.0 TYPE="Ethernet" UUID="f477120f-5ebf-46c3-90db-fa58d05ab02c"
Lõpuks tuleb võrgu restarti teha:
service network restart
DNS (bind9)
Paigaldamine
Paigaldatakse DNS serveri käsuga
yum install bind
Konfigureerimine
- Muuda 'options' osa named.conf failis
vi /etc/named.conf
Muuda seal read listen-on port 53, sisesta 'any'; allow-query, sisesta 'any'; lisa rea allow-query-cache { any; }
options { listen-on port 53 { 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 { any; }; allow-query-cache { any; }; dnssec-enable yes; dnssec-validation yes; dnssec-lookaside auto; /* Path to ISC DLV key */ bindkeys-file "/etc/named.iscdlv.key"; managed-keys-directory "/var/named/dynamic"; };
- Lisa faili named.conf lõppus enda teenindatavad domeeni tsoonid
vi /etc/named.conf
Teenindatavad domeeni tsoonid
zone "students.ee" IN { type master; file "/var/named/students.ee"; }; zone "56.168.192.in-addr.arpa." IN { type master; file "/var/named/56.168.192.in-addr.arpa"; };