optix2000 / nsd_exporter

Prometheus exporter for NSD (Name Server Daemon)
BSD 3-Clause "New" or "Revised" License
8 stars 8 forks source link

Servname not supported for ai_socktype #5

Open mator opened 4 years ago

mator commented 4 years ago

Hello!

Trying to run nsd_exporter getting the following error message:

# ./nsd_exporter 
2020/06/10 12:20:16 dial tcp: lookup tcp/⋸: Servname not supported for ai_socktype

what does this error message means?

optix2000 commented 3 years ago

Looks like there's an invalid character somewhere in your NSD config file as tcp/⋸ isn't a valid address.

Will add something in to do more validation

amanpreetbatra commented 1 year ago

Hey. Is there a workaround for this?

velechac commented 5 months ago

Hey. Is there a workaround for this?

Hi, running exporter with arguments bellow works for me.

-key /etc/nsd/nsd_control.key  -cert /etc/nsd/nsd_control.pem -ca /etc/nsd/nsd_server.pem -nsd-address 127.0.0.1:8952