[X-Unix] FIXED, Re: IP Aliasing + DNS gives freaky hostname.

Stroller MacMonster at myrealbox.com
Thu Nov 4 14:40:27 PST 2004


On Nov 4, 2004, at 4:49 pm, Adrian Simmons wrote:
>
>> Perhaps you should make all the subdomains aliases (CNAME records) of 
>> the
>> actual domain.
> IFAIK Apache needs the A records, or it will just treat them all as 
> alias' to a single domain.

Are you talking about name-based virtual hosting..?

Stroller.



stroller at compaq stroller $ cat /var/bind/db.stroller.uk.eu.org
$TTL 3h
stroller.uk.eu.org. IN SOA compaq.stroller.uk.eu.org.  
stroller.bigfoot.com.  (
         7       ; Serial
         3h      ; Refresh
         1h      ; Retry
         1w      ; Expire
         1h)     ; Negative caching

; Name servers for domain
;
stroller.uk.eu.org.     IN NS compaq.stroller.uk.eu.org.
stroller.uk.eu.org.     IN NS ns.syroidmanor.com.
stroller.uk.eu.org.     IN NS ns1.granitecanyon.com.

; Addresses for canonical names
;
pornpipe.stroller.uk.eu.org.    IN A 213.152.39.89
silva.stroller.uk.eu.org.       IN A 213.152.39.91

stroller.uk.eu.org.             IN A 213.152.39.90

; Aliases
;
compaq.stroller.uk.eu.org.      IN CNAME stroller.uk.eu.org.
;
; In fact, any aliases pointing to the-compaq-in-the-airing-cupboard 
are made
; redundant by the following section, but we're gonna leave that in 
there to be
; explicit

; Try appending our domain to any failing searches
; - allows computers in the domain to address each other by short 
hostname ;
*.stroller.uk.eu.org.  IN CNAME stroller.uk.eu.org.; GLOBALOK

stroller at compaq stroller $ ls -d /var/www/*.stroller*
/var/www/bodyart.stroller.uk.eu.org  /var/www/mail.stroller.uk.eu.org
/var/www/compaq.stroller.uk.eu.org   
/var/www/oldstuff.stroller.uk.eu.org
/var/www/junk.stroller.uk.eu.org     /var/www/stuff.stroller.uk.eu.org
/var/www/linux.stroller.uk.eu.org    
/var/www/uploaded.stroller.uk.eu.org
/var/www/mac.stroller.uk.eu.org



More information about the X-Unix mailing list