networking - Ubuntu Server 16.04 name resolution does not work after joining a Windows domain - Ask Ubuntu
i want use atlassian confluence ubuntu 16.04 server (64 bit), configured terminal in windows rich client environment. set server, ssh, postgresql, confluence , join machine windows active directory , windows controlled domain of sssd
, realmd
.
the thing missing name resolution windows machines, want set also, because want windows users not need use confluence ui ip address of ubuntu vm, instead use hostname of that.
oh, , virtual machine on vmware esxi 5.5 host company network. ping working in both directions: ubuntu vm windows machines , back. have set static ip address, maybe wrong (please see config below). ufw daemon on ubuntu server vm running, ufw
reports inactive status.
on ubuntu server have run sudo apt update
, sudo apt-get upgrade
. vm restarted several times.
in firm have qnap nas (linux based). in configuration ui of box, set (there few parameters) join box same domain network. , hostname name resolution working flawlessly , instantly.
the active directory windows server 2008 r2 sp1 64 bit , configured being dns too.
after have read several forum posts , tutorials, did 2 ways, neither resulted working machine name resolution (i have replaced real ip , name values):
after:
sudo apt install realmd sssd sssd-tools samba-common krb5-user packagekit samba-common-bin samba-libs adcli ntp
and setting npt.conf
sudo service ntp restart
1.
sudo kinit adminuser_from_win_domain sudo realm join win.domain --verbose --user-principal=ubuntu_hostname/adminuser_from_win_domain@win.domain --unattended
2.
sudo kinit adminuser_from_win_domain sudo realm join win.domain --verbose --user-principal=ubuntu_hostname/adminuser_from_win_domain@win.domain --unattended --client-software=sssd --server-software=active-directory --membership-software=adcli sudo adcli delete-computer --verbose --domain=win.domain --domain-realm=win.domain --domain-controller=192.168.0.12 --login-user=adminuser_from_win_domain sudo adcli join --verbose --domain=win.domain --domain-realm=win.domain --domain-controller=192.168.0.12 --fqdn=ubuntu_hostname.win.domain --user-principal=adminuser_from_win_domain@win.domain --login-type=user --login-user=adminuser_from_win_domain sudo systemctl restart sssd.service
with both steps klist , realm list working. ubuntu hostname appearing in active directory ou.
and here comes config files have set up:
/etc/network/interfaces
# primary network interface auto abc123 iface abc123 inet static address 192.168.0.88 netmask 255.255.0.0 network 192.168.0.0 #i'm not sure if correct or needed @ broadcast 192.168.0.255 #i'm not sure if correct or needed @ gateway 192.168.0.1 dns-nameservers 192.168.0.12 11.22.33.41 11.22.33.42
/etc/ntp.conf (i have added 1 line end , left on default file content elsewhere)
server 192.168.0.12
/etc/realmd.conf
[users] default-home = /home/%d/%u default-shell = /bin/bash [active-directory] default-client = sssd os-name = ubuntu linux os-version = 16.04 [service] automatic-install = no [win.domain] fully-qualified-names = no automatic-id-mapping = yes user-principal = yes manage-system = no computer-ou = ou=hu,dc=win,dc=domain
i'm not sysadmin, programmer. please post answers keeping in minds. i'm not sure example, should create adminuser_from_win_domain user on ubuntu beforehand or not?
please me being able name resolution working ubuntu windowss. believing in , ubuntu! in advance!
we have windows dns means dhcp registering dns computers. have static ip address on ubuntu server not have dns registration it.
so small step missing: make static dns record ubuntu server. problem solved. name resolution working windows machines on network. :)
Comments
Post a Comment