Sunday, December 31, 2006

Linux : Fedora Core 5 as a server

now we meet again,.,,

here i will guide you trough to the easy step making your own server,,,, here we go...
I make this in a part...
===========================================================
All configuration here use mc and running on Fedora Core 5

##########################################################

enter console and type mc

##########################################################

dhcpd.conf

============================

ddns-update-style none;

subnet 192.168.0.0 netmask 255.255.255 {
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;

option domain-name "clownx.net";
option domain-name-server 192.168.0.1;
option netbios-name-server 192.168.0.1;
option nis-domain "clownx.net";

range dynamic-bootp 192.168.0.2 192.168.0.10;
default-lease-time 21600;
max-lease-time 43200;
}
=====================================
save with F10
and test with comman dhcpd chk
then start with service dhcpd restart
=====================================

Named.conf
===============================================
add new zone by entering string like this one :
===============================================
zone "clownx.net" IN {
type master;
file "rs.db";
};

zone "0.168.192" IN {
type master;
file "rv.db";
};
==========================================================
Under /var/named/chroot/var/named, make file rs.db & rv.db
==========================================================
touch rs.db
and then edit that file :

$TTL 86400;
@ IN SOA @ root.clownx.net.(
1 ; serial
3H ; refresh
15M ; retry
1W ; expiry
1D ); minimum cache ttl

IN NS ns.clownx.net.
IN MX 1 mx.clownx.net.

@ IN A 192.168.0.1
pop IN A 192.168.0.1
smtp IN A 192.168.0.1
www IN A 192.168.0.1
ftp IN A 192.168.0.1
mx IN A 192.168.0.1
mail IN CNAME mx.clownx.net.
=============
save with F10
=============
============================
make file rv.db
touch rv.db
and then edit that file :
============================
$TTL 86400
@ IN SOA @ root.clownx.net.(
1 ; serial
3H ; refresh
15M ; retry
1W ; expiry
1D ); minimum cache ttl

IN NS clownx.net.
IN MX 1 mail.clownx.net.
1 IN PTR ww.clownx.net.
================================
save with F10
start with service named restart
================================