Public bug reported:

It appears as though only the first six DNS search domains are used.
However this only affects certain commands/functions. One example is
ping v's host. Ping will fail whereas host succeeds. PHP also exhibits
this behavior. This may suggest some underlying library issue (something
in libc6?).

Example /etc/resolv.conf:

nameserver 192.168.0.1
nameserver 192.168.0.2
search one.local two.local three.local four.local five.local six.local 
mycompany.local

In the above example "ping myserver.mycompany.local" fails with unknown
host. Whereas "host myserver.mycompany.local" succeeds. It was also
found that PHP also has issues when doing name resolution.

Changing the order of the search line in /etc/resolv.conf so that
mycompany.local is the sixth search entry (or less) resolves the issue:

nameserver 192.168.0.1
nameserver 192.168.0.2
search one.local two.local three.local four.local five.local mycompany.local 
six.local


This is not a localized issue or something wrong with the DNS infrastructure. 
We are using the same search domains and ordering on our Windows server and 
client machines. This bug has been reproduced on four other Ubuntu 14.04 LTS 
installs.

Additional information gathered from apport-bug against libc6 to assist:

== ApportVersion =================================
2.14.1-0ubuntu3.11

== Architecture =================================
amd64

== Date =================================
Mon Jun 15 10:22:04 2015

== Dependencies =================================
gcc-4.9-base 4.9.1-0ubuntu1
libc6 2.19-0ubuntu6.6
libgcc1 1:4.9.1-0ubuntu1
multiarch-support 2.19-0ubuntu6.6

== DistroRelease =================================
Ubuntu 14.04

== InstallationDate =================================
Installed on 2015-01-16 (149 days ago)

== InstallationMedia =================================
Ubuntu-Server 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.3)

== Package =================================
libc6 2.19-0ubuntu6.6

== PackageArchitecture =================================
amd64

== ProblemType =================================
Bug

== ProcEnviron =================================
LANGUAGE=en_GB:en
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_GB.UTF-8
SHELL=/bin/bash

== ProcVersionSignature =================================
Ubuntu 3.13.0-32.57-generic 3.13.11.4

== SourcePackage =================================
eglibc

== Tags =================================
 trusty

== Uname =================================
Linux 3.13.0-32-generic x86_64

== UpgradeStatus =================================
No upgrade log present (probably fresh install)

** Affects: ubuntu
     Importance: Undecided
         Status: New


** Tags: dns network

** Tags added: dns network

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1465220

Title:
  Only first six DNS search domains are used

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1465220/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to