title: Getting domains names and SPF and Mx record from an IP powershell
body: <p>so i was wondering if i can get from an IP adresse the domain name and it's SPF and MX record (if exists) using PowerShell
  i've found some interesting scripts on the internet for getting domain names and SPF and MX</p>
  
  <p>but the problem i have is :
  - there Are some domains that share the same IP called "shared hosting" and in my scripts i used these codes </p>
  
  <pre><code>[System.Net.Dns]::gethostentry($ip)
  </code></pre>
  
  <p>and</p>
  
  <pre><code>[system.net.dns]::GetHostByAddress($ip)
  </code></pre>
  
  <p>the two of these scripts doesn't get me all the domain names for an Ip, I don't know what to change </p>
  
  <p>And My second question is about MX records, for the moment i'm only getting infos about it, i'm planing to make records for my domains but i want to know if there's any relation between mx records and how much can a domain send of mails a day </p>
  
  <p>I read some info's about high mx record and low and some nubers you put in the config but i don't really understand well.</p>
  
  <p>Thank You and i hope this question isn't duplicated cuz i searched a lot in the site and didn't found what i want.</p>