You are on page 1of 3

Red Hat Enterprise Linux AS 4.

7
Network Configuration 1. vi /etc/sysconfig/network-scripts/ifcfg-eth0 (add the flowing line, don't remove any existing line) BOOTPROTO=static IPADDR=10.0.2.59 NETMASK=255.255.255.0 2. vi /etc/sysconfig/network (add the flowing line) HOSTNAME=server.ankur.com # your hostname GATEWAY=10.0.2.100 # your detault gateway 3. vi /etc/resolv.conf (add the flowing line) nameserver 10.0.2.51 4. service network restart N.B. Now you can access or coneect to internet DNS Configuration Check necessary files a. rpm qa | grep bind bind-9.2.4* bind-libs-9.2.4* bind-chroot-9.2.4* bind-utils-9.2.4* ypbind-1.17.2* bind-devel-9.2.4* b. rpm qa | grep caching-nameserver caching-nameserver-7.3.3* 1. vi /etc/hosts (add the flowing line, don't remove any existing line) 10.0.2.59 server.ankur.com server # your machine ip # your netmask

2. cp /etc/named.conf /etc/named.conf.orgi #backup a orginal file. vi /etc/named.conf (add the flowing line, don't remove any existing line) zone "ankur.com" IN { type master; file "ankur.com.zone";

};

allow-update { none; };

zone "2.0.10.in-addr.arpa" IN { type master; file "ankur.com.local"; allow-update { none; }; }; 3. 4. 5. 6. cd cp cp vi /var/named/chroot/var/named/ localhost.zone ankur.com.zone named.local ankur.com.local ankur.com.zone server.ankur.com. 42 3H 15M 1w 1D ) @ server.ankur.com. 127.0.0.1 10.0.2.59 server root@ankur.com ( ;serial (d. adams) ; refresh ; retry ; expiry ; minimum

$TTL 86400 @ IN SOA

server IN A www IN CNAME

IN NS IN NS IN A

7. vi ankur.com.local $TTL @ 86400 IN SOA server.ankur.com. root.ankur.com. ( 1997022700 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum server.ankur.com. localhost. server.ankur.com.

1 59

IN IN IN

NS PTR PTR

8. service network restart 9. service named restart Test DNS 1. nslookup > set type=any > ankur.com here shows your dns server information 2. dig server.ankur.com here you found the flowing result. flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

If ANSWER: 0 then dns is not ok

HTTPD Configuration 1. cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.orgi (Change the flowing line) Listen 10.0.2.59:80 ServerAdmin root@ankur.com # Line No 133 # Line No 236

#NameVirtualHost 10.0.2.59:80 # Line No 1004 # Send Mail configuration Cd /etc/mail Vi access vi local-host -names ankur.com vi /etc/mail/sendmail.mc dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl service sendmail restart /etc/init.d/sendmail restart mail -v arif@ankur.com . cat /var/spool/mail/arif # Line No 108

POP3 Enable Vi /etc/dovecot.conf protocols = imap imaps pop3 pop3s Service dovecot restart # Line No 15

You might also like