Results 1 to 4 of 4
Hi,
plan:
Server : Linux (centos)[ LAN10.0.0.254 255.0.0.0 (nic 1)][ (for internet 192.168.0.2) nic 2)]
Client(s): 15 xp 10.0.0.10 to 10.0.0.50
internet : 192.168.0.254
I am trying to make a ...
- 10-26-2010 #1Just Joined!
- Join Date
- Oct 2010
- Posts
- 2
How to Make Centos 5.5 to server
Hi,
plan:
Server : Linux (centos)[ LAN10.0.0.254 255.0.0.0 (nic 1)][ (for internet 192.168.0.2) nic 2)]
Client(s): 15 xp 10.0.0.10 to 10.0.0.50
internet : 192.168.0.254
I am trying to make a Centos 5.5 to
NIS server for authantication
DHCP server
DNS
SAMBA
my clients are xps
I have installed CentOS 5.5 Successfully, Now i tried to install dhcp
edited /etc/dhcpd.conf
subnet 10.0.0.0 netmask 255.0.0.0;
{
#default gateway
option routers 10.0.0.254 ;
option subnet-mask 255.0.0.0;
range 10.0.0.10 10.0.0.50;
default-lease-time 21600;
max-lease-time 43200;
}
did chkconfig dhcpd on
--it ON on 345
did service dhcpd start
-- failed
.................................................. ..............................
Pls help me out to config dhcp properly
which service i have to install first like dhcp, dns, nis, samba like that ?
pls suggest be the best way to configure this
Thanks in advance
REDH
- 10-26-2010 #2Linux Guru
- Join Date
- Oct 2007
- Location
- Tucson AZ
- Posts
- 1,939
I don't use CentOS but here is a link to a tutorial on installing:
The Perfect Server - CentOS 5.2 | HowtoForge - Linux Howtos and Tutorials
If that doesn't have all the information you need, google "centos perfect server" or just centos server.
- 10-29-2010 #3Just Joined!
- Join Date
- Oct 2010
- Posts
- 2
Hi
thanx yancek
i managed to sort out DHCP ...
now i am stuck with DNS it is chroot jail one.
i am getting
............/var/named/chroot/etc/named.conf...............
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/fnamed_stats.txt";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
//query-source address * port 53;
listen-on { 127.0.0.1; 192.168.1.1; };
allow-query { 127.0.0.1; 192.168.1.0/24; };
};
zone "." IN {
type hint;
file "named.named.root";
};
zone "wycdc.com" IN {
type master;
file "data/master-wycdc.com";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "data/reverse-192.168.1";
allow-update { none; };
};
---------------------------------------------------------------------------------------------------------------
vi /var/named/chroot/var/named/data/master-wycdc.com -----(no file was there so i made master-wycdc.com)
;
; Zone file for "wycdc.com" - Internal use Only
;
$TTL 1D
@ IN SOA wyc.wycdc.com. (
10 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
1D ) ; Minimum
;
IN NS wyc ; Name Server for the domain
;
wycdc.com. IN A 192.168.1.1 ;
wyc IN A 192.168.1.1 ;
--------------------------------------------------------------------------------------------------------------
vi /var/named/chroot/var/named/data/reverse-192.168.1
;
; Reverse File for network "192.168.1.0/24" - Internal ONLY
;
$TTL 1D
@ IN SOA wyc.wycdc.com. (
10 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
1D ) ; Minimum
;
IN NS wyc.wycdc.com.
1 IN PTR wyc.wycdc.com.
.................................................. .......................

when i start service named it give error
Error in named configuration:
dns_rdata_fromtext: data/master-wycdc.com:6: near '8H': not a valid number
zone wycdc.com/IN: loading master file data/master-wycdc.com: not a valid number
_default/wycdc.com/IN: not a valid number
dns_rdata_fromtext: data/reverse-192.168.1:6: near '8H': not a valid number
zone 1.168.192.in-addr.arpa/IN: loading master file data/reverse-192.168.1: not a valid number
_default/1.168.192.in-addr.arpa./IN: not a valid number
- 10-29-2010 #4Linux Guru
- Join Date
- Oct 2007
- Location
- Tucson AZ
- Posts
- 1,939
It doesn't seem to like the "8H"? Sorry, I can't help as my only experience with servers is on local machines and never set up DNS. Hopefully, someone with a little more knowledge will come along.


Reply With Quote