Domain Name System[DNS]:
Definition:
It is a service and it translate to human readable domain name to ip and vice versa.
DNS server name contain webserver name & IP.
home ____ ISP ____ DNS _____ webserver
Virtual Hosting:
one IP contains more than one names. Its called website.
Example:
linux.com[website],IP 192.168.0.65
-it will register to DNS.
SERVER CONFIGURATION FILE SYSTEM:
#/var/named/chroot/etc
#vi named.conf
zone "linux.com In {
type master;
file "nita.zone"
}
To create DB file name:[linux.zone]
cd /var/named/chroot/var/named
cp localdomain.zone linux.zone
vi linux.zone
localhost root {
system4
IN ANS [localhost] system4
linux.com IN A 192.168.0.65 [web server name]
}
CLIENT CONFIGURATION:
Then Next Step:
vi /etc/hosts
192.168.0.0/16
vi /etc/resolv.conf
nameserver 192.168.0.4 assign DNS address
dig linux.com
vi /etc//httpd/conf/httpd.conf
go for last line.
Document Root /var/www/html
ServerName system4
Virtual Host:
More then one web server to be formed. It's called virtual host.
Note:
Package Name:
Server side:named
Client side: httpd
|