Are DFS links and link targets stored in the directory? If they are, I haven't found them... all I can find is a list of roots and root targets under Dfs-Configuration in the System container in the default domain NC. I ran a Wireshark trace while enumerating DFS links from DFSutil and could only see a NETDFS query targetted at the root servers, with the links and link targets being provided back as RPC responses from a root server. No LDAP at all.
Is there a way to programmatically enumerate DFS links and link targets? I'm working on a Powershell script which leverages dfsutil, but is there another way (perhaps using a .NET library)?