Web lists-archives.com

Re: [Samba] Samba4 on Ubuntu 18.04 Howto setup ADDC with bind9_DLZ (extra part 4.8.1 samba)




So, I'm curious about the contrast between modifying netplan vs simply disabling systemd.resolved

Is there some advantage to the gyrations to make netplan work, vs simply disabling resolved and manually defining the IP and DNS server?
[I'm not complaining, I'm thankful for all the options - just wanting to have the best handle possible on the reasoning behind one method vs the other.]

Thanks Louis!

-Greg

LPHvBvs> Hai, 

LPHvBvs> I detected a minor error and i added a quick fix. 
LPHvBvs> And i'm testing my 4.8.1 debian package on ubuntu 18.04, see below.. 

LPHvBvs> Syslog shows.
LPHvBvs> May  9 14:50:26 ubuntu1804 systemd[9448]:
LPHvBvs> /lib/systemd/system-generators/netplan failed with exit status 1.
LPHvBvs> The fix is:  editor /etc/netplan/01-netcfg.yaml
LPHvBvs> The last adresses: needs a server adres. 

LPHvBvs> cat /etc/netplan/01-netcfg.yaml
LPHvBvs> # This file describes the network interfaces available on your system
LPHvBvs> # For more information, see netplan(5).
LPHvBvs> network:
LPHvBvs>   version: 2
LPHvBvs>   renderer: networkd
LPHvBvs>   ethernets:
LPHvBvs>     eth0:
LPHvBvs>       addresses: [ 192.168.249.31/24 ]
LPHvBvs>       gateway4: 192.168.249.1
LPHvBvs>       nameservers:
LPHvBvs>           search: [ internal.example.com ]
LPHvBvs>           addresses: 

LPHvBvs> The corrected version is :
LPHvBvs> cat /etc/netplan/01-netcfg.yaml
LPHvBvs> # This file describes the network interfaces available on your system
LPHvBvs> # For more information, see netplan(5).
LPHvBvs> network:
LPHvBvs>   version: 2
LPHvBvs>   renderer: networkd
LPHvBvs>   ethernets:
LPHvBvs>     eth0:
LPHvBvs>       addresses: [ 192.168.249.31/24 ]
LPHvBvs>       gateway4: 192.168.249.1
LPHvBvs>       nameservers:
LPHvBvs>           search: [ internal.example.com ]
LPHvBvs>           addresses: [ 192.168.249.31 ]         <<<< IP OF THE AD-DC. 

LPHvBvs> When this is set run the following.
LPHvBvs> netplan --debug generate

LPHvBvs> Reboot and check you logs again. 

[...SNIP...]
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba