Few days ago I was writting an application querying DNS for MX record. Trying to optimize it, I realize I could use the DNS specified for the local computer instead of using a hard-coded one. Then I wonder how to get this DNS server list and, most important, how to keep it up-to-date. Because changing of wi-fi hotspot makes my IP settings (IP Address, Subnet Mask, and… DNS servers) change. More »