How to set my DNS and Default Gateway? lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- Edson · 2014-03-31 17:01 I'm, trying to read and set the DNS addresses and the Default Gateway, on my Windows PC. I have done this using commands of DOS, but how can I do it with Lazarus (not sending commnads of DOS). Is it possible? Thanks. ---------------------------------------------------------------------- BigChimp · 2014-04-02 14:52 I don't know but... If a search on the forum and wiki did not give any results... You could try looking up "how to set up DNS default gateway programmatically" in your favourite search engine. Then add the term Delphi. Perhaps one of those is a link to an MSDN article that lists some API functions that perform that task. That API function may well already be present/translated in an FPC unit. At least that's the way I would try and find out.