Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[apps::protocols::dns::plugin] Support Search type SRV #5396

Open
mat44444 opened this issue Jan 20, 2025 · 0 comments
Open

[apps::protocols::dns::plugin] Support Search type SRV #5396

mat44444 opened this issue Jan 20, 2025 · 0 comments

Comments

@mat44444
Copy link

Hi, we want to validate response from SRV DNS request.

Currently it's not supported to specify : --search-type='SRV'

Regards

Sample request:

/usr/lib/centreon/plugins//centreon_protocol_dns.pl --plugin=apps::protocols::dns::plugin --mode=request --nameservers=###.###.###.### --search='_sip._udp.XXXXXXX' --search-type='SRV' --warning='' --critical='' --dns-options='debug=1'

Response like:

;; search( _sip._udp.XXXXXXXXX SRV )

;; udp send [###.###.###.###]:53

;; reply from [###.###.###.###] 250 bytes
;; HEADER SECTION
;; id = 17650
;; qr = 1 aa = 1 tc = 0 rd = 1 opcode = QUERY
;; ra = 0 z = 0 ad = 0 cd = 0 rcode = NOERROR
;; qdcount = 1 ancount = 4 nscount = 0 arcount = 0
;; do = 0

;; QUESTION SECTION (1 record)
;; _sip._udp.XXXXXXXX. IN SRV

;; ANSWER SECTION (4 records)
_sip._udp.esrp.qc.XXXXXXXX. 300 IN SRV ( 10 10 5060
sip.bcf.qc.XXXXXXXX. )
_sip._udp.esrp.qc.XXXXXXXX. 300 IN SRV ( 20 10 5060
sip.bcf.on.XXXXXXXX. )
_sip._udp.esrp.qc.XXXXXXXX. 300 IN SRV ( 30 10 5060
sip.bcf.ns.XXXXXXXX. )
_sip._udp.esrp.qc.XXXXXXXX. 300 IN SRV ( 40 10 5060
sip.bcf.mb.XXXXXXXX. )

;; AUTHORITY SECTION (0 records)

;; ADDITIONAL SECTION (0 records)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant