Recent

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

Michael Collier

  • Sr. Member
  • ****
  • Posts: 266
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: 8386
  • 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: 1008
    • 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: 132
    • 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: 1008
    • 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: 1627
  • 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!
Lazarus 2.3 + FPC 3.3.1 2021-10-19 macOS 10.14.6 Xcode 11.3.1
Lazarus 2.3 + FPC 3.3.1 2021-09-21 macOS 11.6 aarch64 Xcode 13
Lazarus 2.3 2021-08-11 FPC 3.2.2 FreeBSD 13.0 amd64 VMware VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 Parallels VM
Lazarus 2.0.10 FPC 3.2.0 Win10 Parallels VM

Guylain

  • Newbie
  • Posts: 1
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

 

TinyPortal © 2005-2018