Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support passing multiple IP addresses #92

Merged
merged 1 commit into from
Jun 23, 2019
Merged

Conversation

carroarmato0
Copy link

The current implementation only allows for 1 IP entry per cache.

{
	"ips": {
		"steam":	"10.10.3.11",
		"origin":	"10.10.3.12",
		"blizzard":	"10.10.3.13",
		"windows":	"10.10.3.14",
		"riot":		"10.10.3.15",
		"generic":	"10.10.3.16"
	},
	"cache_domains": {
		"default": 	"generic",
		"blizzard": 	"blizzard",
		"origin": 	"origin",
		"riot": 	"riot",
		"steam": 	"steam",
		"wsus": 	"windows",
		"xboxlive": 	"windows"
	}
}

In some scenarios, it is desirable to respond with multiple IP addresses ( distribute the load through poor-man round-robin through DNS.)

This patch allows passing an array of IP address for unbound and dnsmasq.

This patch is also meant to help with the following issue:
lancachenet/monolithic#16

{
	"ips": {
		"steam":	["10.10.3.10", "10.10.3.11", "10.10.3.12", "10.10.3.13"],
		"origin":	["10.10.3.10", "10.10.3.11", "10.10.3.12", "10.10.3.13"],
		"blizzard":	["10.10.3.10", "10.10.3.11", "10.10.3.12", "10.10.3.13"],
		"windows":	["10.10.3.10", "10.10.3.11", "10.10.3.12", "10.10.3.13"],
		"riot":		["10.10.3.10", "10.10.3.11", "10.10.3.12", "10.10.3.13"],
		"generic":	"10.10.3.14"
	},
	"cache_domains": {
		"default": 	"generic",
		"blizzard": 	"blizzard",
		"origin": 	"origin",
		"riot": 	"riot",
		"steam": 	"steam",
		"wsus": 	"windows",
		"xboxlive": 	"windows"
	}
}

Signed-off-by: Christophe Vanlancker carroarmato0@inuits.eu

Signed-off-by: Christophe Vanlancker <carroarmato0@inuits.eu>
@VibroAxe
Copy link
Member

@Crabbey does this look good to you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants