no dns entry created on new sites if zone already exists

anarcat - January 29, 2009 - 21:30
Project:Provision
Version:5.x-0.1-rc1
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:duplicate
Issue tags:dns
Description

The provision_dns module doesn't seem to hook into the site creation process at all. The action log says the module is loaded:

Loading provision_dns on request

... but no record is added to the zonefile (example.com in my case).

#1

anarcat - January 29, 2009 - 21:33

Note: the code has been commented out prior to commit. I'll try uncommenting everything.

#2

anarcat - January 29, 2009 - 21:52

Update: the dns entry gets added to the database, but not to the file, which is weird because when I add it through the UI, it works.

#3

anarcat - January 29, 2009 - 21:59
Title:no dns entry created on new sites» no dns entry created on new sites if zone already exists

I have been able to create a zone with the proper record *if* the zone doesn't already exist.

#4

anarcat - January 29, 2009 - 22:09
Priority:normal» minor

That's a bit weird, because this works on some zones.

This zone was created through the provision UI, and if I create a site in it, it doesn't work (ie. no A record is added).

$TTL 0
@        IN      SOA     example.com. anarcat.koumbit.org. (
                         2009012908 ; Serial
                         0 ; Refresh
                         0 ; Retry
                         0 ; Expire
                         0)             ; Negative Cache TTL

@        IN      NS              hostmaster.koumbit.net.
@        IN      NS              ns2.koumbit.net.
         IN      A              209.44.112.82
         IN      MX     0       mail.koumbit.org.
www      IN      A              209.44.112.82

This zone was created when adding the site test.example.com, and when I created test2.example.com, it worked:

$TTL 86400
@        IN      SOA     example2.com. dns.koumbit.net. (
                         2009012904 ; Serial
                         7200 ; Refresh
                         300 ; Retry
                         604800 ; Expire
                         86400)         ; Negative Cache TTL

.        IN      NS              hostmaster.koumbit.net
@        IN      NS              ns2.koumbit.net.
@        IN      A              209.44.112.82
test     IN      A              209.44.112.82
test2    IN      A              209.44.112.82

There are subtle differences in the zones that may explain the problem, but I'm not sure this is the cause...

At the very least, there should be a warning or error when writing to the file doesn't work.

#5

anarcat - October 2, 2009 - 21:03
Status:active» duplicate

This is not working at all anymore, see #366814: manage DNS records properly when creating/restoring/verifying/disabling/deleting sites.

#6

anarcat - October 2, 2009 - 21:05

tagging

 
 

Drupal is a registered trademark of Dries Buytaert.