Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2006-10-18 18:27:08
- tdn
- Member
- Registered: 2006-02-16
- Posts: 58
Re: Textpattern says that my IP is blacklisted even though it is not
array(1) {
[0]=>
string(14) "83.221.155.180"
}
array(1) {
[0]=>
string(14) "83.221.155.180"
}
Offline
Re: Textpattern says that my IP is blacklisted even though it is not
Did the :2 workaround help?
I’m not able to reproduce the problem you have, even with the exact same PHP package installed, but since you’re not the only one who experienced this problem… there have to be similarities between the two cases that we’ve seen so far.
Offline
#15 2006-10-18 18:36:21
- tdn
- Member
- Registered: 2006-02-16
- Posts: 58
Re: Textpattern says that my IP is blacklisted even though it is not
I have four different virtual hosts all running textpattern 4.0.4 with the same problem.
I just tried the :2 now and it did help. But is this the correct thing to do? Shouldn’t it work without the :2 part?
Offline
Re: Textpattern says that my IP is blacklisted even though it is not
Can you try this please: add a single dot behind sbl.spamhaus.org: sbl.spamhaus.org. (no :2 this time)
If that works, then I’d be interested to see the contents of your /etc/resolv.conf (mainly the ‘search’ statements) and perhaps /etc/hosts.
Yes, it should work without the :2, but since it doesn’t, the main question is why gethostbynamel returns your server IPnr when it shouldn’t find any results at all. Once we know the answer to that question, it will be easy to fix the problem.
BTW. adding :2 has no negative effects at all. In fact, that was the old behaviour of TXP 4.0.3.
Last edited by ruud (2006-10-18 18:42:12)
Offline
#17 2006-10-18 18:44:59
- tdn
- Member
- Registered: 2006-02-16
- Posts: 58
Re: Textpattern says that my IP is blacklisted even though it is not
A dot behind the hostname did the trick too. My hosts and resolv.conf can be seen at http://thomasdamgaard.dk/p/?paste=277.
Offline
Re: Textpattern says that my IP is blacklisted even though it is not
Let me guess… /etc/resolv.conf contains: search sikkerhed.org
sikkerhed.org has a wildcard DNS, which means that it will resolve justaboutanything.sikkerhed.org just as easily as 1.0.0.127.sbl.spamhaus.org.sikkerhed.org and they’ll all point to the local server IP.
If you can confirm this, I’ll send in a patch to the txp-dev mailinglist to fix that.
edit: hmmm… wrong guess, apparently.
Last edited by ruud (2006-10-18 18:50:25)
Offline
#19 2006-10-18 18:49:20
- tdn
- Member
- Registered: 2006-02-16
- Posts: 58
Re: Textpattern says that my IP is blacklisted even though it is not
There is no search line in my /etc/resolv.conf. I just pasted the contents of the file on the link above.
Offline
Re: Textpattern says that my IP is blacklisted even though it is not
What does hostname -d show?
Offline
#21 2006-10-18 19:17:22
- tdn
- Member
- Registered: 2006-02-16
- Posts: 58
Re: Textpattern says that my IP is blacklisted even though it is not
(tdn@zeus.sikkerhed.org) (Wed Oct 18 08:44 ) {P:0 H:504}
(~) hostname -d
sikkerhed.org
(tdn@zeus.sikkerhed.org) (Wed Oct 18 09:16 ) {P:0 H:505}
(~)
Offline
Re: Textpattern says that my IP is blacklisted even though it is not
$ host 1.0.0.127.sbl.spamhaus.org.sikkerhed.org
1.0.0.127.sbl.spamhaus.org.sikkerhed.org has address 83.221.155.180
Patch sent to txp-dev to automatically add a dot behind the hostname of the blacklist.
Index: 4.0/textpattern/lib/txplib_misc.php
===================================================================
--- 4.0/textpattern/lib/txplib_misc.php (revision 1967)
+++ 4.0/textpattern/lib/txplib_misc.php (working copy)
@@ -750,7 +750,7 @@
$codes[] = strpos($code, '.') ? $code : '127.0.0.'.$code;
}
}
- $hosts = @gethostbynamel($rip.'.'.$rbl);
+ $hosts = @gethostbynamel($rip.'.'.trim($rbl,'. ').'.');
if ($hosts and (!isset($codes) or array_intersect($hosts, $codes))) {
$listed[] = $rbl;
}
Last edited by ruud (2006-10-18 19:26:25)
Offline
Re: Textpattern says that my IP is blacklisted even though it is not
Hi Ruud,
Any idea when this will be fixed and applied in a new 4.0.4 build?
I upgraded one of my sites today to 4.0.4 (18 October 2006) and was still confronted with this issue.
By the way, although I have no real experience with upgrades and the like, I do see a lot of troubleshooting posts. Does it mean it is wise to await a new release before upgrading to 4.0.4 with my other sites?
Thanks.
Best regards,
Marcel
Offline
#24 2006-10-30 20:47:17
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Offline