|
|
Virtual Domain: HowTO EXAMPLES
|
|
|
| Virtual Domains ( DNS ) Configuration |
- Files needed to setup the DNS files for Virtual Domains
|
- Programs to install the DNS records for Virtual Domains
- Same IP address for each Virtual Domain
- Configure the DNS as in db.Virt_1 above
- Caution:
Using the same IP address may prevent ftp.Virt_1.com from having it's own virtual FTP site
- Different IP address for each Virtual Domain requires a DummyDriver
- rc.local
Making the routes visible to the virtual domains
- insmod
Install the Dummy Driver Modules
- ifconfig
Configure the local ethernet interface
- route
Add the routing table
- arp
Reverse lookup
IP Masquerade
|
- Premliminary Testing Your DNS Records
ifconfig -nv Should list each DummyDriver for each Virtual Domain with uniq IPs
route -nv Should list each Virtual Domain with unique IPs
named -b /etc/named.boot Should load your new DNS records
dig ns.Virt_1.org Should list your DNS records
nslookup -type=any ns.Virt_1.org Should list your DNS records
ping -c 3 ns.Virt_1.org Should get 0% packet loss ( ie all data packets sent/received )
|
- Additional Documentation from various sources
|
|
| Virtual Email Configuration |
- Sendmail Configuration Files
|
- Smail Configuration Files
|
- Testing your Virtual Domain Emails
sendmail -v -bv user@Virt_1.com Should say deliverble
|
- Additional ( Virtual Domain ) Email Documentation
|
| Virtual Web Servers Configuration |
- Apache - Virtual Domain Web Server
|
- CERN - Virtual Web Server
|
- NCSA - Virtual Web Server
- NCSA
Source code
NCSA MultiHome/VirtualHost
|
- Additional Virtual Web Server Documentation
|
| Virtual FTP Server Configuration |
|
|
- Multi-Homed Virtual FTP Documentation
|
| Virtual Majordomo Configuration |
|
|
|
|
- Majordomo Programs/Scripts
See /etc/aliases for an example of selecting different majordomo.cf for Virtual Domains
- Resend
Resends incoming email to Distribution lists
- Archive2.pl
Archive incoming emails to archives
- digest
Digest the incoming emails
- new-list
AutoResponder for info@...
- Digest.send
Run digest from a cron
|
Web-based Majordomo Interface
|
|
| Testing your Virtual Domain Configuration |
- Check the access to the machines
Don't forget to reload named ( must be root )
ping -c3 ftp.Virtual_1.com
ping -c3 mail.Virtual_1.com
ping -c3 news.Virtual_1.com
ping -c3 www.Virtual_1.com
NOTE the "machine name" when you login...a limitation of technology as it is today :-(
telnet ftp.Virtual_1.com
telnet mail.Virtual_1.com
telnet news.Virtual_1.com
telnet www.Virtual_1.com
|
- Check the Email addresses
elm -s "Testing Webmaster email" webmaster@Virtual_1.com < /dev/null
elm -s "Testing postmaster email" postmaster@Virtual_1.com < /dev/null
elm -s "Testing email to a user" user@Virtual_1.com < /some/message
elm -s "Testing email for two Different people with same name" \
john@Virtual_1.com,john@Virtual_2.com < some_test_message
|
- Check the Virtual FTP address
ftp ftp.Virtual_1.com
ftp> Upload or download files
|
- Check for Info & Mailing lists
elm -s "Testing info request" info@Virtual_1.com < /dev/null
elm -s "Subscribe to their mailing list" majordomo@Virtual_1.com < \
`echo "subscribe mailing_list_name"`
elm -s "Send a message to the mail list" support@Virtual_1.com < "some email message"
|
- Check for Web Services
Check access to www.Virtual_1.com
Can you get your daily/hourly web statistics on-demand ( via email or web browser )
Can you run CGI scripts to process your web page forms
|
| Contact Info |
|
|