I'm asking if I can check the type of DNS records, in particular if they are A records or SRV. Furthermore, how can I manage the SRV records with Akka HTTP through Scala code. There is documentation about that but can you provide an example? Currently, I use
ipList = InetAddress.getAllByName(nameServer)
to fetch the list of IP Addresses associated to that name, with A Records (myserver.geo.server.com. IN A 10.58.203.190) it works correctly. But I noticed that if I add also an SRV Records (ex. _thrift._tcp.prova.geo.server.com. IN SRV 10 0 9095 myserver.geo.server.com. ), this code is not able to fetch that records.
So I think I have to use another approach, I read documentation linked above but I did'nt understand how to use it.