one machine two domians
RYAN vAN GINNEKEN
rmvg at shaw.ca
Thu May 20 06:18:28 UTC 2004
Have read and reread the DNS and BIND book for the last couple of days
and decided to rewrite my db files without abbreviation ma bey i will
abbreviate when i fully understand. Have gotten computerking.ca and
sculpturaldesign.ca domains to work fairly well however i cannot get the
shoemasters.computerking.ca to work externally it works fine internally
but i get
Server: v21.highcoup.ca
Address: 198.53.146.238
*** v21.highcoup.ca can't find shoemasters.computerking.ca: Non-existent
host/domain
when i look for it from a remote server
So here are some questions hopefully to get the
shoemasters.computerking.ca domain working.
Do i need to list the shoemasters.computerking.ca in the A records for
the internal network ie the db.192.168.0 file should not have too
because it is not internal right? That would also make one less file to
change if my ip changes. Probably i should just remove the commented
out line right??
;------------------------------------------------------------------------------
; ADDRESSES POINT TO CANONICAL NAME
;------------------------------------------------------------------------------
202.0.168.192.in-addr.arpa. IN PTR computerking.ca.
202.0.168.192.in-addr.arpa. IN PTR v22.computerking.ca.
202.0.168.192.in-addr.arpa. IN PTR ns1.computerking.ca.
202.0.168.192.in-addr.arpa. IN PTR
mail1.computerking.ca.
;68.144.231.38.in-addr.arpa. IN PTR
shoemasters.computerking.ca.
I have a IN PTR record for my db.68.146.233 file on computerking.ca
machine also i have a IN PTR record for computerking.ca on the
shoemasters machine
;------------------------------------------------------------------------------
; NAME SERVERS
;------------------------------------------------------------------------------
233.146.68.in-addr.arpa. IN NS ns1.computerking.ca.
233.146.68.in-addr.arpa. IN NS ns1.highcoup.ca.
233.146.68.in-addr.arpa. IN NS
ns1.shoemasters.computerking.
;------------------------------------------------------------------------------
; ADDRESSES POINT TO CANONICAL NAME
;------------------------------------------------------------------------------
221.233.146.68.in-addr.arpa. IN PTR computerking.ca.
221.233.146.68.in-addr.arpa. IN PTR sculpturaldesign.ca.
38.231.144.68.in-addr.arpa. IN PTR
shoemasters.computerking.ca.
; end of file
;==============================================================================
Have added a A record an a name sever entry for the
shoemasters.computerking.ca domain on computerking.ca machine however
kinda confused about the NS record for shoemasters.computerking.ca is
this correct??
;------------------------------------------------------------------------------
; NAME SERVERS (the name @ is implied)
;------------------------------------------------------------------------------
computerking.ca. IN NS ns1.computerking.ca.
computerking.ca. IN NS ns1.highcoup.ca.
computerking.ca. IN NS
ns1.shoemasters.computerking.ca.
shoemasters.computerking.ca. IN NS
ns1.shoemasters.computerking.ca.
;------------------------------------------------------------------------------
; MAIL EXCHANGERS
;------------------------------------------------------------------------------
computerking.ca. IN MX 10 mail1.computerking.ca.
computerking.ca. IN MX 20 mail1.highcoup.ca.
computerking.ca. IN MX 30
mail1.shoemasters.computerking.ca.
;------------------------------------------------------------------------------
; ADDRESSES FOR THE CANOCICAL NAMES ( A records)
;------------------------------------------------------------------------------
computerking.ca. IN A 68.146.233.221
v22.computerking.ca. IN A 68.146.233.221
ns1.computerking.ca. IN A 68.146.233.221
mail1.computerking.ca. IN A 68.146.233.221
shoemasters.computerking.ca. IN A 68.144.231.38
have mostly the same stuff on the shoemasters.computerking.ca machine
here is the db.shoemasters.computerking.ca.external
; NAME SERVERS (the name @ is implied)
;------------------------------------------------------------------------------
shoemasters.computerking.ca. IN NS ns1.computerking.ca.
shoemasters.computerking.ca. IN NS
ns1.shoemasters.computerking.
shoemasters.computerking.ca. IN NS ns1.highcoup.ca.
computerking.ca. IN NS ns1.computerking.ca.
;------------------------------------------------------------------------------
; MAIL EXCHANGERS
;------------------------------------------------------------------------------
computerking.ca.shoemasters. IN MX 10
mail1.shoemasters.comp
computerking.ca.shoemasters. IN MX 20
mail1.computerking.ca.
computerking.ca.shoemasters. IN MX 30
mail1.highcoup.ca.
;------------------------------------------------------------------------------
; ADDRESSES FOR THE CANOCICAL NAMES ( A records)
;------------------------------------------------------------------------------
shoemasters.computerking.ca. IN A 68.144.231.38
v20.shoemasters.computerking.ca. IN A 68.144.231.38
ns1.shoemasters.computerking.ca. IN A 68.144.231.38
mail1.shoemasters.computerking.ca. IN A 68.144.231.38
computerking.ca. IN A 68.146.233.221
I swear the site worked for a like an hour and now it has stopped
working again. please help
Should i add another zone for shoemasters.computerking.ca I did not
think it was nessarsary because it is in the same domain right??
Ronan Flood wrote:
>RYAN vAN GINNEKEN <rmvg at shaw.ca> wrote:
>
>
>
>>Thanks again but i believe i already an A record for my computerking.ca
>>zone this is my db.computerking.ca.external file. Should not the first
>>line after ; ADDRESSES FOR THE CANONICAL NAMES ( A records) act the same
>>as computerking.ca. it is just a blank with no dot or am i confused
>>about origins and need the computerking.ca. line that you propose
>>
>>
>
>You are confused: a blank first field means use the previous first
>field, which in that case is "shoemasters", shoemasters.computerking.ca.
>
>For the same reason, your MX records are also attached to shoemasters
>rather than to computerking.ca.
>
>
>
>>shoemasters IN NS ns1.shoemasters.computerking.ca.
>>
>>;------------------------------------------------------------------------------
>>; MAIL EXCHANGERS
>>;------------------------------------------------------------------------------
>> IN MX 10 mail1.computerking.ca.
>>; IN MX 15 mail1.computerking.ca.
>> IN MX 20 mail1.highcoup.ca.
>>
>>;------------------------------------------------------------------------------
>>; ADDRESSES FOR THE CANONICAL NAMES ( A records)
>>;------------------------------------------------------------------------------
>>; IN A 68.146.233.221
>>
>>
>
>The above A record would set an address for shoemasters. If you want to
>go back to computerking.ca, use @ (zone base or value of previous $ORIGIN)
>as the first field, or reset $ORIGIN.
>
>
>
>
>>*>>>>>>>>>>>Would this work as a zone file for sculpturaldesign.ca* is
>>it ok to leave a blank for the A record or do i need to type
>>sculpturaldesign.ca. IN A 68.146.233.221
>>
>>
>
>Leaving a blank first field there is not OK.
>
>
>
>>I added the line and now it seems to display a web page but it not the
>>right one oh well i can fix that later
>>
>>;==============================================================================
>>; /usr/local/etc/namedb/pz/db.sculpturaldesign.ca.external
>>@v22.computerking.ca
>>;==============================================================================
>>$TTL 7200
>>;
>>; Origin added to the names not ending in a dot sculpturaldesign.ca
>>;
>>@ IN SOA sculpturaldesign.ca. root.sculpturaldesign.ca. (
>> 2004051402 ; serial
>> 10800 ; refresh after 3 hours(s)
>> 3600 ; retry after 1 hour(s)
>> 604800 ; expire after one week(s)
>> 3600 ) ; Negative caching TTL of 1 hour(s)
>>
>>;------------------------------------------------------------------------------
>>; NAME SERVERS (the name @ is implied)
>>;------------------------------------------------------------------------------
>> IN NS ns1.computerking.ca.
>> IN NS ns1.highcoup.ca.
>>shoemasters IN NS ns1.shoemasters.computerking.ca.
>>
>>;------------------------------------------------------------------------------
>>; MAIL EXCHANGERS
>>;------------------------------------------------------------------------------
>> IN MX 10 mail1.computerking.ca.
>>; IN MX 15 mail1.computerking.shoemasters.ca.
>> IN MX 20 mail1.highcoup.ca.
>>
>>;------------------------------------------------------------------------------
>>; ADDRESSES FOR THE CANONICAL NAMES ( A records)
>>;------------------------------------------------------------------------------
>>; IN A 68.146.233.221
>>
>>
>
>Same problem as above, the blank inital field means these MX/A records
>attach to shoemasters.
>
>
>
>>sculpturaldesign.ca. IN A 68.146.233.221
>>
>>
>
>That, or use one of the @/$ORIGIN methods.
>
>
>
>>;------------------------------------------------------------------------------
>>; ALIASES
>>;------------------------------------------------------------------------------
>>www IN CNAME v22
>>
>>
>
>That won't work: you don't have a v22 in this zone.
>
>
>
>>*>>>>>>>>>>>>This is the reference in my named.conf file
>>
>>
>
>
>
>> zone "233.146.68.in-addr.arpa" {
>> type master;
>> file "pz/db.68.146.233";
>> };
>>
>>
>
>That zone doesn't appear to have been delegated to you by shawcable.net.
>
>
>
>>*>>>>>>>>>>>>I added a PTR record for sculpturaldesign.ca like below *
>>*Do I need a PTR record for computerking.ca like the one commented out
>>below because all i have is the v22.computerking.ca record. *
>>
>>
>
>Might need it, might not; depends what's looking for it.
>
>
>
>>;==============================================================================
>>; /usr/local/etc/namedb/pz/db.205.206.102 @v22.computerking.ca
>>;==============================================================================
>>$TTL 7200
>>;
>>;Origin added to names not ending in a dot 102.206.205.68.in-addr.arpa
>>
>>
>
>You seem to have changed IP addresses at some point.
>
>
>
>>;
>>@ IN SOA computerking.ca. root.computerking.ca. (
>> 2004051503 ; serial
>> 10800 ; refresh after 3 hour
>> 3600 ; retry after 1 hour
>> 604800 ; expire ofter one week
>> 3600 ) ; Negative caching TTL of 1 hour
>>
>>;------------------------------------------------------------------------------
>>; NAME SERVERS
>>;------------------------------------------------------------------------------
>> IN NS ns1.computerking.ca.
>> IN NS ns1.highcoup.ca.
>>shoemasters IN NS ns1.shoemasters.computerking.ca.
>>
>>
>
>I don't think the shoemasters record should be in this zone file,
>as it means shoemasters.233.146.68.in-addr.arpa.
>
>
>
>>>>>>>>>>>>>>>>>I also removed the CNAME records for sculpturaldesign
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>since it is now its own zone is that why i get the same webpage for
>>computerking.ca and sculpturaldesign.ca now.
>>
>>
>
>You said you had Apache set up with virtual servers for computerking.ca
>and sculpturaldesign.computerking.ca (hence the CNAME). Looks like
>you need to config Apache to host sculpturaldesign.ca and presumably
>www.sculpturaldesign.ca too.
>
>
>
>>Ok everything seem to work great now however i have another question to
>>ask you i am setting up virtual email accounts for sculpturaldesign.ca
>>do i need an MX record for that domain. As for the website can i put a
>>
>>
>
>I would think so.
>
>
>
>>CNAME back for sculpturaldesign.ca so apache will know where to look or
>>is there another way now that sculpturaldesign has its own zone.
>>
>>
>
>You can't have a CNAME for sculpturaldesign.ca as you have NS and A
>records for it. Again, look at the Apache config.
>
>
>
More information about the bind-users
mailing list