Koozali.org: home of the SME Server

Round Robin and SME

Offline johnp

  • *****
  • 312
  • +0/-0
Round Robin and SME
« 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

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Round Robin and SME
« Reply #1 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 ;)