[issue26236] urllib2 initiate irregular call to gethostbyaddr

2021-06-18 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43324] asyncio: add socket getfqdn and gethostbyaddr functions

2021-02-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +asvetlov, yselivanov title: asyncio -> asyncio: add socket getfqdn and gethostbyaddr functions ___ Python tracker <https://bugs.python.org/issu

Re: getfqdn passes a hostname to gethostbyaddr instead of an ip address

2018-09-12 Thread Thomas Jollans
On 12/09/18 16:29, Florian Bergmann wrote: On the other hand I feel given the documentation, passing the `ip_address` would be the right thing to do, so I am wondering if I am missing something very obvious here (especially given that the code seems to be unchanged for 18 years). Whatever the

Re: getfqdn passes a hostname to gethostbyaddr instead of an ip address

2018-09-12 Thread Rhodri James
On 12/09/18 15:29, Florian Bergmann wrote: Hello, While I was debugging some salt issues I dug into the python code and found a piece of code in the `socket.py` module that surprised my a bit: In the `getfqdn` function the `gethostbyaddr` name function is being called with a `hostname` instead

getfqdn passes a hostname to gethostbyaddr instead of an ip address

2018-09-12 Thread Florian Bergmann
Hello, While I was debugging some salt issues I dug into the python code and found a piece of code in the `socket.py` module that surprised my a bit: In the `getfqdn` function the `gethostbyaddr` name function is being called with a `hostname` instead of an `ipaddress`: ```python def getfqdn

[issue28431] socket gethostbyaddr returns IPv6 names for 127.0.0.1

2016-10-13 Thread R. David Murray
R. David Murray added the comment: I believe that you will find that the same thing happens if you call gethostbyaddr from C. So this either isn't a bug, or it isn't a bug in Python :) (Correct me if I'm wrong; I don't have time to actually test it myself, but gethostbyaddr is a fairly

[issue28431] socket gethostbyaddr returns IPv6 names for 127.0.0.1

2016-10-13 Thread Nick Carboni
alhost6.localdomain6 result: >>> import socket >>> socket.gethostbyaddr("127.0.0.1") ('localhost', ['localhost.localdomain', 'localhost4', 'localhost4.localdomain4'], ['127.0.0.1']) I would expect gethostbyaddr to return only the hostnames associated with the given address

[issue26236] urllib2 initiate irregular call to gethostbyaddr

2016-01-28 Thread Julia Dolgova
(HostName) called by urllib2.ProxyHandler.proxy_open HostName='pykasso.rc-online.ru' "nslookup pykasso.rc-online.ru" works quickly in my computer I suppose the problem is that the hostname is passed into gethostbyaddr instead of IP If I add an IP-verification of the string before sock

gethostbyaddr()

2014-07-28 Thread Edward Manning
I wrote this code, but it seem to work fine if I only have one ip in the file. When I have more than one IP in the file I get a error. Does anyone have an idea why. import socket def main(): # get file names infileName = input (What file our the IP adderss in? )

Re: gethostbyaddr()

2014-07-28 Thread Chris Kaynor
On Mon, Jul 28, 2014 at 2:33 PM, Edward Manning ejmmann...@gmail.com wrote: I wrote this code, but it seem to work fine if I only have one ip in the file. When I have more than one IP in the file I get a error. Does anyone have an idea why. It would be helpful to know what the error you are

Re: gethostbyaddr()

2014-07-28 Thread Edward Manning
Chris Thank you for the info. I figure it out. But thank you again. Ed On Jul 28, 2014, at 5:42 PM, Chris Kaynor ckay...@zindagigames.com wrote: On Mon, Jul 28, 2014 at 2:33 PM, Edward Manning ejmmann...@gmail.com wrote: I wrote this code, but it seem to work fine if I only have one ip

[issue14622] Python http.server is dead slow using gethostbyaddr/getfqdn for each request

2012-04-22 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset fe66fb61f199 by Vinay Sajip in branch 'default': Issue #14622: Increased default timeout for SMTPHandler. http://hg.python.org/cpython/rev/fe66fb61f199 -- nosy: +python-dev

[issue14622] Python http.server is dead slow using gethostbyaddr/getfqdn for each request

2012-04-22 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- Removed message: http://bugs.python.org/msg158973 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14622 ___

[issue14622] Python http.server is dead slow using gethostbyaddr/getfqdn for each request

2012-04-19 Thread Yuval Greenfield
) messages: 158737 nosy: ubershmekel priority: normal severity: normal status: open title: Python http.server is dead slow using gethostbyaddr/getfqdn for each request versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14622

[issue14622] Python http.server is dead slow using gethostbyaddr/getfqdn for each request

2012-04-19 Thread Yuval Greenfield
Changes by Yuval Greenfield ubershme...@gmail.com: -- type: - performance ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14622 ___ ___

[issue14622] Python http.server is dead slow using gethostbyaddr/getfqdn for each request

2012-04-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Probably a duplicate of issue 6085. -- nosy: +pitrou resolution: - duplicate status: open - closed superseder: - Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag ___ Python tracker

[issue583975] gethostbyaddr lag

2011-11-06 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue583975 ___ ___ Python-bugs-list

[issue2129] Link error of gethostbyaddr and gethostname in Python Manuals (the chm file)

2008-05-11 Thread Georg Brandl
Changes by Georg Brandl [EMAIL PROTECTED]: -- status: pending - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2129 __ ___ Python-bugs-list mailing list

[issue2129] Link error of gethostbyaddr and gethostname in Python Manuals (the chm file)

2008-03-28 Thread Georg Brandl
Changes by Georg Brandl [EMAIL PROTECTED]: -- status: open - pending __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2129 __ ___ Python-bugs-list mailing list

[issue2129] Link error of gethostbyaddr and gethostname in Python Manuals (the chm file)

2008-02-21 Thread Martin v. Löwis
Martin v. Löwis added the comment: That's difficult to fix. Notice that this page does reference gethostbyaddr (in the uname documentation), and that the online HTML version links to both the socket and the os modules. Apparently, the CHM generation picks up the first link. -- nosy

[issue2129] Link error of gethostbyaddr and gethostname in Python Manuals (the chm file)

2008-02-21 Thread Georg Brandl
Georg Brandl added the comment: I think you get two links in the CHM generated by Sphinx. Can somebody with a working HTML Help Compiler check that? -- assignee: - georg.brandl nosy: +georg.brandl __ Tracker [EMAIL PROTECTED]

Re: problem with gethostbyaddr with intranet addresses on MAC

2008-01-28 Thread Sion Arrowsmith
shailesh [EMAIL PROTECTED] wrote: Python 2.4.4 (#1, Oct 18 2006, 10:34:39) [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin Type help, copyright, credits or license for more information. from socket import * x = gethostbyname('google.com') x '64.233.167.99' gethostbyaddr(x) ('py-in-f99

problem with gethostbyaddr with intranet addresses on MAC

2008-01-25 Thread shailesh
, credits or license for more information. from socket import * x = gethostbyname('google.com') x '64.233.167.99' gethostbyaddr(x) ('py-in-f99.google.com', [], ['64.233.167.99']) e = '192.168.4.123' gethostbyaddr(e) Traceback (most recent call last): File stdin, line 1, in ? socket.herror: (1

Re: problem with gethostbyaddr with intranet addresses on MAC

2008-01-25 Thread Vladimir Rusinov
, Inc. build 5341)] on darwin Type help, copyright, credits or license for more information. from socket import * x = gethostbyname('google.com') x '64.233.167.99' gethostbyaddr(x) ('py-in-f99.google.com', [], ['64.233.167.99']) e = '192.168.4.123' gethostbyaddr(e) Traceback (most

[ python-Bugs-583975 ] gethostbyaddr lag

2006-12-28 Thread SourceForge.net
, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: None Status: Closed Resolution: Works For Me Priority: 5 Private: No Submitted By: Jason R. Mastaler (jasonrm) Assigned to: Nobody/Anonymous (nobody) Summary: gethostbyaddr lag

[ python-Bugs-583975 ] gethostbyaddr lag

2006-12-22 Thread SourceForge.net
thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Jason R. Mastaler (jasonrm) Assigned to: Nobody/Anonymous (nobody) Summary: gethostbyaddr lag Initial