Is there an appropriate "potting" compound for a DC power barrel connector?
For casual use, from the Amateur Radio Relay League Hints &amp; Kinks, just using a good grade of hot glue should do well, and can still be removed. For permanent use try 2-part epoxy like JB Weld, it can even be machined after drying.