I guess he wants to access his website by only typing : http://domain.com
In this case, your zone file can be :
$ORIGIN .
$TTL 3h
domain.com IN SOA ns1.domain.com. dnsadmin.domain.com. ( ; the second field is a email address, the first dot is to be replaced by @
2003080501 ; serial - often a date... with a serial, don't forget to modify it each time you modify the zone (emacs can take care of it automatically)
3h ; Refresh after 3 hours
1h ; Retry after 1 hour
1w ; Expire after 1 week
1h ) ; Negative caching TTL of 1 hour
;
; Name Servers
;
IN NS ns1.domain.com. ; you don't have to specify your domain here
IN NS ns2.domain.com. ; because it's following your SOA record where it's specified
IN A xxx.xxx.xxx.242 ; address of the web server : http://domain.com/
; to avoid .domain.com. on every line
$ORIGIN domain.com.
;
; Addresses for the canonical names
;
localhost IN A 127.0.0.1
ns1 IN A XXX.XXX.XXX.242 <-- real numbers in my file
ns2 IN A XXX.XXX.XXX.32 <-- real numbers in my file
;
; Aliases
;
www IN CNAME ns1.domain.com.
Main Topics
Browse All Topics





by: S0larPosted on 2003-08-05 at 01:41:00ID: 9078394
in zone file after the string
*.domain.com. IN CNAME ns1.domain.com.
add
domain.com. IN CNAME ns1.domain.com
-------
NOTE : you didn't add the IN record for domain.com in your zone file.
*.domain.com. means [everythin].domain.com, but not domain.com.