allan

DHCPd: Steps to Set Up Dynamic DNS with Active Directory

Oct 21st, 2018
576
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. * Verified with ISC DHCPd 4.3.5 running under Debian Stretch and Windows 2008R2 DNS
  2. * Adapted from
  3. - https://unix.stackexchange.com/questions/270097/isc-dhcp-with-active-directory-secure-dynamic-dns-updates/271815#271815
  4. - https://blog.michael.kuron-germany.de/2011/02/isc-dhcpd-dynamic-dns-updates-against-secure-microsoft-dns/
  5.  
  6. NOTE: Verify DHCPd is working and handing out IPs before starting this process.
  7.  
  8. 1. Install heimdal and ntp
  9.  
  10. apt-get install heimdal-clients ntp
  11.  
  12. 2. Configure ntp to sync clock with DC
  13.  
  14. 3. Generate keytab file (see https://pastebin.com/7KBafRVp) from domain controller
  15.  
  16. 4. Test the kerberos connection on DHCPd side
  17.  
  18. kinit -k -t ‘<keytab_file>’ ‘<user_principal@REALM>’
  19. klist
  20.  
  21. 5. Create script on DHCPd server (see https://pastebin.com/taNfvCSt)
  22.  
  23. 6. Test DDNS through manual creation of RR
  24.  
  25. dns-krbnsupdate.sh add <host_ip> -h <host_name> -d
  26.  
  27. 7. Verify creation of DDNS entry on DNS server
  28.  
  29. 8. Delete test DDNS entry manually
  30.  
  31. dns-krbnsupdate.sh delete <host_ip> -d
  32.  
  33. 9. Modify /etc/dhcp/dhcpd.conf file and apply hooks either at the global or pool-level (see https://pastebin.com/vXjERNuS)
  34.  
  35. 10. Perform a DHCP request/renew
  36.  
  37. 11. Check /var/log/syslog for Dynamic DNS entries.
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment