The built-in sockets library in Python tells you which constants are already available, and has useful functions like gethostbyaddr.
gethostbyaddr
How to use gethostbyaddr in a sentence. Live example sentences for gethostbyaddr pulled from indexed public discussions.
Editorial note
The built-in sockets library in Python tells you which constants are already available, and has useful functions like gethostbyaddr.
Quick take
The built-in sockets library in Python tells you which constants are already available, and has useful functions like gethostbyaddr.
Example sentences
However, gethostbyname() and gethostbyaddr() are still very commonly used, and won't be gone soon.
Does this mean if I have an app, Java, PHP or whatever, which eventually calls glibc's gethostbyname gethostbyaddr, my machine is owned?
If it affects gethostbyaddr that'd be really bad - there are a lot of applications that automatically look up reverse DNS on a connection.
For majority of applications, supporting IPv6 boils down to using getaddrinfo()/getnameinfo() instead of gethostbyname()/gethostbyaddr(), which results in code that supports both IPv4 and IPv6 and is simpler than the IPv4-only original.
> gethostbyname Hmm: > The gethostbyname*(), gethostbyaddr*(), herror(), and hstrerror() functions are obsolete.
If you want to exploit something that does unauthenticated gethostbyaddr(), then yes, for that you need to control a DNS server (which, btw, isn't harder than controlling a web server to serve malware with).
`connect`, `gethostbyname`, `gethostbyaddr`, etc.
Frequently asked questions
Short answers drawn from the clearest meanings and examples for this word.
How do you use gethostbyaddr in a sentence?
The built-in sockets library in Python tells you which constants are already available, and has useful functions like gethostbyaddr.