Communicate with dns server ?

Giganews Newsgroups
Subject: Communicate with dns server ?
Posted by:  Billy Young (by…@tiscali.co.uk)
Date: Tue, 19 Oct 2004

Hello all,
I wanted to build a very basic client program that can send a test
message to a dns server and get a response that can be printed
out to the screen. I tried sending to dns a "hello there" message,
but got no response, so I assume I need to know about  the
internals of the dns protocol (rfc 1035) in order to know how to
format a request. If someone can just send me something that
would work, I simply can't face reading 200 pages of dns rfc,
as I said, I don't mind what I get back, as long as I can print it on
the screen, as an indication that the server *is* there.
Tia.

Replies