[Samba] How to switch from internal DNS to Bind

James lingpanda101 at gmail.com
Thu Dec 31 17:59:05 UTC 2015


On 12/31/2015 11:01 AM, Reindl Harald wrote:
>
>
> Am 31.12.2015 um 16:51 schrieb James:
>> I forgot, I do not want to update the distro at the moment. My
>> production is currently on 12.04. Want to keep things symmetrical. I'm
>> going to compile and build bind again.
>>
>> mount | grep /run
>> tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
>> none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
>> none on /run/shm type tmpfs (rw,nosuid,nodev)
>
> so it's like on every recent distribution not persistent
> https://www.google.at/#q=ubuntu+12.04+/var/run
>
> http://askubuntu.com/questions/303120/how-folders-created-in-var-run-on-each-reboot 
>
>
>
>
It appears I'm running into issues with the actual switch to bind.

loading configuration from '/etc/bind/named.conf'
Dec 31 12:48:49 VMDC1 named[918]: 
/usr/local/samba/private/named.conf.update:2: unknown option 'update-policy'
Dec 31 12:48:49 VMDC1 named[918]: /etc/bind/named.conf:54: unknown 
option 'tkey-gssapi-keytab'
Dec 31 12:48:49 VMDC1 named[918]: loading configuration: failure

The wiki says

During provisioning/upgrading, a file 
('/usr/local/samba/private/named.conf') was created, this must be 
included in your BIND named.conf:

include "/usr/local/samba/private/named.conf";


Mine actually is labeled 'named.conf.update'. Should I rename? I also 
added per the wiki

tkey-gssapi-keytab "/usr/local/samba/private/dns.keytab";

cat /etc/bind/named.conf
# /etc/bind/named.conf
# Global BIND configuration options
include "/usr/local/samba/private/named.conf.update";

options {
     auth-nxdomain yes;
     directory "/var/named";
     notify no;
     empty-zones-enable no;

     allow-query {
         127.0.0.1;
         192.168.1.0/24;
         # add other networks you want to allow to query your DNS
     };

     allow-recursion {
         192.168.1.0/24;
         # add other networks you want to allow to do recursive queries
     };

     forwarders {
         # Google public DNS server here - replace with your own if necessary
         8.8.8.8;
         8.8.4.4;
     };

     allow-transfer {
         # this config is for a single master DNS server
         none;
     };

};


# Root servers (required zone for recursive queries)
zone "." {
    type hint;
    file "named.root";
};

# Required localhost forward-/reverse zones
zone "localhost" {
     type master;
     file "master/localhost.zone";
};

zone "0.0.127.in-addr.arpa" {
     type master;
     file "master/0.0.127.zone";

};

tkey-gssapi-keytab "/usr/local/samba/private/dns.keytab";

};

};





-- 
-James



More information about the samba mailing list