[thelist] configuring a subdomain

Anthony Baratta Anthony at Baratta.com
Thu Aug 29 19:31:01 CDT 2002


At 04:47 PM 8/29/2002, noah wrote:

>In order to get bind to accept multiple records pointing to the same IP
>address, I had to append "; EXTREF" after the IP address of the subdomain,
>like this:
>
>example.com. IN A 123.123.123.123
>subdomain IN A 123.123.123.123; EXTREF

Which version of BIND are you running?? EXTREF is for external references
so that the name can point to a non-local server.

Here a full copy of one of my DNS Templates (BIND v8):
[Yeah I should be using CNAMES but I don't host but a few things.]

; ***********************************************************************
; ***            Master DNS file for foo.com Sub-Domain               ***
; ***********************************************************************
;
; NOTE:  This file should only contain records for the foo.com
;        zone.  If this name server is primary for more than one zone
;        you must set up a separate master file for each zone.
;
;***********************************************************************
;
; The $ORIGIN is added to any domain name that does not end in a dot (".").
;
$ORIGIN foo.com.
;
; ***********************************************************************
;
; SOA record with recommended configuration values
;
$TTL 3600
@      IN  SOA  ns.foo.com. hostmaster.foo.com. (
         200208206   ; Serial Number (YYYYMMDDN)
         3600        ; Refresh - 1 hour
         1200        ; Retry - 20 minutes
         604800      ; Expire - 7 Days
         3600 )      ; Minimum - 1 Hour
;
;
; ***********************************************************************
;
; NS record for primary name server
;
@                       IN       NS             ns.foo.com.
;
; ***********************************************************************
;
; MX record
;
; Mail Server
@                       IN      MX      10      mail1.foo.com.
@                       IN      MX      20      mail2.foo.com.
; ***********************************************************************
;Main Domain
@                       IN      A               123.345.567.789
;Working Names
mail1                   IN      A               123.345.567.789
mail2                   IN      A               111.222.333.444
www                     IN      A               123.345.567.789
ns                      IN      A               123.345.567.789
ftp                     IN      A               123.345.567.789
; Sub Domains
Sub1                    IN      A               123.345.567.789
Sub2                    IN      A               123.345.567.789
Sub3                    IN      A               123.345.567.789
Sub4                    IN      A               123.345.567.789
Sub5                    IN      A               123.345.567.789
; Catch-All
*                       IN      A               209.142.3.31
--
Anthony Baratta
President
Keyboard Jockeys

"Conformity is the refuge of the unimaginative."




More information about the thelist mailing list