Recent

Author Topic: Any examples of DNS Server for Lazarus?  (Read 409 times)

Michael Collier

  • Sr. Member
  • ****
  • Posts: 257
Any examples of DNS Server for Lazarus?
« on: August 17, 2020, 01:09:11 pm »
I'm searching for DNS Server written in Pascal, does anyone know of any?

I have a PHP based version running in a windows command shell, so maybe I could reverse engineer it to Pascal..

I also noticed and indy based component on the tool palette TidDNSServer? but don't know of any example projects that use it,..?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8273
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Any examples of DNS Server for Lazarus?
« Reply #1 on: August 20, 2020, 03:15:04 pm »
None that I know of. The protocol is rather simple (the query/response, not getting data from upstream, I haven't learned that one), even from a ground up rewrite should be easily possible. Question is, what do you do that for? There are a bunch of DNS servers already.

Remy Lebeau

  • Hero Member
  • *****
  • Posts: 825
    • Lebeau Software
Re: Any examples of DNS Server for Lazarus?
« Reply #2 on: August 20, 2020, 06:32:17 pm »
I'm searching for DNS Server written in Pascal, does anyone know of any?

Indy (which is available in Lazarus's OPM) has a TIdDNSServer component.

but don't know of any example projects that use it,..?

Sadly, there is no documentation explaining, or examples showing, how to use TIdDNSServer, so you will have to reverse-engineer it a little to figure out which data to provide in which events, etc.
Remy Lebeau
Lebeau Software - Owner, Developer
Internet Direct (Indy) - Admin, Developer (Support forum)

 

TinyPortal © 2005-2018