Forum Discussion
DNS load balancing to backend servers using GTM/LTM.
- Feb 13, 2023
Hello Ashk,
Speaking of GTM without the use of the LTM, you can load balance requests to a pool of DNS servers by creating a listener and assigning a pool to that listener.
Note (load balancing to DNS servers can be achieved by creating a pool from DNS > deliver > load balancing> pool)
the listener on the GTM is different than the virtual server on the LTM, you can check the listener configuration below:
you can notice that there is a DNS profile assigned to the listener. after creating this listener, if you navigate to the LTM > virtual servers, you can find the listener listed as a virtual server (but having a DNS profile assigned), if you tried to remove this profile and then navigated back to DNS > listeners, you will not find the listener anymore.
In conclusion, the GTM listener is used for DNS requests and you can load balance DNS requests across different backend servers inside a GTM pool. The GTM pool can have its own monitor same as LTM.regarding the part about "by passing LTM", I think the LTM will be hosting the services. When the user receives a DNS response, the client will initiate a new connection (HTTPs for example) and start communicating with the IP that was returned from the GTM, which I believe it will be hosted on the LTM.
There is a difference between the connection opened with the GTM (just to receive a DNS response) and the connection which is opened with the LTM (service connection) for example: retrieving a home page for any of your services.
There are cases, where both LTM and GTM are hosted on the same BIG-IP, so the client will initiate another connection with the same F5 to open a connection with the service.
One last thing, regarding the delegation:
"test.facebook.com > xyz.facebook.com/abc.facebook.com/efg.facebook.com"You can check the below article for delegating records using zone runner:
If i didn't answer your main request, please clarify it further.
Thanks,
Mohamed Salah
- Feb 15, 2023
As Mohamed_Salah_ mentioned the DNS will give the F5 LTM VS IP address as a DNS resolution even if the F5 LTM is not local (not on the same box as the F5 DNS) this is not an issue and then after that the real connections will be load balanced by the LTM to the real servers.
What you are saying sounds like you want to use Generic Host object on the F5 DNS that will point directly to the real server IP address but this only done when there is no F5 LTM product that load balances traffic to the servers and you then may need prober pool to control which F5 devices will monitor the generic host etc. and it is complex.
I suggest to better read the F5 operations guides below as get an understanding of the F5 LTM and DNS/GTM modules:
https://support.f5.com/csp/article/K70671013
https://support.f5.com/csp/article/K05939436
Hello Nikoolayy1
I have been working on this from couple of days and I tried the Salah advice and its blocking me from out side resolution and i need to create a Deligation in my local DNS box..
As you said the Generic Host, Yesterday I configured it with Generic Host under DNS>Servers and called them into pools. Assigned it to GSLB. Now am able to get the dns request directly to backend servers and its working like a magic.
I need to work more on monitors as the only one server should be active all the time and rest should be in standby until the first one is down.
Tho, really appreciate the efforts Salah and Nik for guide me where to look and work. Its working now. 🙂
Glad to hear that you managed to solve this ! Keep in mind that for generic hosts as you said you need health monitors that are not type bigip" and you could get monitoring issues if you do not have a prober pool:
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com