Recent

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

Michael Collier

  • Sr. Member
  • ****
  • Posts: 301
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: 8757
  • 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: 1314
    • 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)

zeljkoc

  • Full Member
  • ***
  • Posts: 145
    • Zeljko Cvijanovic
Re: Any examples of DNS Server for Lazarus?
« Reply #3 on: August 16, 2021, 06:45:21 am »
Whether an example of using TIdDNSServer can be found.

Remy Lebeau

  • Hero Member
  • *****
  • Posts: 1314
    • Lebeau Software
Re: Any examples of DNS Server for Lazarus?
« Reply #4 on: August 16, 2021, 10:31:17 pm »
Whether an example of using TIdDNSServer can be found.

As I said a year ago, there are no examples showing how to use TIdDNSServer.
Remy Lebeau
Lebeau Software - Owner, Developer
Internet Direct (Indy) - Admin, Developer (Support forum)

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2023
  • Former Delphi 1-7, 10.2 user
Re: Any examples of DNS Server for Lazarus?
« Reply #5 on: August 17, 2021, 01:27:28 am »
I notice that requests for examples for TIdDNSServer have been ongoing for 14 years!

Guylain

  • New Member
  • *
  • Posts: 16
Re: Any examples of DNS Server for Lazarus?
« Reply #6 on: August 17, 2021, 02:01:20 am »
Maybe this link could help: http://fes.org.ua/doc/pm/Indy10.pdf
Mainly Lazarus 2.0.0, FPC 3.0.4, SVN 60307, x86_64-win64-win32/win64, on HP Core i7
Also Lazarus 2.2.0, FPC 3.2.2, Revision 2_2_0

 

TinyPortal © 2005-2018