Skip to content

question re: TXT records #225

Closed
Closed

Description

@chuck-abrams

trying to get TXT record from our test DNS ts1989.bacasystems.com via

Try
Dim Txtresult = Await LookUp.QueryAsync("ts1989.bacasystems.com", QueryType.TXT)
Dim Txtrecord = Txtresult.Answers.TxtRecords().FirstOrDefault()
Catch ex As Exception
MessageBox.Show("Lookup Failed : " + ex.Message)
End Try

which Yields "non-existent server'

if i use the DnsClient.NET website query i get back my record of "04-16-2024"

what am i doing wrong? Thx

Activity

  1. MichaConrad commented on Apr 30, 2024

    @MichaConrad
    Collaborator

    Are you sure the returned error message is non-existent server? There is no such DNS error, only Non-Existent Domain which means that the DNS server you are using doesn't know ts1989.bacasystems.com and cannot resolve it.
    There is nothing wrong with your code or so, DNS replies highly depend and vary based on what DNS server you are using and per default the library uses whatever is configured on your local machine.

    You can initialize LookupClient with a specify (e.g. public) DNS server instead of using whatever is configured on your local network... maybe that helps.

  2. locked and limited conversation to collaborators on Apr 30, 2024
  3. converted this issue into a discussion #226 on Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions