[Rspamd-Users] Radix Error?
G.W. Haywood
rspamd at jubileegroup.co.uk
Thu Sep 12 23:14:37 UTC 2024
Hi there,
On Thu, 12 Sep 2024, christian via Users wrote:
> I have been getting the following error message in Rspamd for some time.
>
> ...
> 2024-09-12 22:40:27 #679553(fuzzy) <380cbe>; radix; rspamd_radix_add_iplist:
> getaddrinfo failed for localhost:11335: Der Name oder der Dienst ist nicht
> bekannt
> ...
"Der Name oder der Dienst ist nicht bekannt" =>
"The name or service is not known". :)
This looks like a name service failure. Are you running a name server?
See for example
https://serverfault.com/questions/129556/how-do-i-fix-getaddrinfo-localhost-name-or-service-not-found-for-telnet-serve
It looks like rspamd is asking for the IP address for 'localhost' and
it isn't getting a reply that it understands. The name resolution
issue is most probably on the host which is running rspamd, it would
be unusual to ask a remote nameserver for the address of localhost.
The name 'localhost' would normally resolve to the address 127.0.0.1
(for IPv4) or the address ::1 (for IPv6).
You should be able to get a response from the command 'ping localhost'
similar to this:
8<----------------------------------------------------------------------
$ ping -4 localhost
PING (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.110 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.362 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.263 ms
...
...
8<----------------------------------------------------------------------
The above ping on my desktop used IPv4, because I added '-4', otherwise
I would see
8<----------------------------------------------------------------------
$ ping localhost
PING localhost(localhost (::1)) 56 data bytes
64 bytes from localhost (::1): icmp_seq=1 ttl=64 time=0.116 ms
64 bytes from localhost (::1): icmp_seq=2 ttl=64 time=0.129 ms
64 bytes from localhost (::1): icmp_seq=3 ttl=64 time=0.102 ms
...
...
8<----------------------------------------------------------------------
but it depends on how your system is set up whether it default to IPv6
or IPv4. CTRL-C quits ping.
Usually you will have a file
/etc/nsswitch.conf
see for example
https://en.wikipedia.org/wiki/Name_Service_Switch?wprov=srpw1_0
which determines how searches for names are performed - names like
'localhost' are often resolved by reading the local file
/etc/hosts
see for example
https://en.wikipedia.org/wiki/Hosts_(file)
Usually there's also a file
/etc/resolv.conf
see for example
https://en.wikipedia.org/wiki/Resolv.conf
which configures parts of the name service.
Check that you have those files and that the contents make some sort
of sense. They're only small and there's nothing secret so you could
post them here.
See for example
https://debian-handbook.info/browse/stable/sect.hostname-name-service.html
for more information. Different distributions have different ways of
setting up name resolution so to be specific we will need to know more
about your system.
--
73,
Ged.
More information about the Users
mailing list