Git Product home page Git Product logo

windows-dns-api's Introduction

windows-dns-api

Purpose

This is a small API project, meant to run as a Windows Service, that uses Powershell to manage Windows DNS. Generally, it can be run on any of Windows DNS servers.

Installing the Service

You can install this service using any of the methods described in Host ASP.NET Core in a Windows Service. The service will need to run as a user with Powershell access and rights to modify the VMs.

You will most likely have to create a new user and grant them service log on via local security policy. See Enable Service Logon for details.

Deployment Powershell

Once the service is installed, Deploy-ToMachine.ps1 can be used to stop the service on the target machine, build this library in debug, and copy the build to the machine. This is meant to be a template for your own deployments.

Authentication

This API is setup with optional JWT Bearer Token authentication. If you have an OAuth 2 service, you can configure authentication by setting the Identity values in the appSettings.json folder.

Identity Property Description
AuthorityUrl The url of the Token Authority
ApiName This is the audience value required for the incoming call

At this time, only the audience is validated via the ApiName. Further validation, such as issuer and issuer signing key, can be added to the code if you need. How to Implement JWT Authentication in ASP.NET Core 6 will get you started.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.