DNS lookups not working with freetds
Peter Deacon <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <alpine.WNT.2.20.1.1604261622150.2020@SMURF> |
Tried current freetds and name lookups are not working at all with some older Linux systems for me. Everything that isn't an IP address returns -2 (EAI_NONAME) The problem is triggered by setting ai_flags = AI_ADDRCONFIG in hints field of getaddrinfo and resolved by setting ai_flags = 0. From what I've read in various man pages for getaddrinfo when set to 0 defaults are designed to be reasonable usually including AI_ADDRCONFIG anyway. Would switching to default for ai_flags break anything for anyone? thanks, ~Peter