DNS Console application.

  • Thread starter Thread starter Stephen
  • Start date Start date
S

Stephen

Hi all,

I have a problem with DNS server. I have disconnected the machine from the
N/W and I am trying this...
I have written a console UDP application, that listens to "127.0.0.1" on
port 53. I have a client (console) application that talks to the UDP
(server) application on port 53, because the input parameters defined in the
application is use "127.0.0.1" and Port 53. hence it works...
so I know the server works (atleast...)

the problem is I want a web browser to talk to the same server application
on port 53... how do i do it?... how can i make sure that when I open the
browser and type www.google.com the browser is talking to the console UDP
(server) application? and that too on port 53.
I have no idea whether this is possible as I thought browsers talk thru port
80

Rakesh had given me some suggestions but I feel that I am missing some basic
stuff.

Please advice,
Stephen.
 
If you want to make an HTTP request to another port then you need to add a
":" followed by the port number. For example: www.google.com:53. However,
UDP port 53 is reserved for DNS queries. If your server application is a
DNS server service, in the TCP/IP properties the preferred DNS should point
to itself. When you make a name query in the web browser the server will
pass on the DNS name query to whatever DNS server you specify in TCP/IP
(which is itself). Then your application should pick the query up because
it should be listening on UDP port 53. Then it's up to the application to
resolve the name.

Best regards,

Frank Szita [MSFT]

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Please disregard the other message I sent because I didn't completely read
your message. If your DNS application is running and in TCP/IP the
preferred DNS is pointing to itself, the web browser will pass off a DNS
name query which will be directed to whatever DNS server is specified in
DNS, in this case it's to itself. If your application is listening on UDP
53 then it should take the name and if it has a host record for that name
it will return it to the server as an IP address. Then it will forward the
http get request to the resolved IP. You can see the network traffic by
installing network monitor which is part of Windows Components in
Add/Remove components.

Best regards,

Frank Szita [MSFT]

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top