Koozali.org: home of the SME Server

Obsolete Releases => SME Server 9.x => Topic started by: johnp on November 05, 2017, 10:15:29 PM

Title: Round Robin and SME
Post by: johnp on November 05, 2017, 10:15:29 PM
Just asking if this is doable? use a fake name and add multi entries to tinydns, such that server.abc.com goes to first addy, next to 2nd. I know that dig show both when added in as an = entry.

Thought I'd ask wiser minds :-)

Thanks,

John
Title: Re: Round Robin and SME
Post by: Jean-Philippe Pialasse on November 06, 2017, 06:23:25 PM
tiny dns is able of such thing, but I am not sure our templates were planned for this.

see how this is simple  : https://www.xiitec.com/blog/2008/02/12/enabling-simple-load-balancing-with-tinydns/

in our case this is in /service/tinydns/root/data

/etc/e-smith/templates/var/service/tinydns/root/data/50domainARecords
shows that for each domain we add one ip, the Local one.

I guess we  shouldmodify this tempalte or add one, to add an entry for this domain /host if there is a AlternateIP property made of a list of ip v4 (to be validated) separated by a coma and create a line per ip per domain/host this way :

Code: [Select]
+www.pixels.net:208.201.239.39
+www.pixels.net:208.201.239.38


if your needs are pretty stable just create a template custom and write your lines ;)