$ vi command:
- yum install bind
$ touch /var/named/linux.is.better.zone$ touch /var/named/linux.is.better.rev$ touch /var/named/named.ca$ touch /etc/named.conf$ dig > /var/named/named.ca$ vi /var/named/linux.is.better.zone$ vi /var/named/linux.is.better.rev
$ vi /etc/named.conf
$ vi /etc/resolv.conf
$ /etc/init.d/iptables stop/etc/named.conf file:
$ vi /etc/named.conf
/var/run/named write permissions:
chmod g+w /var/run/namednamed on both the Router VM and Host VM:
$ named$ host ns.linux.is.better$ host ns2.linux.is.better$ host fw.linux.is.better$ host www.linux.is.better
$ host ns2.linux.is.better 10.0.0.1$ host ns2.linux.is.better 10.0.0.2
$ host ftp.linux.is.better 10.0.0.2
named run over reboot on both the Router VM and Host VM:
echo "named" >> /etc/rc.d/rc.local
linux.is.better
using telnet:
telnet linux.is.better 80
$ vi /etc/mail/sendmail$ service sendmail restart$ telnet mail.linux.is.better 25HELO money.is.mineMAIL FROM: <username>@cs.ucr.eduRCPT TO: root@linux.is.betterDATA<message>.QUIT
/var/mail/root:
$ tail -n 11 /var/mail/root
* A name that identifies a computer or computers on the Internet. These
names appear as a component of a Web site's URL, e.g. en.wikipedia.org.
This type of domain name is also called a hostname.
* The product that domain name registrars provide to their customers. These
names are often called registered domain names.
* Names used for other purposes in the Domain Name System (DNS), for
example the special name which follows the @ sign in an email address, or
the Top-level domain names like .com, or the names used by the Session
Initiation Protocol (VoIP), or DomainKeys.
* They are sometimes colloquially (and incorrectly) referred to by
marketers as "web addresses". "
(source: www.wikipedia.org)
$ host ns2.linux.is.better 10.0.0.1 $ host ns2.linux.is.better 10.0.0.2 $ host ftp.linux.is.better 10.0.0.2from the DNS installation section.
named is running on both ns and ns2 over
reboot.