Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-01

Getting (local) domain info from DNS

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mark Morgan Lloyd

Is there a straightforward way of getting the SOA information for a specific domain, typically the local one, from a DNS server?

As background, I'm looking for a way to perform a reasonable check of the health of the local LAN, before trying to recover from a database error caused either by a physical network problem or by server failure. I can't speak for other types of connection, but
TPQConnection.Connected:=FALSE will sit there indefinitely if the Ethernet plug is pulled out from the back of the computer.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]