dns: Skipping invalid node for "servernode1" NS records
dns: Skipping invalid node for "servernode2" NS records
dns: Skipping invalid node for "servernode3" NS records
dns: Skipping invalid node for "servernode4" NS records
dns: Skipping invalid node for "servernode5" NS records
on nodes servernode3, servernode4 and servernode5. The first node and second node are working fine.
These messages suddenly come without any changes on the servers.
I tried to investigate a lot but I can’t find any useful information about this.
I am not sure what’s wrong with the node3,4,5 but this issue causes a metric spiked.
The error you are seeing should only be logged if the node name contains characters other than A-Z, a-z, 0-9 or -. (See consul/agent/dns.go.)
What version of Consul are you using? Can you also provide the output of consul operator raft list peers so that I can see the names of all servers in your environment?