Friday, November 4, 2016

centos7 - Can Linux machines joined to active directory update its DNS records?



Well question is above, but to explain my setup:




  • Mikrotik as gateway running DHCP (DNS set to AD)

  • Windows 2012 as Active Directory and DNS

  • CentOs7 as client




I let CentOs pickup IP from DHCP on mikrotik and then join the machine to AD using this tutorial: https://www.rootusers.com/how-to-join-centos-linux-to-an-active-directory-domain/



But my DNS records are not updating automatically as with windows clients. Using verbose argument while domain joining, I received: Unable to perform DNS Update. DNS update failed: NT_STATUS_INVALID_PARAMETER.



I looked around the internet and I could not find clear explanation anywhere. Is it possible to achieve this behavior with current setup?


Answer



You just need to put hostname and FQDN to /etc/hosts file. After that it worked like a charm.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...