4 Replies - 3129 Views - Last Post: 26 December 2012 - 10:19 AM

#1 Summit  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 07-June 10

How can i code a dns server?

Posted 30 November 2012 - 09:27 AM

Hello DIC
I am going to code a dns server, but i can't find where should i start it.
I downloaded some source codes of dns servers but they are really complex. i need a simple dns server.
Is This A Good Question/Topic? 0
  • +

Replies To: How can i code a dns server?

#2 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5382
  • View blog
  • Posts: 27,350
  • Joined: 10-May 07

Re: How can i code a dns server?

Posted 30 November 2012 - 09:30 AM

First you want to find the port you need to bind, I believe this is port 53.

This really should be posted under what language you are going to code this in.
Was This Post Helpful? 0
  • +
  • -

#3 BetaWar  Icon User is offline

  • #include "soul.h"
  • member icon

Reputation: 1184
  • View blog
  • Posts: 7,254
  • Joined: 07-September 06

Re: How can i code a dns server?

Posted 30 November 2012 - 11:01 AM

With something large like this I find that it generally helps to start by reading the spec. That way you can start thinking about the problem before you just try to dive into it. That way you have knowledge of everything you will have to do before you design yourself into a hole.
Was This Post Helpful? 0
  • +
  • -

#4 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5382
  • View blog
  • Posts: 27,350
  • Joined: 10-May 07

Re: How can i code a dns server?

Posted 30 November 2012 - 11:13 AM

View PostSummit, on 30 November 2012 - 11:27 AM, said:

I downloaded some source codes of dns servers but they are really complex. i need a simple dns server.

I wish I would have taken more time to provide a better response.

A misconception is that anything can be 'simplified' to make it easier to understand. This in practice, I believe, is oposite. For anyone to make something complex "simple", they must first have an understanding of every aspect in order to know how to minify the service to it's simplest roots.

An amateur can not simplify a service what they don't already understand. Beginners often ask for "simple". Things just are not simple. They have to be understood. Only then can they be simplified.

Which then brings up the question, how do you know you need to create a service from scratch? Perhaps you just need to find a better piece of software? It is, again in my opinion, MAJOR cart before the horse syndrom.
Was This Post Helpful? 2
  • +
  • -

#5 Gorian  Icon User is offline

  • ninja DIC
  • member icon

Reputation: 120
  • View blog
  • Posts: 1,681
  • Joined: 28-June 08

Re: How can i code a dns server?

Posted 26 December 2012 - 10:19 AM

I'll just leave THIS here, for consideration before anyone decides to reinvent the wheel...
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1