
4th February 2013, 13:46
|
|
Junior Member
|
|
Join Date: Aug 2012
Posts: 18
Thanks: 5
Thanked 0 Times in 0 Posts
|
|
DNS Issue with ISPConfig 3
Hi all,
I managed to install ISPConfig 3 for the first time, and its also my first time to use ISPConfig, my dns(chrooted bind) is already configured, i can dig / nslookup records,.. but one thing I dont really get is that when i Add a Zone in ISPConfig Web Gui, it will be created in /var/named/chroot/var/named and the format of the file is eg: pri.mobile.domain.com, so it automatically created with a prefix of pri.,, can i configure ISPConfig not to add pri as prefix to my newly created zone file?... another thing after i create a zone file, do we need to manually include it to /etc/named.conf? ex: include /var/named/mobile.domain.com.
Thanks in advance,
|

4th February 2013, 14:03
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 32,066
Thanks: 697
Thanked 4,248 Times in 3,260 Posts
|
|
Quote:
|
can i configure ISPConfig not to add pri as prefix to my newly created zone file?
|
No. ISPConfig will create the files with prefix and will also use this prefix in the named-conf-local file which conatains the zones and gets included in named.conf
Quote:
|
another thing after i create a zone file, do we need to manually include it to /etc/named.conf? ex: include /var/named/mobile.domain.com.
|
No. All you have to do is to include the named-conf-local file at the end of the name.conf file. If your server would have been empty (which is a requirement for the installation of ispconfig btw.) and installed as decribed in the perfects etup guide for ispconfig, then bind would have been setup correctly for the use with ispconfig automatically.
|

4th February 2013, 14:16
|
|
Junior Member
|
|
Join Date: Aug 2012
Posts: 18
Thanks: 5
Thanked 0 Times in 0 Posts
|
|
thank you for your quick response, this is now the last part of my /etc/named.conf file.
PHP Code:
include "/var/named/chroot/var/named/named.local";
include "/var/named/chroot/etc/named.conf.local";
is this how it must be done?
btw, i dont have any zone declared in my /etc/named.conf file, as i said when i create a zone in ISPConfig, it is created in /var/named/chroot/var/named ..
|

4th February 2013, 14:19
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 32,066
Thanks: 697
Thanked 4,248 Times in 3,260 Posts
|
|
If thats the file were ispconfig writes the zones in your installation, then its ok. You can freely configure this file in ispconfig under system > server config.
|

4th February 2013, 14:34
|
|
Junior Member
|
|
Join Date: Aug 2012
Posts: 18
Thanks: 5
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by till
If thats the file were ispconfig writes the zones in your installation, then its ok. You can freely configure this file in ispconfig under system > server config.
|
hi till, i already added a zone in mobile.domain.com, and added some test record.. but im unable to ping this record created.. heres my newly added zonefile..
$TTL 3600
@ IN SOA srv1.domain.com. admin.company.com. (
2013020401 ; serial, todays date + todays serial #
7200 ; refresh, seconds
540 ; retry, seconds
604800 ; expire, seconds
86400 ) ; minimum, seconds
;
test 86400 A 192.168.245.120
this file was in /var/named/chroot/var/named....
|

4th February 2013, 15:04
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 32,066
Thanks: 697
Thanked 4,248 Times in 3,260 Posts
|
|
The file is incomplete as you did not add all required records. Incomplete files are skipped by bind.
Better use the dns wizard in ispconfig to add a zone as it will add required records like ns records automatically. If the ns records that you use for your zone are subdomains of the zone, then dont forget to add a-records for these subdomains as well.
|

5th February 2013, 03:19
|
|
Junior Member
|
|
Join Date: Aug 2012
Posts: 18
Thanks: 5
Thanked 0 Times in 0 Posts
|
|
It works!
thanks for this till, i created another zone, now using with wizard... so records were created automatically for me.. now i can ping the record that i created.. thanks for your help till,
Edit: Now, how am I gonna mark this thread solved?
Last edited by asterinux; 5th February 2013 at 03:22.
Reason: additional
|

5th February 2013, 03:52
|
|
Junior Member
|
|
Join Date: Aug 2012
Posts: 18
Thanks: 5
Thanked 0 Times in 0 Posts
|
|
Other system dont have named.conf.local
hi, just a follow up question before this thread will be mark solved,
In my other system with bind chroot installed, i didnt find any named.conf.local file, i want to include that file as what till said, is it on different location? thank you...
Edit: I do find it on /etc/named.conf.local but whenever i include that file in named.conf, bind will error
/etc/named.conf:71: open: /var/named/chroot/etc/named.conf.local: file not found .. any help please?? thanks..
Last edited by asterinux; 5th February 2013 at 03:56.
Reason: additional
|

5th February 2013, 06:57
|
|
Junior Member
|
|
Join Date: Aug 2012
Posts: 18
Thanks: 5
Thanked 0 Times in 0 Posts
|
|
Zone created not detected :(
Update:
what i did is that, i tried to symlink the file /etc/named.conf.local to /var/named/chroot/etc/named.conf.local
PHP Code:
ln /etc/named.conf.local /var/named/chroot/etc/
then i add a zone in ISPConfig GUI, then restart named
PHP Code:
service named restart
... it fail, another error occured.
PHP Code:
service named restart
Starting named:
Error in named configuration:
zone localhost.localdomain/IN: loaded serial 0
zone localhost/IN: loaded serial 0
zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
zone 0.in-addr.arpa/IN: loaded serial 0
zone srv1.domain.com/IN: loaded serial 2013011004
zone branch.srv1.domain.com/IN: loading from master file /var/named/chroot/var/named/pri.branch.srv1.domain.com failed: file not found
zone branch.srv1.domain.com/IN: not loaded due to errors.
_default/branch.srv1.domain.com/IN: file not found
[FAILED]
.... am i doing it the wrong way?
|

5th February 2013, 07:56
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 32,066
Thanks: 697
Thanked 4,248 Times in 3,260 Posts
|
|
The setup supported by ispconfig is described in the perfect setup guide. If you use a different setup which is not supported like you did, then files can be missing or might have to be created manually.
|
|
The Following User Says Thank You to till For This Useful Post:
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 08:13.
|
Recent comments
1 day 10 hours ago
1 day 12 hours ago
2 days 28 min ago
2 days 3 hours ago
2 days 7 hours ago
2 days 13 hours ago
2 days 23 hours ago
3 days 48 min ago
3 days 8 hours ago
3 days 10 hours ago