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

推荐订阅源

S
Securelist
O
OpenAI News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Threat Research - Cisco Blogs
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Google Online Security Blog
Google Online Security Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
N
News and Events Feed by Topic
S
Security Affairs
SecWiki News
SecWiki News
Project Zero
Project Zero
L
Lohrmann on Cybersecurity
P
Proofpoint News Feed
P
Palo Alto Networks Blog
L
LINUX DO - 最新话题
H
Hacker News: Front Page
Recent Commits to openclaw:main
Recent Commits to openclaw:main
I
Intezer
Simon Willison's Weblog
Simon Willison's Weblog
W
WeLiveSecurity
T
The Exploit Database - CXSecurity.com
K
Kaspersky official blog
The GitHub Blog
The GitHub Blog
I
InfoQ
云风的 BLOG
云风的 BLOG
雷峰网
雷峰网
B
Blog
IT之家
IT之家
AWS News Blog
AWS News Blog
Jina AI
Jina AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Google DeepMind News
Google DeepMind News
Spread Privacy
Spread Privacy
N
News and Events Feed by Topic
Security Latest
Security Latest
美团技术团队
C
Check Point Blog
WordPress大学
WordPress大学
T
Tenable Blog
S
Security @ Cisco Blogs
Last Week in AI
Last Week in AI
博客园 - 聂微东
月光博客
月光博客
博客园 - 【当耐特】
S
Schneier on Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
Secure Thoughts
Schneier on Security
Schneier on Security
C
Cisco Blogs
Cyberwarzone
Cyberwarzone

CoreDNS: DNS and Service Discovery

redis_cache kubernetes log proxyproto rewrite CoreDNS-1.14.2 Release forward CoreDNS-1.14.1 Release CoreDNS-1.14.0 Release clouddns errors grpc_server https https3 template docker auto geoip multisocket nomad CoreDNS-1.13.2 Release dnstap import view CoreDNS-1.13.1 Release CoreDNS-1.13.0 Release ready etcd header loadbalance CoreDNS-1.12.4 Release bind grpc CoreDNS-1.12.3 Release file prometheus quic timeouts CoreDNS-1.12.2 Release kubeforward CoreDNS-1.12.1 Release JSON gslb autopath dnssec root tls CoreDNS-1.12.0 Release CoreDNS-1.11.4 Release fanout CoreDNS-1.11.3 Release k8s_cache CoreDNS-1.11.2 Release CoreDNS: DNS and Service Discovery bufsize k8s_external reload CoreDNS-1.11.1 Release CoreDNS-1.11.0 Release gathersrv meship meshname CoreDNS: DNS and Service Discovery multicluster acl cache recursor CoreDNS-1.10.1 Release CoreDNS-1.10.0 Release health trace tsig CoreDNS-1.9.4 Release k8s_event redis CoreDNS-1.9.3 Release CoreDNS-1.9.2 Release route53 CoreDNS-1.9.1 Release CoreDNS and Apache APISIX open new doors for Service Discovery? Trail Of Bits Security Review CoreDNS-1.9.0 Release dns64 transfer finalize kubenodes CoreDNS-1.8.7 Release ebpf CoreDNS-1.8.6 Release rrl secondary CoreDNS-1.8.5 Release CoreDNS: DNS and Service Discovery mysql warnlist CoreDNS-1.8.4 Release loop minimal sign CoreDNS-1.8.3 Release
Quick Start for Windows
jonathan · 2016-10-30 · via 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
```