Support-Consulting


AutomatedAdmin


uHowTo

BOOT-Howto


HA-Clusters

AutoFS-HOWTO

Majordomo

CJK-HOWTO


Printers

NTP.conf

PPP_Server

Search-HOWTOs



1U Rackmount Chassis

Custom-Chassis.com

Linux-1U.net

1U-ITX.net


ITX-Blades.net


Small PC cases

Mini-Box.net

Wrap-Box.net

Wrap-OS.net


Wan-Sim.net



Linux-Consulting.com

Linux-CAE.net

Linux-Sec.net

Linux-Boot.net

Linux-Backup.net

Linux-Wireless.org

Linux-Office.net

Linux-Video.net

Linux-VOIP.net

Linux-Jobs.net

Linux-Diff.net

1U-Raid5.net

Linux-Howto.net


Spam Reporting



Free Linux CDs

ISO9660.org

Distro-CD.org

Patch-CD.org



Linux-Distributions






















Contact



Linux is a registered trademark of
Linus Torvalds

More Linux Legalese

Virtual Domain: HowTO EXAMPLES
Virtual Domains ( DNS ) Configuration
  • 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 )
Virtual Email Configuration
  • Testing your Virtual Domain Emails
      sendmail -v -bv user@Virt_1.com Should say deliverble
Virtual Web Servers Configuration
  • CERN - Virtual Web Server
  • NCSA - Virtual Web Server
Virtual FTP Server Configuration
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
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

Copyright © 2000
Linux-Consulting
All Rights Reserved.
Updated: Sun Oct 16 20:08:14 2005 PDT