Eliminating the "www" Portion of a URL
Richard Barnes -Listserv
rbarnes-list at blazenet.net
Mon Mar 20 15:45:25 UTC 2000
I've attached one of my zone files that allow you to resolve a domain name
to an IP address without adding a leading host name such as www.....
The trick is that the very first A record needs to be blank.
If you have any questions, let me know....
-----Original Message-----
From: Paul Scott <pscott at edencomputers.com>
To: 'Cricket Liu' <cricket at acmebw.com>; bind-users at isc.org
<bind-users at isc.org>
Date: Monday, March 20, 2000 3:19 AM
Subject: RE: Eliminating the "www" Portion of a URL
>Cricket,
>
>I still have been unable to figure this out.
>Perhaps you could give me a few more clues?
>
>Paul Scott
>Eden Computers
>1700 E. Garry Avenue, Suite # 231
>Santa Ana, CA 92705
>(949) 863-1432
>(949) 863-1435 (fax)
>pscott at edencomputers.com <mailto:pscott at edencomputers.com>
>http://www.edencomputers.com
>
>
>
>
>> -----Original Message-----
>> From: bind-users-bounce at isc.org [mailto:bind-users-bounce at isc.org]On
>> Behalf Of Cricket Liu
>> Sent: Sunday, March 12, 2000 10:21 PM
>> To: bind-users at isc.org
>> Subject: Re: Eliminating the "www" Portion of a URL
>>
>>
>> > How can I setup my zone records for each of the domains
>> that I host so
>> that
>> > the "www" portion of an address does not need to be entered
>> when browsing
>> to
>> > a site's URL? I have tried and tried to get this functionality, but
>> cannot
>> > seem to figure it out. It seems that it would be as simple as the
>> > following:
>> >
>> > domain.com. IN A 216.132.25.7
>>
>> Yes.
>>
>> > www IN A 216.132.15.11
>> > domain.com IN CNAME www
>>
>> No. You can't add a CNAME record for domain.com because it
>> almost certainly already has an SOA record and at least two NS
>> records.
>>
>> > But this does not work, since the www address is an NT
>> server running IIS
>> > and domain.com. is already pointing to 216.132.25.7 (the primary DNS
>> > server).
>>
>> Then you have to ask yourself why domain.com is pointing to that
>> address, and whether it's more important to allow your visitors to
>> omit the "www" in your URL.
>>
>> cricket
>>
>> Acme Byte & Wire
>> cricket at acmebw.com
>> www.acmebw.com
>>
>> Attend the next Internet Software Consortium/Acme Byte & Wire
>> DNS and BIND class! See www.acmebw.com/training.htm for
>> the schedule and to register for upcoming classes.
>>
>>
>
>
>
-- Attached file included as plaintext by Listar --
-- File: bjanes.com.db.txt
;
; Data file of hostnames in this zone.
;
@ IN SOA polaris.BlazeNet.net. postmaster.BlazeNet.net. (
2 ; Serial
10800 ; Refresh - 3 hours
3600 ; Retry - 1 hour
604800 ; Expire - 1 week
86400 ) ; Minimum TTL - 1 day
;
; Name Servers
;
IN NS polaris.BlazeNet.net.
IN NS sirius.BlazeNet.net.
;
; Mail (MX) exchange records
;
; if they have own mail server, remove the smtp.blazenet.net entry
bjanes.com. IN MX 10 pop.blazenet.net.
bjanes.com. IN MX 15 smtp.blazenet.net.
bjanes.com. IN MX 20 polaris.BlazeNet.net.
bjanes.com. IN MX 30 sirius.BlazeNet.net.
;
; Aliases
;
IN A 24.104.48.243
www IN A 24.104.48.243
;
; Addresses for the canonical names
; %HOSTS_END%
More information about the bind-users
mailing list