[Samba] Problem with DNS configuration and "host" command . . .

Steve Ankeny steve_a at cinergymetro.net
Thu Nov 5 16:21:53 UTC 2015

I'm following the instructions here --


I've successfully "tested" my domain controller --

adam at eagle:~$ smbclient -L localhost -U%
Domain=[SMBDOMAIN] OS=[Unix] Server=[Samba 4.1.18-Debian]

         Sharename       Type      Comment
         ---------       ----      -------
         netlogon        Disk
         sysvol          Disk
         IPC$            IPC       IPC Service (Samba 4.1.18-Debian)
Domain=[SMBDOMAIN] OS=[Unix] Server=[Samba 4.1.18-Debian]

         Server               Comment
         ---------            -------

         Workgroup            Master
         ---------            -------
         WORKGROUP            EAGLE
adam at eagle:~$

adam at eagle:~$ smbclient //localhost/netlogon -UAdministrator -c 'ls'
Enter Administrator's password:
Domain=[SMBDOMAIN] OS=[Unix] Server=[Samba 4.1.18-Debian]
   .                                   D        0  Wed Nov  4 11:51:37 2015
   ..                                  D        0  Wed Nov  4 11:51:43 2015

                 49698 blocks of size 2097152. 46051 blocks available
adam at eagle:~$

*It's when I get to the "host" command that it fails* --

adam at eagle:~$ host -t SRV _ldap._tcp.eagle.smbdomain.com.
Host _ldap._tcp.eagle.smbdomain.com. not found: 3(NXDOMAIN)
adam at eagle:~$

Ubuntu "suggests" configuring a static ip in '/etc/network/interfaces' 
(instead of 'resolv.conf') --

adam at eagle:~$ cat /etc/network/interfaces

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
         dns-search smbdomain.com
adam at eagle:~$

Here's my 'smb.conf' (as provisioned, no edits) --

adam at eagle:~$ cat /etc/samba/smb.conf
# Global parameters
         workgroup = SMBDOMAIN
         realm = SMBDOMAIN.COM
         netbios name = EAGLE
         server role = active directory domain controller
         dns forwarder =
         idmap_ldb:use rfc2307 = yes

         path = /var/lib/samba/sysvol/smbdomain.com/scripts
         read only = No

         path = /var/lib/samba/sysvol
         read only = No
adam at eagle:~$

Any suggestions?  Thanks.

More information about the samba mailing list