Welcome, Guest
Please Login or Register.
Lost Password?
BIND DNS CONFIGURATION AND VIRTUAL SERVER CREATION (1 viewing)
Post Reply

TOPIC: BIND DNS CONFIGURATION AND VIRTUAL SERVER CREATION

#17841
adl (User)
Posts: 9
graphgraph
BIND DNS CONFIGURATION AND VIRTUAL SERVER CREATION 2008/11/14 04:04  
Hi, i've configured Bind Server in Webmin to create zone files as i want, with custom records and a template file. I've tried it in webmin creating a new master dns zone and it works. But if i create a new virtual server in virtualmin professional zone files are created as like as the default and not with my configuration. What can i do to resolve this problem? Thanks.
  The administrator has disabled public write access.
#17844
andreychek (Moderator)
Posts: 861
graphgraph
Re:BIND DNS CONFIGURATION AND VIRTUAL SERVER CREATION 2008/11/14 05:01  
Hrm, I suspect a lot of the Virtual Server defaults are being pulled from what's defined in the Server Templates.

When you log into Virtualmin, go into System Settings -> Server Templates -> DNS for Domain, and try making changes there and see if that helps.
-Eric
  The administrator has disabled public write access.
#17845
adl (User)
Posts: 9
graphgraph
Re:BIND DNS CONFIGURATION AND VIRTUAL SERVER CREATION 2008/11/14 05:21  
I've tried to configure it in Server Templates, like the image attached . When I save the configuration give me this error:
"Failed to save server template : An NS record for the domain must exist in the template". Why?
  The administrator has disabled public write access.
#17846
adl (User)
Posts: 9
graphgraph
Re:BIND DNS CONFIGURATION AND VIRTUAL SERVER CREATION 2008/11/14 05:23  
Sorry, here the image.
  The administrator has disabled public write access.
#17847
adl (User)
Posts: 9
graphgraph
Re:BIND DNS CONFIGURATION AND VIRTUAL SERVER CREATION 2008/11/14 05:26  
sorry again, i post it here:
$ORIGIN .
$TTL 86400 ; 1 day
$DOM IN SOA "myhost". "mymail".
(
2002121200 ; serial
86400 ; refresh (1 day)
1800 ; retry (30 minutes)
605000 ; expire (1 week 3 minutes 20 seconds)
86400 ; minimum (1 day)
)
NS "master dns".
NS "slave dns".
MX 10 "server mail".
$ORIGIN $DOM.
imap CNAME "server mail".
pop3 CNAME "server mail".
smtp CNAME "server mail".
www A ip server site
  The administrator has disabled public write access.
#17853
andreychek (Moderator)
Posts: 861
graphgraph
Re:BIND DNS CONFIGURATION AND VIRTUAL SERVER CREATION 2008/11/14 10:10  
Yeah, the forum software isn't always thrilled about attachments, especially on Fridays. Joe's working on it though :-)

Could you email me a copy of your DNS information (including the real IP's, CNAME's, and such)?

I'd like to see the actual syntax in use there.

You can email it to eric@virtualmin.com -- include a link to this post if you can. Thanks!
-Eric
  The administrator has disabled public write access.
#17946
andreychek (Moderator)
Posts: 861
graphgraph
Re:BIND DNS CONFIGURATION AND VIRTUAL SERVER CREATION 2008/11/17 06:35  
We're discussing this over email.

As he mentioned above, he's getting the error -- "Failed to save server template : An NS record for the domain must exist in the template" -- when creating a Virtual Server.

He has "Use only the records above" checked, meaning all the DNS records need to be provided in his template.

Looking in the Virtualmin source, it looks like that error will come up when either the NS record is missing, or the SOA record.

After viewing the zone file, I suspect there's a non-printable character in the SOA record line that's hindering Virtualmin's ability to read the record properly. That line would just need to be deleted and re-written.
-Eric
  The administrator has disabled public write access.
#17970
adl (User)
Posts: 9
graphgraph
Re:BIND DNS CONFIGURATION AND VIRTUAL SERVER CREATION 2008/11/17 22:08  
This is the way i use to resolve the problem:
1. You have two "$ORIGIN" lines, you may want to delete one or both

2. I think there's a problem with your SOA line. I think there's a non-printable character in it that's causing a problem, preventing Virtualmin from reading it correctly.

So, try deleting this:

> $DOM IN SOA "dns server name". "email".

And in it's place, add this:

@ IN SOA "dns server name". "email".

I use the option "Use only the records above" because Virtualmin don't use the Bind default that i 've configurated and test before.
Indeed i create new dns zones like i want to using the Bind in webmin.
So i want to know if i made some mistakes in the configuration.

This is eric's answer by email:
I think I see what you're saying -- you've made some changes by going into Webmin -> Servers -> BIND DNS Server, and the changes you've added in there aren't being used when Virtualmin creates a Virtual Server?
I guess I'd need some specifics about what isn't showing up or working correctly...
I may also need to enlist the help of Jamie.

So, what should I post here to help you solve the problem?
Thanks.
  The administrator has disabled public write access.
#17978
andreychek (Moderator)
Posts: 861
graphgraph
Re:BIND DNS CONFIGURATION AND VIRTUAL SERVER CREATION 2008/11/18 05:58  
Well, can you give a specific example of what you'd like to have working that currently don't work?

There's a lot of goodies in the Webmin/BIND configuration, and some of them I'd expect to effect Virtualmin, others I wouldn't.

So if you can provide some more details of what you'd like to setup, we can try and figure out if there's a bug, or if it's a feature request :-)

Thanks!
-Eric
  The administrator has disabled public write access.
#17986
adl (User)
Posts: 9
graphgraph
Re:BIND DNS CONFIGURATION AND VIRTUAL SERVER CREATION 2008/11/18 07:33  
So, I hope to be clear. I configure Bind from menĂ¹ WebMin>Server>Bind DNS Server to create zone files like this:
$ttl 86400
pippo.it. IN SOA "name of the server". "email". (
1227027259
86400
1800
605000
86400 )
pippo.it. IN NS "name of the server".
pop3. IN CNAME "name of the server"
imap. IN CNAME "name of the server"
smtp. IN CNAME "name of the server"
www. IN A "public ip server"
pippo.it. IN NS "name of the server".
pippo.it. IN MX 10 "name of the server".

It works well, but when I create a new Virtual Server from menĂ¹ Virtualmin>Create Virtual Server, the zone file is created like this:
$ttl 86400
@ IN SOA "name of the server". "email". (
1227027823
86400
1800
605000
86400 )
@ IN NS "name of the server".
pippo.it. IN A 192.168.1.10
www.pippo.it. IN A 192.168.1.10
ftp.pippo.it. IN A 192.168.1.10
m.pippo.it. IN A 192.168.1.10
localhost.pippo.it. IN A 127.0.0.1
webmail.pippo.it. IN A 192.168.1.10
admin.pippo.it. IN A 192.168.1.10
pippo.it. IN TXT "v=spf1 a mx a:pippo.it ip4:192.168.1.10 ?all"

I think this is the default.
Then i tell you the problem and after your suggestion I configure Vitualmin Server Template to create Bind zone files with the option "Use only the records above" and this template:
$ORIGIN $DOM.
$TTL 86400 ; 1 day
@ IN SOA "name of server". "email".
( 2004102702 ;serial
86400 ;refresh
1800 ;retry
605000 ;expire
86400 ;TTL
)
@ IN NS "name of server".
@ IN NS "name of server".
@ IN MX 10 "name of server".
pop3. IN CNAME "name of server".
imap. IN CNAME "name of server".
smtp. IN CNAME "name of server".
www. IN A "server ip"

I ask you why Virtualmin don't use the Bind configuration i made in WebMin? Do I made any mistake? There is something else to configure?

Thanks.
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.