473,326 Members | 2,337 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

micro authoritative dns server

Hi,

I'm new in python. I know that there are several classes for writing
dns servers, but I don't understand it

I just want to know if anyone could help me in writing a code for
minimal authoritative dns server. I would like that anyone show me the
code, minimal, for learn how expand it.

The code I desireed should do the following:

1) It has an hash:
hosts = { "myhost" =84.34.56.67
"localhost" =127.0.0.1,
"blue" =fe80::20f:b0ff:fef2:f106
}
2) If any application asks if know any hosts, say nothing if this host
is not in the hash (hosts). If this host is in the hash, return the ip
3) And not do anything more

So if we put this server in /etc/resolv.conf then the browsers only
recognize the hosts we want

Thanks in advance,
Xan.

PS: For personal communication, DXpublica @@@@@ telefonica.net

Jul 24 '06 #1
6 1984
In message <11**********************@i42g2000cwa.googlegroups .com>,
xa**@ono.com wrote:
I just want to know if anyone could help me in writing a code for
minimal authoritative dns server.
You'll probably need to start by reading and understanding RFC1034 and
RFC1035.
Jul 25 '06 #2
Lawrence D'Oliveiro wrote:
In message <11**********************@i42g2000cwa.googlegroups .com>,
xa**@ono.com wrote:
I just want to know if anyone could help me in writing a code for
minimal authoritative dns server.

You'll probably need to start by reading and understanding RFC1034 and
RFC1035.
Yes. But these documents are low-level documents and implementation of
that is terrible (I admire people who write code for low-level projects
like http://www.dnspython.org/). I would like more high-level code: in
principle, the programmer who writes his/her own dns should don't
matter if the dns server has to pass certain RR or another, else he/she
should matter in other high-level things

For that, probably using dnspython, I wanted if anyone could show me
the simplest high-level code for a authoritative dns server. DNS server
that only answers to the request of hosts that programmer add to one
list.

Thanks,
Xan.

Jul 25 '06 #3
I was looking for something like that. I came across this:
http://aspn.activestate.com/ASPN/Coo.../Recipe/491264
It's not ready to use but you can modify it.
<xa**@ono.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
Hi,

I'm new in python. I know that there are several classes for writing
dns servers, but I don't understand it

I just want to know if anyone could help me in writing a code for
minimal authoritative dns server. I would like that anyone show me the
code, minimal, for learn how expand it.

The code I desireed should do the following:

1) It has an hash:
hosts = { "myhost" =84.34.56.67
"localhost" =127.0.0.1,
"blue" =fe80::20f:b0ff:fef2:f106
}
2) If any application asks if know any hosts, say nothing if this host
is not in the hash (hosts). If this host is in the hash, return the ip
3) And not do anything more

So if we put this server in /etc/resolv.conf then the browsers only
recognize the hosts we want

Thanks in advance,
Xan.

PS: For personal communication, DXpublica @@@@@ telefonica.net

Jul 26 '06 #4

Well, thanks, but I think it's so few for beginning..... ,-(
Is it not any high-level DNS class? Errrr!!!

Regards,
Xan.

Jack wrote:
I was looking for something like that. I came across this:
http://aspn.activestate.com/ASPN/Coo.../Recipe/491264
It's not ready to use but you can modify it.
<xa**@ono.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
Hi,

I'm new in python. I know that there are several classes for writing
dns servers, but I don't understand it

I just want to know if anyone could help me in writing a code for
minimal authoritative dns server. I would like that anyone show me the
code, minimal, for learn how expand it.

The code I desireed should do the following:

1) It has an hash:
hosts = { "myhost" =84.34.56.67
"localhost" =127.0.0.1,
"blue" =fe80::20f:b0ff:fef2:f106
}
2) If any application asks if know any hosts, say nothing if this host
is not in the hash (hosts). If this host is in the hash, return the ip
3) And not do anything more

So if we put this server in /etc/resolv.conf then the browsers only
recognize the hosts we want

Thanks in advance,
Xan.

PS: For personal communication, DXpublica @@@@@ telefonica.net
Jul 26 '06 #5
No, it's very low level :)
Please post back if you find a good solution (or have built something that
you want to
open source :)
Well, thanks, but I think it's so few for beginning..... ,-(
Is it not any high-level DNS class? Errrr!!!

Regards,
Xan.

Jack wrote:
>I was looking for something like that. I came across this:
http://aspn.activestate.com/ASPN/Coo.../Recipe/491264
It's not ready to use but you can modify it.

Jul 28 '06 #6

Jack wrote:
No, it's very low level :)
Please post back if you find a good solution (or have built something that
you want to
open source :)
The same if you find or create it

Xan.
Well, thanks, but I think it's so few for beginning..... ,-(
Is it not any high-level DNS class? Errrr!!!

Regards,
Xan.

Jack wrote:
I was looking for something like that. I came across this:
http://aspn.activestate.com/ASPN/Coo.../Recipe/491264
It's not ready to use but you can modify it.
Jul 28 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: François | last post by:
Hi, After looking up Microsoft's site for licensing info...and found nothing, I turn to this newsgroup. Does someone know what version of VB .Net you are entitled to use when you are a micro...
383
by: John Bailo | last post by:
The war of the OSes was won a long time ago. Unix has always been, and will continue to be, the Server OS in the form of Linux. Microsoft struggled mightily to win that battle -- creating a...
12
by: johnny.karlsson | last post by:
Hi, I'm working on a project were a need to be able to upload firmware to a microcontroller based Ethernet device. But because of the memory constraints the controller can only handle packages of...
13
by: webzila | last post by:
Hello, I have to write a program for an 8051 micro-controller using micro-C to monitor Switch 1 and if the switch in pushed the message "switch 1 pushed" should be displayed in the LCD. Also the...
1
by: qanita786 | last post by:
hi i want to connect oracle forms 6i and reports 6i with micro soft sql server database please guide me with example what i do for connectivity my email address is kind regards Faheem iftikhar
1
by: Bruce Frederiksen | last post by:
I wanted to make everybody aware that I've posted a (rather long and involved) PEP proposal for adding micro-threading to Python on python-ideas for feedback and review. In a nutshell, this...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.