I have Installed CentOS5.
My PC has 2 Etheernet Port. I have connected UTP cable in only one Ethernet port and the network configuration as as below and connected with the my ISP.
IP Address :221.243.63.179/29.
Primary DNS- 61.122.127.74
Secondary DNS- 61.122.116.174
Gateway-221.243.63.177
I want to configure my Server as a Web server. I have only 1 Public IP available (221.243.63.179) But I want to host more then 100 websites in my webserver. So how I can configure 100 websites by this one Public IP address.?
My Second question is about my DNS sever
-------------------------------------------
During registration of my website I need to give the DNS address of my websites. As I understand If I give my own web server as a DNS server (Resolver) then I need to configure my sever as DNS sever. From this logic I try to configure My Server as DNS server.
Then I have changed My network Configuration as below
IP Address :221.243.63.179/29.
Primary DNS-221.243.63.179
Secondary DNS-
Gateway-221.243.63.177
Also I have changed following files
-------------------
File Name:ifcfg-eth0
-------------
# Intel Corporation 82562ET/EZ/GT/GZ - PRO/100 VE (LOM) Ethernet Controller
DEVICE=eth0
BOOTPROTO=static
BROADCAST=221.243.63.183
HWADDR=00:13:20:1C:6D:B1
IPADDR=221.243.63.179
IPV6INIT=yes
IPV6_AUTOCONF=yes
NETMASK=255.255.255.248
NETWORK=221.243.63.176
ONBOOT=yes
---------------------
Another file
File Name:hosts
---------------
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
221. 243.63.179 mytinybox.linux.com mytinybox
-----------------
Another file
File Name:resolv.conf
----------------
nameserver 221.243.63.179
search localhost
-------------------
Another File
named.conf
-----------------
and I have modified named.conf as following.
// Red Hat BIND Configuration Tool
//
// Default initial "Caching Only" name server configuration
//
server 221.243.63.179 {
};
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_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 and unprivileged
* port by default.
*/
// query-source address * port 53;
};
zone "lantipur.com." IN {
type master;
file "lantipur.com.db";
};
zone "shantipur.com." IN {
type master;
file "shantipur.com.db";
};
zone "0.0.0.IN-ADDR.ARPA." IN {
type master;
file "0.0.0.db";
};
zone "vantipur.com." IN {
type master;
file "vantipur.com.db";
};
zone "63.243.221.IN-ADDR.ARPA." IN {
type master;
file "221.243.63.db";
};
zone "mytinybox.linux.com." IN {
type master;
file "mytinybox.linux.com.db.signed";
};
zone "." IN {
type hint;
file "named.root";
};
include "/etc/rndc.key";
Another File
----------------
File Name: 221.243.63.db
$TTL 1H
@ SOA mytinybox.linux.com. root.mytinybox.linux.com. ( 8
3H
1H
1W
1H )
IN 1H NS mytinybox.linux.com.
NS mytinybox.linux.com.
179 PTR
www.shantipur.com.
179 PTR
www.lantipur.com.
Another File
--------------
File Name: lantipur.com.db
-----
$TTL 1H
@ SOA mytinybox.linux.com. root.mytinybox.linux.com. ( 3
3H
1H
1W
1H )
IN 1H A 221.243.63.179
NS mytinybox.linux.com.
IN 1H A 221.243.63.179
www IN 1H A 221.243.63.179
Another File
---------------------
File Name:shantipur.com.db
-----
$TTL 1H
@ SOA mytinybox.linux.com. root.mytinybox.linux.com. ( 3
3H
1H
1W
1H )
IN 1H A 221.243.63.179
NS mytinybox.linux.com.
IN 1H A 221.243.63.179
www IN 1H A 221.243.63.179
-----------------
Another File
------------
File Name:vantipur.com.db
-----
$TTL 1H
@ SOA mytinybox.linux.com. root.mytinybox.linux.com. ( 3
3H
1H
1W
1H )
IN 1H A 221.243.63.179
NS mytinybox.linux.com.
IN 1H A 221.243.63.179
www IN 1H A 221.243.63.179
----------------------
Another File
---------
File Name: 0.0.0.db
-----------------
$TTL 1H
@ SOA mytinybox.linux.com. root.mytinybox.linux.com. ( 2
3H
1H
1W
1H )
NS mytinybox.linux.com.
0 PTR
www.vantipur.com.
---------------------
After all this I can not access Internet in my PC. I lost Internet.
If some one please teach me where I am doing mistake.
Also teach me how I can succcessfully configure my web server and my DNS server.
My e-mail:
rajendapoudel@hotmail.com
Thanks