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. Advertisements

  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. Advertisements

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:
    11,329
    viper
    Oct 29, 2008
  2. =?Utf-8?B?RGFuIE5hc2g=?=

    reverse DNS lookup

    =?Utf-8?B?RGFuIE5hc2g=?=, Oct 14, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    569
    =?Utf-8?B?RGFuIE5hc2g=?=
    Oct 14, 2004
  3. David
    Replies:
    1
    Views:
    930
    Darryl L. Pierce
    Jun 25, 2004
  4. Madhur Ahuja
    Replies:
    1
    Views:
    982
    Paul Lutus
    Aug 29, 2004
  5. Jonathan Gardner

    Asynchronous urllib (urllib+asyncore)?

    Jonathan Gardner, Feb 26, 2008, in forum: Python
    Replies:
    1
    Views:
    697
    Terry Jones
    Feb 27, 2008
  6. Chris McDonald
    Replies:
    0
    Views:
    494
    Chris McDonald
    Nov 1, 2010
  7. Sam Roberts
    Replies:
    0
    Views:
    400
    Sam Roberts
    Mar 20, 2005
  8. gavino
    Replies:
    2
    Views:
    331
    Ted Zlatanov
    Jul 27, 2006
Loading...