How to prevent creating records for,,,

19 posts / 0 new
Last post
#1 Fri, 10/29/2010 - 00:45

How to prevent creating records for,,,

I've edited my template in Virtualmin's Server Templates page and unchecked ftp.domain, localhost.domain and m.domain. Nevertheless, when I look in /var/named/name.tld.hosts the records for ftp, m, localhost and webmail are always there.

How can I prevent Virtualmin to create those records, because I don't use none of ftp, m, webmail on my server? As for localhost, I am not sure if it should be there or not, because it is pointed to Why do I need a record fro localhost.domain?

Any advise is appreciated.

P.S. My OS is CentOS 5. Maybe it is not Virtualmin, but CentOS is adding those additional records, but then why do we need Virtualmin's Server Template page if it does not control process of creation of apache records and if we have to edit host files manually anyway?

Fri, 10/29/2010 - 04:02

Did you create a new domain (or turn the DNS Domain feature off+on) after changing the template? Those settings are only applied when a new DNS zone is created, not to existing ones.

Normally turning them off works all okay. Those records area created by VMin and not by CentOS. The OS has no business whatsoever in terms of adding records to BIND zones. :)

About "localhost.domain", not sure myself what you'd need it for. I've never used it when manually configuring my Windows BINDs.

Fri, 10/29/2010 - 05:53

Locutus, thank you for noting that. Indeed I was changing files for already created domains. Newly created domains after making needed changes in the template are cleanly created.

Fri, 10/29/2010 - 05:56

You're welcome, glad that it works. :)

Fri, 10/29/2010 - 07:04

Now I remember what I actually wanted to clarify for myself: hot to turn off them for subservers? I unchecked them in subservers template, but they when I visit that page again they persist to be always active. If I am not using those subdomains naturally I don't want to use them for subservers.

Fri, 10/29/2010 - 07:12

What have you configured there exactly? For me, the hosts "ftp", "m" etc. stay off when I turn them off, also for subservers. Have you set "BIND DNS records for new domains" to "From default settings" or to "Records below"?

Fri, 10/29/2010 - 07:59 (Reply to #7)

I tried both.

1) With "From default settings" they are not uncheckable, so I selected "Records below", unchecked them, checked "From default settings" again and clicked to Save. If I return to the page, the options are all checked again.

2) I selected "Records below", unchecked unnecessary to me options, clicked Save, it gave error, requiring DNS record (which should be automatically generated). So I had to uncheck everything, add DNS record and click Save. When I return to the page the check are at their own place stuck.

Fri, 10/29/2010 - 09:30

1) Yes that's right. When you choose "From default", the checkbox settings are irrelevant and get reset to "active", but have no effect, since the main server defaults are applied.

2) Yep, that too. "Records below" needs entries in the records edit box. Sorry, I didn't get what you mean with "are at their own place stuck"?

What should work is when you turn off the "m.", "ftp." etc. for the parent server, and use "From default" for the sub-server.

Fri, 10/29/2010 - 10:44 (Reply to #9)

You can try yourself to see: in subserver template does not turn off,,, options even if you select "Record below" and provide some entries and click on Save. Please, try to confirm.

Fri, 10/29/2010 - 13:55

I tried that already, after your previous post... I'm sorry, I can't confirm that. For me, the "Address records" that I turn off do stay turned off when I save the template, when "Records below" is selected, both for main and for subservers... I'm a bit stumped right now why they don't do that for you.

Wait a minute, ""? Where do you see "webmail" there? I only have the entries "Domain name, www, ftp, localhost" and "m" there, no "webmail".

Sat, 10/30/2010 - 15:23 (Reply to #11)

Strange enough - I tried today on fresh mind and it worked. So last time I was doing something wrong. The options I don't need are unchecked finally.

Now, to achieve that we had to select 'Records below ..' which require providing some BIND DNS records, at least one. Otherwise it gives:

Failed to save server template : No DNS records entered

So I put just one empty space, I hope this is ok.

Thank you, guys, for bearing with newbees like myself. Lot's of trying and lot's of misunderstandings and learning.

Thu, 11/04/2010 - 11:39 (Reply to #12)

By the way, I missed this part:

Wait a minute, ""? Where do you see "webmail" there? I only have the entries "Domain name, www, ftp, localhost" and "m" there, no "webmail".

True, there is no option for webmail in Virtualmin, nevertheless /etc/httpd/conf/httpd.conf shows ServerAliases not only for webmail, but for admin too:

ServerAlias ServerAlias ServerAlias

And I have already been told that Virtualmin is responsible for creating zone records in httpd.conf. So everytime I create a virtualserver I have to go to httpd.conf and manually delete extra aliases, which I do not want.

P.S. BTW I could not run that software for Mac, which you suggested. I usually install programms by dragging them to my Applications folder in Mac, but this one apparently needed a different aproach, maybe needed additional configurations.

Thu, 11/04/2010 - 11:43 (Reply to #13)

True, there is no option for webmail in Virtualmin, nevertheless /etc/httpd/conf/httpd.conf shows ServerAliases not only for webmail, but for admin too

Correct, Virtualmin will by default create a webmail.domain.tld alias that redirects to your webmail client, and an admin.domain.tld alias that redirects to Virtualmin.

You can control whether those are created, and where they point to, in System Settings -> Server Templates -> Default -> Apache Website.


Thu, 11/04/2010 - 11:52 (Reply to #14)

Oh right, I forgot about those two additional aliases for webmail and admin, which are - as Eric already pointed out - configured elsewhere.

Hmm, what software are you referring to?

Thu, 11/04/2010 - 13:12 (Reply to #15)

For talking trough ICQ.

Thu, 11/04/2010 - 17:21 (Reply to #16)

You mean the Mac version of Trillian? Mh, sorry, can't really help you there, I have exactly zero experience with Macs. :)

Sat, 10/30/2010 - 16:33

An empty space is probably not a good idea, since what you enter there gets added to the zone file and needs to be valid BIND syntax. On the other hand... BIND should handle empty lines or whitespaces okay. :) So if Virtualmin accepts that, you might just try it.

If it gives trouble, you could enter a "dummy entry" like "dummy.${DOM}" if you don't mind having that entry in your zone. ;) It shouldn't hurt anyway. Or you might enter a line starting with a "#", which results in a comment in BIND.

As for the "newbie" thing, don't worry about that. Web hosting is not trivial, and I can understand very well that there are lots of questions and caveats. I'm myself rather fresh on the Virtualmin side of the force (mostly Windows hosting so far), and am thus falling for those regularly myself. :)

Sat, 10/30/2010 - 20:52 (Reply to #18)

It's a good idea about creating dummy entry or #comment. I tried to create with "empty space", apparently this way works too. Now I have celan hosts files in named directory. Thanks!

Sun, 10/31/2010 - 07:38

You're welcome, glad it works now!

Topic locked