May 2019
Intermediate to advanced
442 pages
11h 36m
English
This type of service discovery relies on DNS to gather data. It works by defining a list of domain names that will be queried regularly to obtain targets. The name servers that are used for resolution are looked up in /etc/resolv.conf. This discovery integration, besides supporting A and AAAA DNS records, is also able to query SRV records, which also provide the port for the service:
~$ dig SRV hey.service.example.inet...;; QUESTION SECTION:;hey.service.example.inet. IN SRV;; ANSWER SECTION:hey.service.example.inet. 0 IN SRV 1 1 8080 server01.node.example.inet.;; ADDITIONAL SECTION:server01.node.example.inet. 0 IN A 192.168.42.11server01.node.example.inet. 0 IN TXT "squad=purple"...
We can see that, by querying ...
Read now
Unlock full access