Chapter 12. Interfacing DNS in Programs

Using DNS and Name lookups is really a network programming topic. However, even though this is not a network programming book, I will scratch the surface in this chapter to provide a starting point from which you can further pursue this.

Different programming languages have different interfaces for resolving hostnames. On UNIX, most have at least a binding to the standard UNIX resolver, which is usually contained in libc. As described in Chapter 2, "DNS in Practice," the UNIX resolver can use multiple services to attempt hostname resolution. Therefore, because it's not strictly using DNS, it is not DNS resolving. In most cases, though, this is still what you want, and the API will work even without the ...

Get Concise Guide to DNS and BIND, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.