Short Names and search Domains
/etc/resolv.conf has search corp.example and options ndots:5. Why does curl https://api.github.com make several failed DNS queries first?
/etc/resolv.conf
search corp.example
options ndots:5
curl https://api.github.com
Choose one answer
ndots:5 limits names to five labels.
ndots:5
With under 5 dots, the search domain is tried first.
search domains are always tried after the absolute name.
search
curl doesn't support DNS search domains, so it retries every query several times.