Regardless of ndots option in /etc/resolv.conf, when NXDOMAIN is returned from the DNS server then resolver always try another attempt with the original name extended by what is in search option.
For example, if you're looking for very.long.url.nowhere and there is a line "search ubuntu.com" in resolv.conf (or no such line at all, which gives out "search mydomain.tld" by default) you will get addres of server very.long.url.nowhere.ubuntu.com if such exists. It is incorrect, it should occurs only for urls having less that ndots option dots in its name.
Regardless of ndots option in /etc/resolv.conf, when NXDOMAIN is returned from the DNS server then resolver always try another attempt with the original name extended by what is in search option. url.nowhere and there is a line "search ubuntu.com" in resolv.conf (or no such line at all, which gives out "search mydomain.tld" by default) you will get addres of server very.long. url.nowhere. ubuntu. com if such exists. It is incorrect, it should occurs only for urls having less that ndots option dots in its name.
For example, if you're looking for very.long.
First mentioned there https:/ /bugs.launchpad .net/ubuntu/ +source/ linux/+ bug/401202 but still not fixed.
lsb_release:
Description: Ubuntu 14.04.2 LTS
Release: 14.04