E
eninyo
hello,
i try to make my own DNS "server". i'm working on a local network (not
connected to the internet) kind of intranet.
i have one computer that runs mfc application that uses the function
getipbyname (windows os function) and shows the ip from a given name.
something very simple.
i defined the dns and the default gateway of this computer to be the
secound computer ip (where i run a kind of dns "server").
at the other computer, i get a dns query with that name, and i build a
dns response. all as describe in rfc of DNS: 1035 1034.
unfortunatly, i don't get the ip response to be showed on the first
computer mfc application.
here are stuff i tried to do:
i enter a name of a computer i know as the name i send from the mfc
application (as a dns query). this name is a computer name in my local
network. i redefine the dns setting on the network card to be default
(as they were before i changed them to the other computer IP) so that
now any dns query will be send to the company real dns server.
this time i got a response with the compter ip as expected.
i change back the setting of the network card to point to the ip of
the secound computer (not the one with the mfc application) as a dns
server and as a default gateway.
i used the same name as query.
in the first computer code i accept the dns query and build a reply
exacly the same as it was when working with the real dns server just
that i always return the ip to be 10.10.10.10 (hard coded).
this time i din't get this IP at my mfc application.
i cann't use windows function to deal with the dns query at the
secound computer (!!!). only at the computer with the mfc application
i can use windows os function.
i used ethereal (an application that sniff the network) to see that
the dns messages are send and recieved both sides.
i see that the query and the response get to each computer. everything
looks right as it was in the messages when a real dns server was
defined.
is anyone have any idea what more i can do????
any help with be great!!!
tnx in advance,
Eli
i try to make my own DNS "server". i'm working on a local network (not
connected to the internet) kind of intranet.
i have one computer that runs mfc application that uses the function
getipbyname (windows os function) and shows the ip from a given name.
something very simple.
i defined the dns and the default gateway of this computer to be the
secound computer ip (where i run a kind of dns "server").
at the other computer, i get a dns query with that name, and i build a
dns response. all as describe in rfc of DNS: 1035 1034.
unfortunatly, i don't get the ip response to be showed on the first
computer mfc application.
here are stuff i tried to do:
i enter a name of a computer i know as the name i send from the mfc
application (as a dns query). this name is a computer name in my local
network. i redefine the dns setting on the network card to be default
(as they were before i changed them to the other computer IP) so that
now any dns query will be send to the company real dns server.
this time i got a response with the compter ip as expected.
i change back the setting of the network card to point to the ip of
the secound computer (not the one with the mfc application) as a dns
server and as a default gateway.
i used the same name as query.
in the first computer code i accept the dns query and build a reply
exacly the same as it was when working with the real dns server just
that i always return the ip to be 10.10.10.10 (hard coded).
this time i din't get this IP at my mfc application.
i cann't use windows function to deal with the dns query at the
secound computer (!!!). only at the computer with the mfc application
i can use windows os function.
i used ethereal (an application that sniff the network) to see that
the dns messages are send and recieved both sides.
i see that the query and the response get to each computer. everything
looks right as it was in the messages when a real dns server was
defined.
is anyone have any idea what more i can do????
any help with be great!!!
tnx in advance,
Eli