bugZoneCheck - Bugs: bug #31169, Checking fails when the MX is the...

 
 

bug #31169: Checking fails when the MX is the domain itself and is not yet installed

Submitted by:  Stephane Bortzmeyer <bortzmeyer>
Submitted on:  Thu 30 Sep 2010 09:13:07 AM UTC  
 
Category: testsSeverity: Ordinary
Priority: 5 - NormalItem Group: Crash/Error
Status: FixedPrivacy: Public
Assigned to: NoneOpen/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 05 Oct 2010 09:11:33 AM UTC, comment #4:

3.0.3 shipped today with the fix

Stephane Bortzmeyer <bortzmeyer>
Project Administrator
Thu 30 Sep 2010 12:40:14 PM UTC, comment #3:

Committed in the public CVS repository (zc/framework.rb, 1.56) after successful testing by the user.

Stephane Bortzmeyer <bortzmeyer>
Project Administrator
Thu 30 Sep 2010 10:08:02 AM UTC, comment #2:

And the fact that subdomain_of? is strict is documented (dnsruby-1.47/rdoc/classes/Dnsruby/Name.html#M000210) so it is not really a bug of dnsruby.

Stephane Bortzmeyer <bortzmeyer>
Project Administrator
Thu 30 Sep 2010 09:59:53 AM UTC, comment #1:

The attached zonecheck-bug-31169.patch seems to solved the problem.

(file #21580)

Stephane Bortzmeyer <bortzmeyer>
Project Administrator
Thu 30 Sep 2010 09:13:07 AM UTC, original submission:

% dig +short @ns0.free.org MX testlolo.fr
10 testlolo.fr.

% zonecheck -n 'ns0.free.org;ns1.free.org' testlolo.fr
...
___________
,-------------.|
~~~~ | fatal || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
`-------------'
f> [TEST MX is not an alias]: domain doesn't exist: (CNAME testlolo.fr)
=> ns1.free.org/217.24.82.35

Zonecheck queries the local resolver and, since testlolo.fr is not yet delegated, it fails.

The code in zc/framework.rb does address this issue (see routine is_cname) but tests that the MX is a subdomain by calling dnsruby's subdomain_of? This dnsruby routine is strict:

irb(main):014:0> zone
=> #<Dnsruby::Name: toto.fr>
irb(main):015:0> tld
=> #<Dnsruby::Name: fr>
irb(main):016:0> zone.subdomain_of?(tld)
=> true
irb(main):017:0> tld.subdomain_of?(tld)
=> false

Possible solution: test if subdomain_of? OR equal.

(The bug has similarities with #13060 but is different.

Stephane Bortzmeyer <bortzmeyer>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bortzmeyer (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 05 Oct 2010 09:11:33 AM UTCbortzmeyerOpen/ClosedOpen=>Closed
    Thu 30 Sep 2010 12:40:14 PM UTCbortzmeyerStatusConfirmed=>Fixed
    Thu 30 Sep 2010 09:59:53 AM UTCbortzmeyerAttached File-=>Added zonecheck-bug-31169.patch, #21580

    Back to the top


    Powered by Savane 3.1-cleanup1