Hi,
redirection of subdomain is maybe easier to do with Apache htaccess than in Named/BIND.
Some examples of redirecting subdomain to domain:
-
subdomain to domain with htaccess
-
subdomain redirect
google search
but there must be Apache configured for subdomain (in Vhost).
otherwise in your "named.conf" should be something like:
Code:
$ORIGIN domain.com.
$TTL 1H
@ IN SOA ns.web-ne.com. onfi.web-ne.com. (
2011041801 ; Serial
7200 ; Refresh
3600 ; Retry
604800 ; Expire
1H ) ; TTL
; Name Server (NS) records.
IN NS ns.domain.com.
; Mail Exchange (MX) records.
; IN MX 10 mail.domain.com.
; IN MX 10 ASPMX.L.GOOGLE.COM.
; IN MX 20 ALT1.ASPMX.L.GOOGLE.COM.
; Address (A) records.
domain.com. IN A 11.22.13.143
ns IN A 11.22.13.143
;mail IN A 11.22.13.143
www IN A 11.22.13.143
; Aliases in Canonical Name (CNAME) records.
subdomain IN CNAME www
BEWARE: the zone file for domain CNAME should not contain any dots (.) as it will use the subdomain with
www.domain.com
good luck