Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ConradIrwin/aws-name-server
/ functions
Functions
17 in github.com/ConradIrwin/aws-name-server
⨍
Functions
17
◇
Types & classes
6
↓ 2 callers
Method
SOA
(msg dns.Question)
ec2_server.go:157
↓ 2 callers
Method
listenAndServe
(port string, net string)
ec2_server.go:41
↓ 2 callers
Method
refresh
()
ec2_cache.go:115
↓ 2 callers
Function
sanitize
(tag string)
ec2_cache.go:107
↓ 1 callers
Method
Answer
(msg dns.Question)
ec2_server.go:71
↓ 1 callers
Method
Instances
()
ec2_cache.go:94
↓ 1 callers
Method
Lookup
(msg dns.Question)
ec2_server.go:117
↓ 1 callers
Function
NewEC2Cache
NewEC2Cache creates a new EC2Cache that uses the provided EC2 client to lookup instances. It starts a goroutine that keeps the cache up-to-date.
ec2_cache.go:57
↓ 1 callers
Function
NewEC2Server
(domain string, hostname string, cache *EC2Cache)
ec2_server.go:21
↓ 1 callers
Method
Size
()
ec2_cache.go:168
↓ 1 callers
Method
TTL
(now time.Time)
ec2_cache.go:175
↓ 1 callers
Function
checkNSRecordMatches
checkNSRecordMatches does a spot check for DNS misconfiguration, and prints a warning if using it for DNS is likely to be broken.
main.go:103
↓ 1 callers
Function
getHostname
()
main.go:81
↓ 1 callers
Method
setRecords
setRecords updates the cache with a new set of Records
ec2_cache.go:88
Method
Lookup
Lookup a node in the Cache either by Name or Role.
ec2_cache.go:161
Method
handleRequest
(w dns.ResponseWriter, request *dns.Msg)
ec2_server.go:51
Function
main
()
main.go:41