[Samba] Samba_internal dns Ubuntu 14.04.1LTS

Rowland Penny rowlandpenny at googlemail.com
Fri Nov 7 06:50:17 MST 2014


On 07/11/14 13:25, Donelson Trophy wrote:
>   
>
> I am having problems getting dns to function correctly with Ubuntu
> 14.04LTS.
>
> My /etc/hosts file is:
>
> 127.0.0.1 localhost
>
> # Need to keep 127.0.1.1 entry or DNS fails
> 127.0.1.1 mysrvr03.mycomapny.biz wdnsrvr03
> 192.168.16.208 mysrvr03.mycompany.biz wdnsrvr03
Why do you need 127.0.1.1 ? have turned dnsmasq off ?

>
> # The following lines are desirable for IPv6 capable hosts
> ::1 localhost ip6-localhost ip6-loopback
> ff02::1 ip6-allnodes
> ff02::2 ip6-allrouters
>
> My /etc/network/interface is:
>
> # This file describes the network interfaces available on your system
> # and how to activate them. For more information, see interfaces(5).
>
> # The loopback network interface
> auto lo
> iface lo inet loopback
>
> # The primary network interface
> auto eth0
> iface eth0 inet static
>   address 192.168.16.208
>   netmask 255.255.255.0
>   network 192.168.16.0
>   broadcast 192.168.16.255
>   gateway 192.168.16.106
>   dns-nameservers 192.168.16.106 208.67.222.222

The dns-nameserver line shouldn't be there, your dns nameserver is 
127.0.0.1 or 192.168.0.208 i.e itself, your put the forwarder in smb.conf.

> # dns-nameservers 192.168.16.208
> # dns-nameservers 208.67.222.222
> # dns-search mycompany.biz
>
> My /etc/samba/smb.conf is:
>
> # Global parameters
> [global]
>   workgroup = MYCOMPANY
>   realm = MYCOMPANY.BIZ
>   netbios name = MYSRVR03
>   server role = active directory domain controller
> # dns forwarder = 192.168.16.208
>   dns forwarder = 208.67.222.222
> # dns forwarder = 192.168.16.106
>   idmap_ldb:use rfc2307 = yes
>   allow dns updates = nonsecure and secure
>
>   # from blogging.dragon.org.uk
>   # stops the syslog being spammed by lack of a CUPS server
>   printing = CUPS
>   printcap name = /dev/null
>
>   idmap_ldb:use rfc2307 = yes
remove the idmap lines below and the winbind line.
>   idmap config MYCOMPANY:backend = ad
>   idmap config MYCOMPANY:schema_mode = rfc2307
>   idmap config MYCOMPANY:range = 10000-29999
>   idmap config *:backend = tdb
>   # this range must not overlap the MYCOMPANY:range above
>   idmap config *:range = 50000-60000
>
>   # Use home directory and shell information from AD
>   winbind nss info = rfc2307
>
> [netlogon]
>   path = /var/lib/samba/sysvol/mycompany.biz/scripts
>   read only = No
>
> [sysvol]
>   path = /var/lib/samba/sysvol
>   read only = No
>
> [Users]
>   path = /Shares/DTUsers
>   comment = domain users folders 4 re-direction
>   read only = No
>
> [Profiles]
>   path = /Shares/Profiles
>   comment = domain users profiles
>   read only = No
>
> [Media]
>   path = /Shares/Media
>   comment = music, video, etc.
>   read only = No
>
> [Software]
>   path = /Shares/Software
>   comment = software installation files
>   read only = No
>
> Okay, so notice the various "comment out" entries. I keep reading and
> trying to 'get my head' around the various combinations. It seems many
> tutorials (on Internet) keep contradicting themselves. One author did
> his/hers this way, that author did his/hers that way, etc.
>
> When using Ubuntu 14.04 as the Samba4 ADDC what is the correct settings?
>
Install debian 7.5 and samba from backports :-D

Rowland

> Suggestions?
>



More information about the samba mailing list