
29th January 2006, 07:44
|
|
Junior Member
|
|
Join Date: Dec 2005
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Dns
Is it true that there are currently bugs in the ISP module regarding the automatic creation of DNS entries. Specifically MX entries.
It would seem that for any given site, the *Domain Name* of the ISPConfig server (Administrative Domain) gets added as the MX.
This should be corrected either by prepending the ISPConfig servers *Host Name* followed by a dot to its Domain Name, or to follow the example of the DNS manager module and set up a link to mail.site.tld.
Until this is resolved, I would reccommend *ALL* DNS configuration through the DNS manager module.
|

29th January 2006, 08:25
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
Quote:
|
Originally Posted by martinoc
Is it true that there are currently bugs in the ISP module regarding the automatic creation of DNS entries. Specifically MX entries.
|
I don't think there's a bug, but let me check first.
Quote:
|
Originally Posted by martinoc
It would seem that for any given site, the *Domain Name* of the ISPConfig server (Administrative Domain) gets added as the MX.
This should be corrected either by prepending the ISPConfig servers *Host Name* followed by a dot to its Domain Name, or to follow the example of the DNS manager module and set up a link to mail.site.tld.
|
ISPConfig takes the host name + domain name that you specified during the ISPConfig setup which is ok since this FQDN points to the ISPConfig server (otherwise you wouldn't be able to access the web interface).
Quote:
|
Originally Posted by martinoc
Until this is resolved, I would reccommend *ALL* DNS configuration through the DNS manager module.
|
This is always recommended if you want to use settings that go beyond the default records.
|

29th January 2006, 08:55
|
|
Junior Member
|
|
Join Date: Dec 2005
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
|
Originally Posted by falko
I don't think there's a bug, but let me check first.
ISPConfig takes the host name + domain name that you specified during the ISPConfig setup which is ok since this FQDN points to the ISPConfig server (otherwise you wouldn't be able to access the web interface).
|
No, I'm running two servers and in both cases, the FQDN was not added to the MX of my vhosts. Only the domain name portion was added. I've had to manually edit them.
Quote:
This is always recommended if you want to use settings that go beyond the default records.
|
|

29th January 2006, 09:04
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
You seem to be right. I've just changed /home/admispconfig/ispconfig/lib/classes/ispconfig/isp_web.lib.php and added this line right after line 976:
PHP Code:
if(trim($server['server_host']) != '') $domain = trim($server['server_host']).'.'.$domain;
Please try this; if it works it will go into the next ISPConfig release.
Things like these happen if you test in an environment where you don't have a hostname... - then the result looks ok...
|

29th January 2006, 09:39
|
|
Junior Member
|
|
Join Date: Dec 2005
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Have tried it on both servers, and can confirm that it works.
|

29th January 2006, 15:32
|
|
Junior Member
|
|
Join Date: Dec 2005
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I think there is a slight problem with this behaviour. The FQDN of the web and not the server should be added as an MX record. I have tried to use the $web["web_host"] and $web["web_domain"] variables in the above mentioned code, but the output seems to be w.w
Perhaps you might have more success falko
[edit] perhaps the web should use $web["web_domain"] only as you would send mail to user@domain.tld and not user@www.domain.tld
Last edited by martinoc; 29th January 2006 at 15:36.
|

29th January 2006, 16:06
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
Quote:
|
Originally Posted by martinoc
I think there is a slight problem with this behaviour. The FQDN of the web and not the server should be added as an MX record. I have tried to use the $web["web_host"] and $web["web_domain"] variables in the above mentioned code, but the output seems to be w.w
Perhaps you might have more success falko
[edit] perhaps the web should use $web["web_domain"] only as you would send mail to user@domain.tld and not user@www.domain.tld 
|
I just had a look at the code. I think a solution will be to replace lines 976 - 978:
Code:
$domain = trim($server["server_domain"]);
$host = $go_api->db->queryOneRecord("SELECT web_host FROM isp_isp_web WHERE doc_id = $doc_id");
$host = trim($host['web_host']);
with this code:
Code:
$web = $go_api->db->queryOneRecord("SELECT web_host, web_domain FROM isp_isp_web WHERE doc_id = $doc_id");
$domain = trim($web["web_domain"]);
if(trim($web['web_host']) != '') $domain = trim($web['web_host']).'.'.$domain;
$host = '';
if you want to use the domain only, without the host, you can use this:
Code:
$web = $go_api->db->queryOneRecord("SELECT web_host, web_domain FROM isp_isp_web WHERE doc_id = $doc_id");
$domain = trim($web["web_domain"]);
$host = '';
|

29th January 2006, 18:15
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
Quote:
|
Originally Posted by martinoc
I think there is a slight problem with this behaviour. The FQDN of the web and not the server should be added as an MX record.
|
I don't think there's a problem with this because both - the FQDN of the server and the web site - point to the same IP address.
Quote:
|
Originally Posted by martinoc
|
If you want an MX record for domain.tld instead of www.domain.tld, go to the Co-Domain tab and create a default MX record for domain.tld.
ISPConfig gives you the possibility to create MX records for www.domain.tld and domain.tld because there are quite a lot people who need MX records for www.domain.tld.
|

29th January 2006, 18:57
|
|
Junior Member
|
|
Join Date: Dec 2005
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
|
Originally Posted by falko
I don't think there's a problem with this because both - the FQDN of the server and the web site - point to the same IP address.
|
I know, but it is just about keeping the DNS record "clean" looking. Its a cosmetic thing I think.
Quote:
If you want an MX record for domain.tld instead of www.domain.tld, go to the Co-Domain tab and create a default MX record for domain.tld.
ISPConfig gives you the possibility to create MX records for www.domain.tld and domain.tld because there are quite a lot people who need MX records for www.domain.tld.
|
Yes, I think till's first modification should suit that. Thats what you should patch into the next release, I think.
[edit]Till, your changes cause the IP address to dissappear from the www A record in the newly created DNS
Last edited by martinoc; 29th January 2006 at 19:20.
|

29th January 2006, 21:19
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
Quote:
|
Originally Posted by martinoc
Yes, I think till's first modification should suit that.
|
I think you misunderstood me there. This is already in ISPConfig, and it's intended the way it is.
|
| 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 23:23.
|
Recent comments
23 hours 31 min ago
23 hours 36 min ago
1 day 4 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 13 hours ago
1 day 17 hours ago
2 days 17 min ago
2 days 4 hours ago
2 days 5 hours ago