惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
博客园_首页
W
WeLiveSecurity
S
Secure Thoughts
S
Security @ Cisco Blogs
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Hugging Face - Blog
Hugging Face - Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
H
Hacker News: Front Page
Project Zero
Project Zero
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
U
Unit 42
N
News and Events Feed by Topic
N
News and Events Feed by Topic
Hacker News - Newest:
Hacker News - Newest: "LLM"
Forbes - Security
Forbes - Security
T
Tor Project blog
I
Intezer
B
Blog
F
Full Disclosure
Security Archives - TechRepublic
Security Archives - TechRepublic
F
Fortinet All Blogs
Schneier on Security
Schneier on Security
T
Threat Research - Cisco Blogs
AI
AI
Google DeepMind News
Google DeepMind News
L
LINUX DO - 最新话题
Cloudbric
Cloudbric
L
Lohrmann on Cybersecurity
WordPress大学
WordPress大学
博客园 - 聂微东
雷峰网
雷峰网
P
Privacy International News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
PCI Perspectives
PCI Perspectives
Y
Y Combinator Blog
Spread Privacy
Spread Privacy
Simon Willison's Weblog
Simon Willison's Weblog
罗磊的独立博客
Vercel News
Vercel News
A
Arctic Wolf
The Register - Security
The Register - Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Azure Blog
Microsoft Azure Blog
H
Heimdal Security Blog
Know Your Adversary
Know Your Adversary
P
Proofpoint News Feed
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed

Quick on CoreDNS: DNS and Service Discovery

Quick Start
Quick Start for Windows
jonathan · 2016-10-30 · via Quick on CoreDNS: DNS and Service Discovery

This is a development quick start guide when you are using Windows.

  1. Make sure that you have your GOPATH set up

  2. Clone coredns and all dependencies: go get github.com/coredns/coredns

  3. Navigate to the source: cd $ENV:GOPATH\src\github.com\coredns\coredns

  4. Fork (but not clone) coredns

  5. Update the origin to point at your repository: git remote set-url origin https://github.com/USERNAME/coredns.git

  6. Open your editor: code .

  7. Create a new file named Corefile and populate it:

    # Only port 53 is supported as NSLOOKUP no longer supports non-standard ports
    .:53 {
        # Your router
        proxy . 192.168.1.1:53
    
        file D:\dev\zone\example.org example.org
    
        errors
        log
    }
    
  8. Create the example.org file:

    example.org.   IN SOA dns.example.org. domains.example.org. (
        2012062701   ; serial
        300          ; refresh
        1800         ; retry
        14400        ; expire
        300 )        ; minimum
    
    @                        IN NS      dns.example.com.
    
    @                  42000 IN A       127.0.0.1
    @                  42000 IN A       127.0.0.2
    @                  42000 IN A       127.0.0.3
    
    api                42000 IN CNAME   sample.service.dns.example.de.
    www                42000 IN CNAME   sample.service.dns.example.de.
    blog               42000 IN CNAME   sample.service.dns.example.de.
    
    @                   3600 IN MX 1    ASPMX1.L.google.com.
    @                   3600 IN MX 1    ASPMX2.L.google.com.
    @                   3600 IN MX 1    ASPMX3.L.google.com.
    @                    300 IN TXT     "v=spf1 include:_spf.google.com ~all"
    
  9. You should be able to execute coredns from VSCode, test it with:

    > nslookup - localhost
    Default Server:  UnKnown
    Address:  ::1
    
    > example.org
    Server:  UnKnown
    Address:  ::1
    
    Name:    example.org
    Addresses:  127.0.0.1
          127.0.0.2
          127.0.0.3
    
  10. Use github.com\coredns\coredns as though it were your own repository. This is required to ensure that debugging works in VSCode.

  11. You might want to add the following to your global .gitignore:

```
coredns.exe
Corefile
.vscode
debug
```