Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.protocols.dns.bind > #78
| From | Kevin Darcy <kcd@chrysler.com> |
|---|---|
| Newsgroups | comp.protocols.dns.bind |
| Subject | Re: Subdomain Issue |
| Date | 2011-11-09 17:17 -0500 |
| Message-ID | <mailman.38.1320877131.68562.bind-users@lists.isc.org> (permalink) |
| References | <CACZSWMrZ-4MYk0ytX0eUOAQTFoRuv=viOBJbzNxAqZ+jNVH10Q@mail.gmail.com> <20111109094543.GA22541@fantomas.sk> <CACZSWMoFj7pvQ287YfhFG6OLOz0nA4OawvjeGdPONk_95_Rf-w@mail.gmail.com> |
[Multipart message — attachments visible in raw view] - view raw
On 11/9/2011 4:59 PM, trm asn wrote:
>
>
> On Wed, Nov 9, 2011 at 3:15 PM, Matus UHLAR - fantomas
> <uhlar@fantomas.sk <mailto:uhlar@fantomas.sk>> wrote:
>
> Now I have only one question:
>
>
> On 08.11.11 20:27, trm asn wrote:
>
> The moment I have done the "rndc reload example.com
> <http://example.com>", the domain and all
> subdomain were became not resolvable.
>
>
> what does the named's log say?
>
> --
>
>
> Is there any thing wrong if I declare my zone like this as below...
>
> $TTL 300
> @ IN SOA ns4.example.com <http://ns4.example.com/>.
> postmaster.example.com <http://postmaster.example.com/>. (
> 2011110806 ; Serial Number
> 10800 ; Refresh after 3 hours
> 3600 ; Retry after 1 hour
> 604800 ; Expire after 1 week
> 300 ) ; Minimum TTL of 1 day
> ; Name servers
> IN NS ns4.example.com <http://ns4.example.com/>.
> IN NS ns2.example.com <http://ns2.example.com/>.
> IN NS ns1.example.com <http://ns1.example.com/>.
> *test IN NS ns1973.hostgator.com <http://ns1973.hostgator.com/>.
> test IN NS ns1974.hostgator.com <http://ns1974.hostgator.com/>.*
> IN A 203.39.45.19
> IN MX mail.goole.com <http://mail.goole.com/>.
> www IN CNAME example.com <http://example.com/>.
> a IN A 203.39.45.20
> b IN A 203.39.45.21
>
Yeah, that's likely to be a problem. Those "test" lines have
(inadvertantly?) renamed an A record and your MX record from the name
"example.com" to the name "test.example.com", and then "hid" them under
the delegation for test.example.com (since all non-glue records are
served from the child zone, not the parent; those records would only be
visible on a zone transfer).
Hopefully you understand that in master-zone syntax, leading whitespace
"inherits" the last non-whitespace owner name. That's why those 2
records got implicitly renamed, since putting an owner name of "test"
above them caused them to inherit that name instead of "@". As a general
rule, you want to put all of your apex records at the top of the zone
file, and add new stuff at the end of the zone file, so as to completely
avoid such whitespace-inheritance "accidents".
- Kevin
Back to comp.protocols.dns.bind | Previous | Next | Find similar
Re: Subdomain Issue Kevin Darcy <kcd@chrysler.com> - 2011-11-09 17:17 -0500
csiph-web