adding sub-server subdomains to parent server zone

9 posts / 0 new
Last post
#1 Mon, 05/04/2009 - 03:58
naught101

adding sub-server subdomains to parent server zone

Hi, I just read this: http://www.virtualmin.com/index.php?option=com_flyspray&Itemid=82&do=det...

I have 3.68 installed, and I just tried it as described. I have domain.org, correctly set up, and I add blah.domain.org, as a sub-server of domain.org. Virtualmin creates a new blah.domain.org.hosts file in the bind masters directory. It would be better if it created a blah CNAME domain.org. record, (and perhaps www.blah CNAME), in the domain.org.hosts directory.

Apparently, this is what's supposed to happen, but it didn't. I'm wondering if it's something to do with having the template set up wrong: in Server templates>Defaults for Sub-servers>Bind DNS domain, the setting for "Add sub-domain DNS records to parent domain?:" is set to "Use default settings" and is greyed out, so I can't change it, and I can't figure out a way to make it not-greyed out. I assume the "default" it refers to is in the main default server template - this has the same option, and it is set to "No", and also greyed out, so I can't change it.

Any idea how I can get this working?

Mon, 05/04/2009 - 04:00
naught101

sorry for the double post :/

Mon, 05/04/2009 - 19:40 (Reply to #2)
naught101

Being root wasn't the problem.

The option is apparently only available if the "Add SPF DNS record?" is set to "Yes, with server's IP address". I wouldn't have guessed this, I just tried poking around. Would it be possible to either a) add a note about that in the docs for the "Add sub-domain DNS records to parent domain" option, or remove that requirement? (While it's nice for people to include SPF records, they probably shouldn't be FORCED to :))

Mon, 05/04/2009 - 19:58 (Reply to #3)
naught101

Ok, so I set SPF records on, and "add subdomains to parent zone" on for the master template, and left "use defaults" on for both options in the sub-server template.

I tried adding a domain "bindtest.argh"

Firstly, problem one: SPF record not created in master zone. no biggie, we usually just add it to out custom zone template anyway. (is the fact this is a custom zone template the problem?)

Problem two: added a sub domain, "sub.bindtest.argh", and got this message:
"Adding records to DNS zone bindtest.argh ..
.. done"

Sounds nice, but it didn't do anything. there is no new hosts file (good), but there also isn't any new CNAME or A records.

Where to from here?

Mon, 05/04/2009 - 20:22 (Reply to #4)
Joe
Joe's picture

Bug! File a ticket in the bug tracker. That's what it's for. ;-)

--

Check out the forum guidelines!

Tue, 05/05/2009 - 03:55 (Reply to #5)
naught101

Two bugs: one for each problem.. not sure how severe these are, and not sure if one is even a bug - might be by design...

http://www.virtualmin.com/index.php?option=com_flyspray&Itemid=82&am...
http://www.virtualmin.com/index.php?option=com_flyspray&Itemid=82&am...

Tue, 05/05/2009 - 15:31 (Reply to #6)
Joe
Joe's picture

Excellent. Good bug reporting skills. ;-)

And, I note that Jamie has fixed both problems in the next release (3.69 is probably about a week away).

--

Check out the forum guidelines!

Mon, 05/04/2009 - 04:14
Joe
Joe's picture

You do have to have that option ("Add sub-domain DNS records to parent domain?") set to yes. I'm not sure why it would be unavailable in the Default Server Template. Are you logged in as root?

--

Check out the forum guidelines!

Fri, 06/26/2009 - 21:11
Francewhoa
Francewhoa's picture

Same here. I posted a solution that worked for me at: https://www.virtualmin.com/node/9546

Search for the comment posted on June 26, 2009 and titled "Solution - Edit sub-server template".

- - -
Senior Product Manager, and Co-Founder at Ubertus.org Inc.
Love back your Virtualmin & Webmin community

Topic locked