# File common/lib/symbiosis/domain.rb, line 362
    def aliases
      results = []

      #
      # Add in our directory base name.
      #
      results << File.split(self.directory).last

      #
      # If our domain is real, see what symlinks are pointing at it.
      #
      if File.directory?(self.directory)  

        self_stat = File.stat(self.directory)

        #
        #  For each domain.
        #
        Dir.glob( File.join(self.prefix,"*") ) do |entry|
          #
          # Skip entry if it isn't a directory
          #
          next unless File.directory?(entry)

          #
          # Check the inodes.
          #
          target_stat = File.stat(entry)
          target_lstat = File.lstat(entry)

          #
          # Skip unless the target is a link (i.e. stat and lstat inodes differ)
          # and the stat inode matches our own stat inode.
          #
          next unless target_lstat.ino != target_stat.ino and target_stat.ino == self_stat.ino 

          #
          # Split
          #
          this_domain = File.split(entry).last

          #
          # Don't want dotfiles.
          #
          next if this_domain =~ /^\./ 
      
          #
          # And record.
          #
          results << this_domain
        end
      end

      #
      # Now run through the results, adding "www." to each if there is nothing el
      #
      results.each do |this_domain|
        next if this_domain =~ /^www\./

        #
        # Add on www.
        #
        this_domain = "www."+this_domain

        #
        # Skip if we've already found it.
        #
        next if results.include?(this_domain)

        #
        # Skip if we've not already found it, but it exists on the system.
        #
        next if File.exists?(File.join(self.prefix, this_domain))

        #
        # OK add it!
        #
        results << this_domain
      end

      results.delete(self.name)

      results.sort.uniq
    end