resolving addresses

Chip Old fold at bcpl.net
Thu Jul 26 19:45:45 UTC 2001


On Thu, 26 Jul 2001, Torres Abarca Jaime wrote:

> Could someone tell how to resolve to an address like http://mydomain.com,
> without specify the www.

Here's a sample zone file:

;
; /var/named/db.mydomain.com
;
$TTL 6h	; Default TTL 6 hours
@  IN  SOA  ns1.mydomain.com.  admin.mydomain.com. (
			2001072600	; Serial Number
			6h	; Refresh after 6 hours
			1h	; Retry after 1 hour
			20d	; Expire after 20 days
			1h )	; Negative caching TTL 1 hour
;
; Name Servers
;
		IN	NS	ns1.mydomain.com.
		IN	NS	ns2.mydomain.com.
;
; Mail Exchangers
;
		IN	MX	10	smtp.mydomain.com.
		IN	MX	100	smtp.someother.com.

;
; Hosts
;
; Give the domain name (rather than a host) an Address record so
; the Web site can be reached without the traditional "WWW", for
; those who find "www"  just TOO difficult to type

		IN	A	123.456.789.123

;
; Aliases
;
; For those who find it perfectly reasonable to type the
; traditional "www", alias "www.mydomain.com" to "mydomain.com"

www		IN	CNAME	mydomain.com.

-- 
Chip Old (Francis E. Old)             E-Mail:  fold at bcpl.net
Manager, BCPL Network Services        Phone:   410-887-6180
Manager, BCPL.NET Internet Services   FAX:     410-887-2091
320 York Road
Towson, MD 21204  USA



More information about the bind-users mailing list