Skip to content

prithvipal/my_coredns_plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

my_coredns_plugin

Steps

  1. Clone coredns repo https://github.com/coredns/coredns
  2. Add following line in plugin.cfg file of coredns repo:
myplugin:github.com/Prithvipal/my_coredns_plugin
  1. Run make command in coredns repo
make
  1. add myplugin in Corefile
. {
   myplugin
   log
}

  1. Run coredns by following command in coredns repo. Note: set valid path of -conf flag. In my case it I have added relative path
coredns -conf ../../coredns/Corefile
  1. run dig command to verify that myplugin is added sucessfully or not
dig @localhost google.com

When you see the coredns logs, you will see following logs which is added as fmt.Println in myplugin.

=====Yoooo Serving DNS

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages