Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
mrex7

Simple DNS with minimal Setup

Recommended Posts

Simple (forward) DNS with minimal Setup

Server-client architectur. Every client register his address automatically at server. Server hold a table of registred clients. Clients can send requests to get a address of a registred client.

Its possible to setup multiple dns Server with own binded hosts in same network. If host not binded them try to find antother random dns server automatically. startup order of hosts and server not important.

 

Server/Client support some arguments at runtime

dnsserver status / dnsclient status

dnsserver restart / dnsclient restart

dnsserver start / dnsclient start /

dnsserver stop / dnsclient stop

dnsserver print    (printing all entrys)

dnsserver drop  (delete all entrys)

 

Example for usind Lib

local dns=require("dns")

local networkaddress=dns.ns("Computername") -- with local cached entrys to reduce network traffic

--or

local networkaddress=dns.ns("Computername", true) -- witout local cache. forced request on server more secure

 

Important editable Files

/etc/dns.cfg 

 

Installationfiles (u need a internet card and oppm) 

pastebin get sBWERkg3 server.lua

pastebin get sThmq5sr client.lua

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.