DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old December 28th, 2003, 03:58 AM
aDvo aDvo is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 27 aDvo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 53 m 2 sec
Reputation Power: 0
creating a basic dns client/server system, help!

Hi,

noob here.. I'm required to create a very basic DNS server with DNS client software, using Java, for my college project. I may or may not be following standards such as how BIND resource records are formatted etc etc, since i'm doing my own server, a very basic one at that.

Here is my summarized personal thinking and learning experience, which I hope someone can give me pointers for..

1) Not sure how my Server can capture name resolution requests from my resolver client (another pc). I don't know how the Windows 'DNS Client' service of the resolver formats the messages, do i have to know?

2) What if i have to create my own client-side software? I learned of the Windows service "DNS Client" that intercepts name resolution requests made by any program (such as IE?), formats it and sends it to the preferred DNS server, and waits for a response.

3) If i have to create my own client, do i have to disable the DNS Client service? However i do not know how my custom client resolver may intercept these name resolution requests.

Any advice is greatly appreciated. Pls do let me know if i really do not seem to know what i am talking about. =).

Last edited by aDvo : December 28th, 2003 at 04:01 AM.

Reply With Quote
  #2  
Old December 28th, 2003, 08:28 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
lol! You have to write a DNS server AND client in java for school?!?! That's one tough mother of a teacher you've got there. He/She probably expects you to use the java object library to do this with. It's not too hard in terms of client stuff, but I have no idea if it can setup a basic DNS server without some socket stuff going on.

Well, if you were asking about the Visual Basic, C, or perl language, then I would hook ya up with some example code. But I don't really have a use for java, so you're kinda on your own in that. This isn't a programmer forum after all, and therefor you're not likely to get your help here. Go ask your question on a java forum somewhere so that you'll get ahold of people more familiar with the java object library.
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links:

Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts

Reply With Quote
  #3  
Old December 29th, 2003, 03:24 AM
aDvo aDvo is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 27 aDvo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 53 m 2 sec
Reputation Power: 0
Hi SilentRage,

Thanks for the reply =). I did ask the Java forums, but i'm still waiting for a reply. Anyway I was trying to get my java proggie (my DNS server to-be) to listen on port 53, with the intention of getting the DNS queries from clients.

Problem is, port 53 is already being used, my guess is that some Window DNS thingie is already using it. I want to make the port free for my own usage, but i'm not sure what or where to disable.

Windows help offered a command called 'set port' or something under nslookup, that changes the port for the Windows DNS from the default '53' to a user specified value. However, i think its safer to disable the service rather that changing the port, god knows what might happen.

Any idea? Is any of this advisable?

p.s: I'm sure BIND listens on port 53 right? =p

Thanks again

Last edited by aDvo : December 29th, 2003 at 03:32 AM.

Reply With Quote
  #4  
Old December 29th, 2003, 05:45 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
All DNS servers listens on port 53. If Microsoft DNS Server is installed and running as a service then it would be the reason port 53 is used. If you can't figure out how to get rid of that port 53 process, then download TCPView from www.sysinternals.com . It is like a GUI form of netstat except it'll also tell you what process created that socket.

If you try to terminate the process that TCPView tells you is using port 53, and you get a permission denied error, then let me know and I'll give ya a hardcore tip on smacking down those processes which think you can't terminate them using the task manager.

Reply With Quote
  #5  
Old December 30th, 2003, 06:14 AM
aDvo aDvo is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 27 aDvo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 53 m 2 sec
Reputation Power: 0
IT WORKS.. for now =)

Thanks a zillion SilentRage.

I don't think there are many newbies here, but if anyone is interested, here's what i did:

Here is what i did.

I could not find any the port "53" being displayed anywhere in TCPView, but after some research i found out that 53 falls under the the 'domain' group of ports.

From this website:
http://www.portsdb.org/bin/portsdb....Y&String=domain
I found that ports classified under 'domain' are port 53, 256, 1863, and 9909.

According to TCPView there were 3 services using 'domain ports'. 1 used TCP, the other 2 used UDP. The services as displayed by TCPView are as follows:

posadissrv.exe:1940 TCP advo1800:domain
posadissrv.exe:1940 UDP advo1800:domain
SVCHOST.EXE:1032 UDP advo1800:domain

I still needed to find out which was using 53.

In DOS i did a
netstat -an |find /i "listening"
(http://www.petri.co.il/quickly_find..._open_ports.htm)

There was only one entry for port 53, and i found that something was listening that port using TCP.

Being the most obvious choice, i ended the following service from within TCPView:
posadissrv.exe:1940 TCP advo1800:domain

Doing that also cancelled the same service that was using UDP..

Anyway, i could freely use port 53 after that. Hooray.

Reply With Quote
  #6  
Old December 30th, 2003, 08:59 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
Or you could've checked an option in TCPView and it would've displayed port numbers instead of port names.

Reply With Quote
  #7  
Old December 30th, 2003, 12:05 PM
aDvo aDvo is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 27 aDvo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 53 m 2 sec
Reputation Power: 0
ack!

=P

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > creating a basic dns client/server system, help!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway