help with DNS implimitation

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
 
A

Ace Fekay [MVP]

In
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

Unless I am missing something that I overlooked in your post, this seems to
be pointing to a rather simple solution. ONLY use the internal DNS server
and no others.

If you need your application to resolve internal names to their internal IP
addresses, you MUST simply use the internal DNS server in IP properties. You
cannot use any other DNS server. If you need to resolve outside names, on
your DNS server's properties, configure a forwarder. These articles show how
to configure a forwarder, depending on what version OS you have.

323380 - HOW TO Configure DNS for Internet Access in Windows Server 2003
(forwarding) :
http://support.microsoft.com/?id=323380

300202 - HOW TO Configure DNS for Internet Access in Windows Server 2000
(forwarding) :
http://support.microsoft.com/?id=300202


--
Ace Fekay, MCSA & MCSE 2000 & 2003, MCT, MVP
Microsoft Certified Trainer
Microsoft MVP in Directory Services (Active Directory)
Exchange Design, Implementation and Support Services since 1995
Consulting Services in Network Designs, Outsourced IT Department and CTO
Solutions, Active Directory, Exchange 55, 2000, 2003 & 2007, Migration
Services, Infrastructure Design, Implementation and Support.

(e-mail address removed)
Cell: 610-247-0700

For more information on the Microsoft MVP program, please visit:
http://www.microsoft.com/mvp

For additional information, please Google my name, "Ace Fekay":
http://www.google.com/search?hl=en&q=Ace+Fekay
___
The information in this email (including any attachments and attachments
within), is confidential and legally privileged and protected from
disclosure. It is intended solely for the addressee. Access to this email by
an unauthorized or a non-intended recipient is hereby notified use of this
communique for any purpose (including dissemination, distribution or
copying) is strictly prohibited.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top