Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #21  
Old 31st October 2008, 01:05
lrider lrider is offline
Member
 
Join Date: Nov 2006
Posts: 70
Thanks: 1
Thanked 2 Times in 2 Posts
Default

To Cat:

That is what I did, following Falko's intructions, but it did not work for me.

After filling all the data, NO reverse zone was generated.?¿?¿
Reply With Quote
Sponsored Links
  #22  
Old 8th March 2009, 21:34
jmroth jmroth is offline
ISPConfig Developer
 
Join Date: Sep 2005
Posts: 191
Thanks: 1
Thanked 6 Times in 6 Posts
Question

Quote:
Originally Posted by lrider View Post
After filling all the data, NO reverse zone was generated.
No PTR records generated here either. Running ISPC 2.2.25.

Actually taking a quick glance at the code and at the DB reveals that:
- The DB contains dns_ptr.status='n', and
- The code says
if($ptr_dnss = $mod->db->queryAllRecords("SELECT dns_ptr.* FROM dns_nodes,dns_ptr WHERE dns_nodes.doc_\
id = dns_ptr.doc_id AND dns_nodes.doctype_id = '".$isp_web->ptr_doctype_id."' AND dns_nodes.status = '1'
(ispconfig/scripts/lib/classes/ispconfig_bind.lib.php)
....

Maybe that's only a symptom, but something seems to be wrong.
Reply With Quote
  #23  
Old 8th March 2009, 21:39
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,501 Times in 4,330 Posts
Default

Thats all absolutely ok. You mix up the tables dns_ptr and dns_nodes. In dns_ptr, the status is 'n' if a new record is inserted, 'u' if a record is updated and 'd' if a record is delted while the status in dns_dep is 1 or 0 which means that a record is in the recycle bin or not.

Which linux distribution do you use?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #24  
Old 8th March 2009, 21:42
jmroth jmroth is offline
ISPConfig Developer
 
Join Date: Sep 2005
Posts: 191
Thanks: 1
Thanked 6 Times in 6 Posts
Default

Alright, but what could be the reason that my PTR records are finally not generated in the config files?
Reply With Quote
  #25  
Old 8th March 2009, 21:46
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,501 Times in 4,330 Posts
Default

Please answer my question about the linux distribution if you want that I'am able to help you to find the problem.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #26  
Old 8th March 2009, 21:48
jmroth jmroth is offline
ISPConfig Developer
 
Join Date: Sep 2005
Posts: 191
Thanks: 1
Thanked 6 Times in 6 Posts
Default

Sorry Debian Etch
Reply With Quote
  #27  
Old 8th March 2009, 21:55
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,501 Times in 4,330 Posts
Default

Please run the following command as root user:

/root/ispconfig/php/php -q /root/ispconfig/scripts/writeconf.php

do the records get created then? Any errors on the screen or in the ispconfig.log?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #28  
Old 8th March 2009, 22:33
jmroth jmroth is offline
ISPConfig Developer
 
Join Date: Sep 2005
Posts: 191
Thanks: 1
Thanked 6 Times in 6 Posts
Default

One thing I have meanwhile found out is that $isp_web->ptr_doctype_id is empty in writeconf.php
Code:
$ptr_dnss = $mod->db->queryAllRecords("SELECT dns_ptr.* FROM dns_nodes,dns_ptr WHERE dns_nodes.doc_id = \
dns_ptr.doc_id AND dns_nodes.doctype_id = '".$isp_web->ptr_doctype_id."' AND dns_ptr.status != ''");
i.e. the query returns nothing and make_named_reverse is not called.

However the doctype id (1033) in the DB dns_ptr is correct. Thus I do not know why $isp_web->ptr_doctype_id is empty in writeconf.php and not empty in lib/classes/ispconfig_bind.lib.php

EDIT: The doctype_id in DB dns_nodes is 0 for my folder "Reverse Delegation" which contains the PTR records in DNS Manager.
__________________
[ISPC 2 / Debian Lenny]
Reply With Quote
  #29  
Old 9th March 2009, 09:50
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,501 Times in 4,330 Posts
Default

Please answer my questions in #27.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #30  
Old 9th March 2009, 10:08
jmroth jmroth is offline
ISPConfig Developer
 
Join Date: Sep 2005
Posts: 191
Thanks: 1
Thanked 6 Times in 6 Posts
 
Default

Quote:
Originally Posted by till View Post
Please run the following command as root user:

/root/ispconfig/php/php -q /root/ispconfig/scripts/writeconf.php

do the records get created then? Any errors on the screen or in the ispconfig.log?
No and no, otherwise I would have said so I see "start" and "end" properly.


UPDATE: As for my findings from #28, I seem to have forgotten to update my heavily customized config.lib.php after the last update... :-( sorry for disturbing I think that's it then. I thought it was only in ispconfig/lib/classes/ispconfig_isp_web.lib.php.... but apparently its there more than once.
__________________
[ISPC 2 / Debian Lenny]

Last edited by jmroth; 9th March 2009 at 10:19.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid Proxy Caching on Linux obzerver Installation/Configuration 4 13th August 2008 20:51
Google Apps dayjahone General 19 29th March 2008 18:25
DNS Configuration Problems VMartins Installation/Configuration 10 24th July 2007 15:40
Unable send receive emails vassilis3 Installation/Configuration 15 19th May 2007 15:34
Reverse DNS disasm General 3 13th January 2006 20:43


All times are GMT +2. The time now is 10:35.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.