Used in a Sentence

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.

Examples8
Definitions0
Parts of speech1

Quick take

The built-in sockets library in Python tells you which constants are already available, and has useful functions like gethostbyaddr.

Example sentences

1

The built-in sockets library in Python tells you which constants are already available, and has useful functions like gethostbyaddr.

2

However, gethostbyname() and gethostbyaddr() are still very commonly used, and won't be gone soon.

3

Does this mean if I have an app, Java, PHP or whatever, which eventually calls glibc's gethostbyname gethostbyaddr, my machine is owned?

4

If it affects gethostbyaddr that'd be really bad - there are a lot of applications that automatically look up reverse DNS on a connection.

5

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.

6

> gethostbyname Hmm: > The gethostbyname*(), gethostbyaddr*(), herror(), and hstrerror() functions are obsolete.

7

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

8

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