Skip to content

A simple Node.JS server for updating the integrated DNS server that ships with windows.

License

Notifications You must be signed in to change notification settings

arashnikoo/win-dns-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Windows DNS API (Node.JS)

A simple Node.JS server for updating the integrated DNS server that ships with windows.

Requirements:

  • Windows Server 2008 and above
  • DNS Server Role
  • Allow traffic to port 3111
  • Access to %WINDIR%\system32\dns

Quick start:

npm i
npm start    

Build a single executable:

npm run build-exec

Operations:

# Get available zones http:// <dns-host> :3111/dns/
> curl http://localhost:3111/dns

# Get zone records as JSON http:// <dns-host> :3111/dns/:zone
> curl http://localhost:3111/dns/test.com

# Get zone file in raw format http:// <dns-host> :3111/dns/:zone/raw
> curl http://localhost:3111/dns/test.com/raw

# Set record http:// <dns-host> :3111/dns/:zone/:type/:node/set/:ip
> curl http://localhost:3111/dns/acme.local/a/server1/set/1.2.3.4

# Remove record http:// <dns-host> :3111/dns/:zone/:type/:node/remove
> curl http://localhost:3111/dns/acme.local/a/server1/remove    

About

A simple Node.JS server for updating the integrated DNS server that ships with windows.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%