I need to create a tool that will check a domains live mx records against what should be expected (we have had issues with some of our staff fiddling with them and causing all i
Take a look at dnspython, a module that should do the lookups for you just fine without needing to resort to system calls.