Re: 2.6.7: Does socket.gethostbyaddr truncate?

2018-02-04 Thread Chris Angelico
On Tue, Jan 30, 2018 at 11:05 PM, Antoon Pardon wrote: > I am using python 2.6.7 to do a little network programming, but it seems I > don't > get all the results. > > When I call socket.gethostbyaddr(IP) entry [1] of the result is a list of 34 > addresses. > > However when I use: dig -x IP I get

Re: 2.6.7: Does socket.gethostbyaddr truncate?

2018-02-04 Thread Emil Natan
On Sat, Feb 3, 2018 at 1:11 PM, Peter J. Holzer wrote: > On 2018-01-30 08:56:16 -0800, Dan Stromberg wrote: > > dig -x should return a single PTR in all cases, shouldn't it? > > No. dig -x should return *all* PTR records. There is usually at most one > of them, but there may be several. (46 seems

Re: 2.6.7: Does socket.gethostbyaddr truncate?

2018-02-03 Thread Peter J. Holzer
On 2018-01-30 08:56:16 -0800, Dan Stromberg wrote: > dig -x should return a single PTR in all cases, shouldn't it? No. dig -x should return *all* PTR records. There is usually at most one of them, but there may be several. (46 seems a bit much, but there really isn't any limit). > What IP are you

Re: 2.6.7: Does socket.gethostbyaddr truncate?

2018-01-30 Thread Dan Stromberg
dig -x should return a single PTR in all cases, shouldn't it? What IP are you using? 2.6 is very old. You probably should move to at Least 2.7, and plan a move to 3.x. On Tue, Jan 30, 2018 at 4:05 AM, Antoon Pardon wrote: > I am using python 2.6.7 to do a little network programming, but it see