curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: Handling of wildcards in CNAME records

From: Kamil Dudka via curl-users <curl-users_at_cool.haxx.se>
Date: Thu, 03 Aug 2017 09:36:09 +0200

On Wednesday, August 02, 2017 18:13:00 Ray Van Dolson via curl-users wrote:
> Trying:
>
> $ curl -I http://master-stage.developers.arcgis.com
>
> But getting
>
> curl: (6) Could not resolve host: master-stage.developers.arcgis.com; Name
> or service not known"
>
> This is w/ curl 7.29.0 on RHEL7.
>
> DNS record is a bit odd:
>
> master-stage.developers.arcgis.com. CNAME *.developers.ago.esri.com.
>
> [ The wildcard record resolves to an RFC1918 IP address via internal DNS
> servers so won't work on the Internet -- yes, I'm doing this from
> somewhere where it will work :-) ]
>
> dig handles fine but curl and other CLI tools don't seem to work. I
> suspect maybe this is something my version of glibc's stub resolver
> doesn't handle well, because curl on my OSX machine (curl 7.43.0 linked
> against whatever Mac uses for its stub resolver) handles the above
> without complaint.
>
> On my RHEL7 machine other glibc linked tools like ping and wget also
> don't like this DNS name.

Then it could hardly be fixed in curl. You need to get this working
at the level of system name resolver. You can try changing its
configuration in /etc/nsswitch.conf and /etc/resolv.conf .

Kamil

> Any ideas?
>
> Ray
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-08-03