DNS Lookup errors with urllib

Discussion in 'Python' started by Etienne Labuschagne, Oct 7, 2003.

  1. When using urllib's urlretrieve, I get an exception complaining that a DNS
    lookup failed. The name does however resolve when using ping and the
    internet browser.

    The name is also hard-coded in windows 2000's hosts file.

    Any suggestions?

    Thanks
    Etienne

    --
    Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
    Etienne Labuschagne, Oct 7, 2003
    #1
    1. Advertising

  2. Etienne Labuschagne

    John J. Lee Guest

    Etienne Labuschagne <> writes:

    > When using urllib's urlretrieve, I get an exception complaining that a
    > DNS lookup failed. The name does however resolve when using ping and
    > the internet browser.

    [...]

    Post the traceback.


    John
    John J. Lee, Oct 8, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. martin
    Replies:
    3
    Views:
    8,811
    viper
    Oct 29, 2008
  2. Jonathan Gardner

    Asynchronous urllib (urllib+asyncore)?

    Jonathan Gardner, Feb 26, 2008, in forum: Python
    Replies:
    1
    Views:
    462
    Terry Jones
    Feb 27, 2008
  3. Chris McDonald
    Replies:
    0
    Views:
    275
    Chris McDonald
    Nov 1, 2010
  4. Sam Roberts
    Replies:
    0
    Views:
    194
    Sam Roberts
    Mar 20, 2005
  5. gavino
    Replies:
    2
    Views:
    155
    Ted Zlatanov
    Jul 27, 2006
Loading...

Share This Page