Re: [CODE4LIB] Domain lookup madness

2011-11-09 Thread Ross Singer
On Wednesday, November 9, 2011, Roy Tennant  wrote:
> Posting here worked, but you probably should have skipped the tearing
> out of the hair. When you get to be my age, you'll miss it. A lot. ;-)

http://www.theonion.com/articles/report-male-hair-loss-7-times-more-painful-than-ch,21194/

-Ross.
> Roy
>
> On Wed, Nov 9, 2011 at 1:39 PM, Yitzchak Schaffer
>  wrote:
>> On 11/09/2011 16:33, Roy Tennant wrote:
>>>
>>> OCLC staff says "We changed the way questionpoint.org DNS resolution
>>> was performed last night and the graceful handling of IPv6 lookups was
>>> inadvertently left off.  That has been corrected so please try again.
>>
>> Confirmed working. For once I shoulda talked to the vendor before tearing
>> out my hair and posting to code4lib :)
>>
>> --
>> Yitzchak Schaffer
>> Systems Manager
>> Touro College Libraries
>> 212.742.8770 ext. 2432
>> http://www.tourolib.org/
>>
>> Access Problems? Contact systems.libr...@touro.edu
>>
>


Re: [CODE4LIB] Domain lookup madness

2011-11-09 Thread Roy Tennant
Posting here worked, but you probably should have skipped the tearing
out of the hair. When you get to be my age, you'll miss it. A lot. ;-)
Roy

On Wed, Nov 9, 2011 at 1:39 PM, Yitzchak Schaffer
 wrote:
> On 11/09/2011 16:33, Roy Tennant wrote:
>>
>> OCLC staff says "We changed the way questionpoint.org DNS resolution
>> was performed last night and the graceful handling of IPv6 lookups was
>> inadvertently left off.  That has been corrected so please try again.
>
> Confirmed working. For once I shoulda talked to the vendor before tearing
> out my hair and posting to code4lib :)
>
> --
> Yitzchak Schaffer
> Systems Manager
> Touro College Libraries
> 212.742.8770 ext. 2432
> http://www.tourolib.org/
>
> Access Problems? Contact systems.libr...@touro.edu
>


Re: [CODE4LIB] Domain lookup madness

2011-11-09 Thread Yitzchak Schaffer

On 11/09/2011 16:33, Roy Tennant wrote:

OCLC staff says "We changed the way questionpoint.org DNS resolution
was performed last night and the graceful handling of IPv6 lookups was
inadvertently left off.  That has been corrected so please try again.


Confirmed working. For once I shoulda talked to the vendor before 
tearing out my hair and posting to code4lib :)


--
Yitzchak Schaffer
Systems Manager
Touro College Libraries
212.742.8770 ext. 2432
http://www.tourolib.org/

Access Problems? Contact systems.libr...@touro.edu


Re: [CODE4LIB] Domain lookup madness

2011-11-09 Thread Jeff Godin
On Wed, Nov 9, 2011 at 4:18 PM, Jeff Godin  wrote:
>
> The nameservers for questionpoint.org appear to not respond to queries
> for  records. Expected behavior would be to return an empty
> response.

A minor correction:

The nameservers seem to respond to queries for  records, but some
large recursive resolvers are returning SERVFAIL (after what appears
to be a timeout).

Tried Google's 8.8.8.8, Linode's 207.192.69.4 (as a customer). Both
return SERVFAIL.

Linode's 207.192.69.5 and 97.107.133.4 return the expected empty
response -- and quickly.

I'm guessing that something is broken in an intermittent way, or a
change was made recently.

What I don't know is if it's slowly being fixed, or slowly breaking. :-)

-jeff


Re: [CODE4LIB] Domain lookup madness

2011-11-09 Thread Roy Tennant
OCLC staff says "We changed the way questionpoint.org DNS resolution
was performed last night and the graceful handling of IPv6 lookups was
inadvertently left off.  That has been corrected so please try again.
Roy

>
> -- Forwarded message --
> From: Jeff Godin 
> Date: Wed, Nov 9, 2011 at 1:18 PM
> Subject: Re: [CODE4LIB] Domain lookup madness
> To: CODE4LIB@listserv.nd.edu
>
>
> On Wed, Nov 9, 2011 at 3:47 PM, Yitzchak Schaffer
>  wrote:
>>
>> yitzchas@ubu-dev:/www/websites/drupal/sites/all$ curl
>>
> "http://www.questionpoint.org/crs/servlet/org.oclc.chat.QPWOnlineStatus?
> library=10253&rid=0"
>> -m 3 -v
>> * name lookup timed out
>> * Couldn't resolve host 'www.questionpoint.org'
>> * Closing connection #0
>> curl: (6) name lookup timed out
>
> The nameservers for questionpoint.org appear to not respond to queries
> for  records. Expected behavior would be to return an empty
> response.
>
> curl is trying to look up both the A and the  records, and the
> system resolver's timeout is larger than 3 seconds, so curl times out.
> Dropping the -m3 would let curl complete, but it would take about 15
> seconds.
>
> If you pass -4 as an option to curl, this should work around the issue
> by skipping the IPv6 lookup.
>
> If using libcurl in php, you should be able to use the CURL_IPRESOLVE_V4
> option.
>
> I don't know offhand if file_get_contents can be instructed to force
> IPv4.
>
> Another option, since I believe all of the above use the libc resolver
> library -- you can hardcode the IPv4 address in /etc/hosts -- that
> will break when the IP changes.
>
> There are a few other possible workarounds, but hopefully one of the
> above works acceptably.
>
> -jeff
>
>
>


Re: [CODE4LIB] Domain lookup madness

2011-11-09 Thread Jeff Godin
On Wed, Nov 9, 2011 at 4:33 PM, Roy Tennant  wrote:
> OCLC staff says "We changed the way questionpoint.org DNS resolution
> was performed last night and the graceful handling of IPv6 lookups was
> inadvertently left off.  That has been corrected so please try again.

Aha! That would explain it.

Thanks!

-jeff


Re: [CODE4LIB] Domain lookup madness

2011-11-09 Thread Jeff Godin
On Wed, Nov 9, 2011 at 3:47 PM, Yitzchak Schaffer
 wrote:
>
> yitzchas@ubu-dev:/www/websites/drupal/sites/all$ curl
> "http://www.questionpoint.org/crs/servlet/org.oclc.chat.QPWOnlineStatus?library=10253&rid=0";
> -m 3 -v
> * name lookup timed out
> * Couldn't resolve host 'www.questionpoint.org'
> * Closing connection #0
> curl: (6) name lookup timed out

The nameservers for questionpoint.org appear to not respond to queries
for  records. Expected behavior would be to return an empty
response.

curl is trying to look up both the A and the  records, and the
system resolver's timeout is larger than 3 seconds, so curl times out.
Dropping the -m3 would let curl complete, but it would take about 15
seconds.

If you pass -4 as an option to curl, this should work around the issue
by skipping the IPv6 lookup.

If using libcurl in php, you should be able to use the CURL_IPRESOLVE_V4 option.

I don't know offhand if file_get_contents can be instructed to force IPv4.

Another option, since I believe all of the above use the libc resolver
library -- you can hardcode the IPv4 address in /etc/hosts -- that
will break when the IP changes.

There are a few other possible workarounds, but hopefully one of the
above works acceptably.

-jeff


Re: [CODE4LIB] Domain lookup madness

2011-11-09 Thread Yitzchak Schaffer

On 11/09/2011 16:03, Chad Benjamin Nelson wrote:

I upped it to ten and it still failed, but when I dropped the "-m 3" it does 
return the same as the browser.

So it's just real slow, that's all.



When I use dig to resolve it, it's as good as instantaneous (from my 
human perspective). That's what I don't understand.


--
Yitzchak Schaffer
Systems Manager
Touro College Libraries
212.742.8770 ext. 2432
http://www.tourolib.org/

Access Problems? Contact systems.libr...@touro.edu


Re: [CODE4LIB] Domain lookup madness

2011-11-09 Thread Yitzchak Schaffer

On 11/09/2011 16:01, Michael Della Bitta wrote:

Have you tried running dig or nslookup on the server from the command
line? Maybe your server is using DNS that is broken or has cached a
bad record.



Look again at my msg ;) that's the mystifying part


yitzchas@ubu-dev:/www/websites/drupal/sites/all$ dig www.questionpoint.org
+short
132.174.11.16

yitzchas@ubu-dev:/www/websites/drupal/sites/all$ curl
"http://www.questionpoint.org/crs/servlet/org.oclc.chat.QPWOnlineStatus?library=10253&rid=0";
-m 3 -v
* name lookup timed out
* Couldn't resolve host 'www.questionpoint.org'
* Closing connection #0
curl: (6) name lookup timed out



Re: [CODE4LIB] Domain lookup madness

2011-11-09 Thread Chad Benjamin Nelson
It's setting the timeout

I upped it to ten and it still failed, but when I dropped the "-m 3" it does 
return the same as the browser. 

So it's just real slow, that's all.

Chad Nelson
Web Services Programmer
University Library
Georgia State University

e: cnelso...@gsu.edu
t: 404 413 2771
My Calendar


From: Code for Libraries [CODE4LIB@LISTSERV.ND.EDU] on behalf of Yitzchak 
Schaffer [yitzchak.schaf...@gmx.com]
Sent: Wednesday, November 09, 2011 3:47 PM
To: CODE4LIB@LISTSERV.ND.EDU
Subject: [CODE4LIB] Domain lookup madness

Hello all,

Mystified. A drupal module on our site makes a call to an OCLC server to
get status of chat service. This has been working fine until this morning.

I can open a browser and successfully browse the URL of the status
service. But when I use file_get_contents() or php-curl (or command-line
curl for that matter), on the same box, I get a domain lookup error, see
below. What the heck is going on? TIA!

yitzchas@ubu-dev:/www/websites/drupal/sites/all$ dig
www.questionpoint.org +short
132.174.11.16

yitzchas@ubu-dev:/www/websites/drupal/sites/all$ curl
"http://www.questionpoint.org/crs/servlet/org.oclc.chat.QPWOnlineStatus?library=10253&rid=0";
-m 3 -v
* name lookup timed out
* Couldn't resolve host 'www.questionpoint.org'
* Closing connection #0
curl: (6) name lookup timed out

--
Yitzchak Schaffer
Systems Manager
Touro College Libraries
212.742.8770 ext. 2432
http://www.tourolib.org/

Access Problems? Contact systems.libr...@touro.edu


Re: [CODE4LIB] Domain lookup madness

2011-11-09 Thread Michael Della Bitta
Yitzchak,

Have you tried running dig or nslookup on the server from the command
line? Maybe your server is using DNS that is broken or has cached a
bad record.

Michael Della Bitta

Senior Applications Developer
Information Technology Group
The New York Public Library
40 West 20th Street, 5th Floor
New York, NY 10011-4211
(212) 621-0609



On Wed, Nov 9, 2011 at 3:47 PM, Yitzchak Schaffer
 wrote:
> Hello all,
>
> Mystified. A drupal module on our site makes a call to an OCLC server to get
> status of chat service. This has been working fine until this morning.
>
> I can open a browser and successfully browse the URL of the status service.
> But when I use file_get_contents() or php-curl (or command-line curl for
> that matter), on the same box, I get a domain lookup error, see below. What
> the heck is going on? TIA!
>
> yitzchas@ubu-dev:/www/websites/drupal/sites/all$ dig www.questionpoint.org
> +short
> 132.174.11.16
>
> yitzchas@ubu-dev:/www/websites/drupal/sites/all$ curl
> "http://www.questionpoint.org/crs/servlet/org.oclc.chat.QPWOnlineStatus?library=10253&rid=0";
> -m 3 -v
> * name lookup timed out
> * Couldn't resolve host 'www.questionpoint.org'
> * Closing connection #0
> curl: (6) name lookup timed out
>
> --
> Yitzchak Schaffer
> Systems Manager
> Touro College Libraries
> 212.742.8770 ext. 2432
> http://www.tourolib.org/
>
> Access Problems? Contact systems.libr...@touro.edu
>


Re: [CODE4LIB] Domain lookup madness

2011-11-09 Thread Thomas Krichel
  Roy Tennant writes

> I'm mystified as well, since a curl request from one of my servers
> (not an OCLC one) resolves just fine.

  I get the same result as Yitzchak

krichel@sahure:~$ curl 
"http://www.questionpoint.org/crs/servlet/org.oclc.chat.QPWOnlineStatus?library=10253&rid=0";
 -m 3 -v
* name lookup timed out
* Couldn't resolve host 'www.questionpoint.org'
* Closing connection #0
curl: (6) name lookup timed out


  Cheers,

  Thomas Krichelhttp://openlib.org/home/krichel
  http://authorprofile.org/pkr1
   skype: thomaskrichel


Re: [CODE4LIB] Domain lookup madness

2011-11-09 Thread Roy Tennant
Yitzchak,
I'm mystified as well, since a curl request from one of my servers
(not an OCLC one) resolves just fine.
Roy

On Wed, Nov 9, 2011 at 12:47 PM, Yitzchak Schaffer
 wrote:
> Hello all,
>
> Mystified. A drupal module on our site makes a call to an OCLC server to get
> status of chat service. This has been working fine until this morning.
>
> I can open a browser and successfully browse the URL of the status service.
> But when I use file_get_contents() or php-curl (or command-line curl for
> that matter), on the same box, I get a domain lookup error, see below. What
> the heck is going on? TIA!
>
> yitzchas@ubu-dev:/www/websites/drupal/sites/all$ dig www.questionpoint.org
> +short
> 132.174.11.16
>
> yitzchas@ubu-dev:/www/websites/drupal/sites/all$ curl
> "http://www.questionpoint.org/crs/servlet/org.oclc.chat.QPWOnlineStatus?library=10253&rid=0";
> -m 3 -v
> * name lookup timed out
> * Couldn't resolve host 'www.questionpoint.org'
> * Closing connection #0
> curl: (6) name lookup timed out
>
> --
> Yitzchak Schaffer
> Systems Manager
> Touro College Libraries
> 212.742.8770 ext. 2432
> http://www.tourolib.org/
>
> Access Problems? Contact systems.libr...@touro.edu
>


[CODE4LIB] Domain lookup madness

2011-11-09 Thread Yitzchak Schaffer

Hello all,

Mystified. A drupal module on our site makes a call to an OCLC server to 
get status of chat service. This has been working fine until this morning.


I can open a browser and successfully browse the URL of the status 
service. But when I use file_get_contents() or php-curl (or command-line 
curl for that matter), on the same box, I get a domain lookup error, see 
below. What the heck is going on? TIA!


yitzchas@ubu-dev:/www/websites/drupal/sites/all$ dig 
www.questionpoint.org +short

132.174.11.16

yitzchas@ubu-dev:/www/websites/drupal/sites/all$ curl 
"http://www.questionpoint.org/crs/servlet/org.oclc.chat.QPWOnlineStatus?library=10253&rid=0"; 
-m 3 -v

* name lookup timed out
* Couldn't resolve host 'www.questionpoint.org'
* Closing connection #0
curl: (6) name lookup timed out

--
Yitzchak Schaffer
Systems Manager
Touro College Libraries
212.742.8770 ext. 2432
http://www.tourolib.org/

Access Problems? Contact systems.libr...@touro.edu