[Samba] Ubuntu client ddns failure

Rowland Penny rowlandpenny at googlemail.com
Wed May 21 03:21:03 MDT 2014

On 21/05/14 09:59, L.P.H. van Belle wrote:
>>> Btw - users sometimes think "more is better" and often place both...
> ... wel i didn't "think"..  i did read and as man resolv.conf also says the following.
> domain =  Local domain name.
>         Most queries for names within this domain can use short names relative to the local domain.
>         If no domain entry is present, the domain is determined from the  local  hostname  returned  by
>         gethostname(2); the domain part is taken to be everything after the first '.'.
>         Finally, if the hostname does not contain a domain part, the root domain is assumed.
> search Search list for host-name lookup.
> but to make it stranger...
> al hostname ( -s -f -d ) are correct, steve checked.
> i tested also like steve did, and with dig i get the same responce.
> dig hostname    responce from root dns servers.
> dig hostname.domain.tld responce from root servers.
Hi Louis, yes my laptop works just like that, dig hostname, reply comes 
from 'a.root-servers.net.'
dig FQDN, reply comes from my bind9 dns server

> Kerberos: TGS-REQ LUBUNTU-LAPTOP$@HH3.SITE from ipv4:
> for ldap/hh16.local at HH3.SITE [canonicalize, renewable]
> Kerberos: Searching referral for hh16.local
> Kerberos: Returning a referral to realm LOCAL for server
> Is network-manager installed then this applies. ( dpkg -l | grep network-manager )
> for network interfaces configured by DHCP it normally isn't necessary to change any settings manually. Normally what happens is that the (remote) DHCP server provides to NetworkManager both an IP address for the local interface and the address of a (remote) DNS nameserver to use. NetworkManager starts an instance of a forwarding nameserver that listens locally at This address,, is sent to resolvconf which puts nameserver in /etc/resolv.conf. NetworkManager also gives the (remote) IP address of the DHCP-provided DNS nameserver to the forwarding nameserver. Thus a program running on the local system asks the resolver to translate a host name into an IP address; the resolver queries the local forwarding nameserver at; the forwarding nameserver queries the remote nameserver(s) it has been told about, receives an answer and sends it back up the chain.

I never get in /etc/resolv.conf and I have both NetworkManager 
& resolvconf installed.

> NetworkManager communicates with the forwarding nameserver process over D-Bus. You can see what NetworkManager told the forwarding nameserver by running the command nmcli dev list iface eth0 | grep ip_from_dns
> so compair
> /run/resolvconf/resolv.conf
> and
> /etc/resolv.conf
They match on my laptop

> if different, then run
> sudo dpkg-reconfigure resolvconf or sudo ln -sf ../run/resolvconf/resolv.conf /etc/resolv.conf.
> and if network-manager is installed the DNSMasq is used, you need to disable dnsmasq also.
> edit /etc/NetworkManager/NetworkManager.conf
> put # in front of ?dns=dnsmasq?
> restart network-manager
NetworkManager is setup to use dnsmasq to make Openvpn work 
better/easier (or so I believe) even if you do not have Openvpn 
installed, if you need to use another dns server, it just gets in the 
way, so totally agree with turning it off.

> Hope this helps out.
> I would start by checking networkmanager config.
I already advised Steve to do this.


> Greetz,
> Louis
>> -----Oorspronkelijk bericht-----
>> Van: linux at kukkukk.com [mailto:samba-bounces at lists.samba.org]
>> Namens Günter Kukkukk
>> Verzonden: woensdag 21 mei 2014 6:16
>> Aan: steve; samba at lists.samba.org
>> Onderwerp: Re: [Samba] Ubuntu client ddns failure
>> Am 20.05.2014 16:18, schrieb steve:
>>> On 20/05/14 15:52, L.P.H. van Belle wrote:
>>>> not like this.
>>>>>    localhost
>>>>>    lubuntu-laptop.hh3.site    lubuntu-laptop
>>>> This is simply wrong, and cause by dhcp client at install.
>>>> better...
>>>>    localhost
>>>> lubuntu-laptop.hh3.site    lubuntu-laptop
>>>> for dedicated IP.
>>>> Do you use resolvconf ( the packages, default is its used )
>> if so configure it.
>>>> or configure /etc/network/interfaces  and add the
>> dns-nameserver dns-search dns-domain.
>>>> when dns-  is used resolvconf adds the info in /etc/resolv.conf
>>> Hi
>>> We can't use fixed IP. It's a laptop.
>>> But tried it anyway and the error is the same. It's still
>> looking for:
>>> DNS/a.root-servers.net at HH3.SITE: no such entry found in hdb
>>> /etc/resolv.conf
>>> nameserver
>>> nameserver
>>> search hh3.site dragonet.es
>>> exactly as on our (working) openSUSE boxes, also with dhcp.
>> Hi Steve,
>> sorry, i've not followed the whole thread - and dhcp is
>> sometimes a bit tricky.
>> Just some notes when you use the "dig" tool from ISC - which
>> is very powerful,
>> but also has lots of options.
>> In your /etc/resolv.conf beside others you use:
>> ....
>> search hh3.site dragonet.es
>> ....
>> By default, dig does *not* use that search line from
>> /etc/resolv.conf, but you can
>> tell it to do so (when you want to only use the hostname for
>> the query):
>> dig +search lubuntu-laptop
>> Btw - users sometimes think "more is better" and often place both
>> ...
>> domain my.domain.org
>> search my.domain.org
>> ....
>> into /etc/resolv.conf
>> but "man resolv.conf" clearly states:
>> "The  domain  and search keywords are mutually exclusive.
>>   If more than one instance of these keywords is present, the
>> last instance wins."
>> Cheers, Günter
>> -- 
>> -- 
>> To unsubscribe from this list go to the following URL and read the
>> instructions:  https://lists.samba.org/mailman/options/samba

More information about the samba mailing list