This should be simple, I want to take a domain name from it's FQDN structure, split it on the "." and rebuild it in the "dc=nnn,dc=nn,..dc=com" format. the fqdn could have a variable number of parts, D1.com, da.db.dc.com, etc. What's the simplest way?
↧