Re: Resolution differences for getaddrinfo versus host/dig/delv

2015-11-19 Thread Phil Mayers
On 18/11/15 21:26, Stephane Bortzmeyer wrote: On Wed, Nov 18, 2015 at 12:19:57PM +, Phil Mayers wrote a message of 44 lines which said: I suspect getaddrinfo isn't parsing the DNS response for some reason. ... Obviously the *.thing on the RHS of the first CNAME is weird, but is it il

Re: Resolution differences for getaddrinfo versus host/dig/delv

2015-11-18 Thread Mark Andrews
Mark Andrews writes: > > Mark Andrews writes: > > > > And whomever added underscorechar() to that should be shot. There > > are good reasons to be able to distingish hostnames from other sorts > > of text. Adding '_' doesn't help one do that as it is impossible to > > distinguish underscor

Re: Resolution differences for getaddrinfo versus host/dig/delv

2015-11-18 Thread Mark Andrews
Mark Andrews writes: > > And whomever added underscorechar() to that should be shot. There > are good reasons to be able to distingish hostnames from other sorts > of text. Adding '_' doesn't help one do that as it is impossible to > distinguish underscored text from underscored hostnames

Re: Resolution differences for getaddrinfo versus host/dig/delv

2015-11-18 Thread Mark Andrews
And whomever added underscorechar() to that should be shot. There are good reasons to be able to distingish hostnames from other sorts of text. Adding '_' doesn't help one do that as it is impossible to distinguish underscored text from underscored hostnames. This_is

Re: Resolution differences for getaddrinfo versus host/dig/delv

2015-11-18 Thread Stephane Bortzmeyer
On Wed, Nov 18, 2015 at 12:19:57PM +, Phil Mayers wrote a message of 44 lines which said: > I suspect getaddrinfo isn't parsing the DNS response for some reason. ... > Obviously the *.thing on the RHS of the first CNAME is weird, but is it > illegal? Yes, for a *host* name (no for a *doma

Re: Resolution differences for getaddrinfo versus host/dig/delv

2015-11-18 Thread Mark Andrews
In message <564c6ced.6060...@imperial.ac.uk>, Phil Mayers writes: > All, > > This isn't strictly a "bind" question, but it kind-of, sort-of is. > > We've got an Office 365 tenancy, along with offsite voicemail. We send > our SIP connections to a hostname: > > $GUID.um.outlook.com > > This hos

Re: Resolution differences for getaddrinfo versus host/dig/delv

2015-11-18 Thread Tony Finch
Phil Mayers wrote: > > This hostname is resolvable using "dig" & "host", but on Linux (glibc 2.20) > the "ping", "telnet" and "nc" commands return "unknown host" or equivalent. `ping` fails for me on FreeBSD but not MacOS. > I suspect getaddrinfo isn't parsing the DNS response for some reason.

Resolution differences for getaddrinfo versus host/dig/delv

2015-11-18 Thread Phil Mayers
All, This isn't strictly a "bind" question, but it kind-of, sort-of is. We've got an Office 365 tenancy, along with offsite voicemail. We send our SIP connections to a hostname: $GUID.um.outlook.com This hostname is resolvable using "dig" & "host", but on Linux (glibc 2.20) the "ping", "tel