-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
nacos cluster.conf add ip:port records issue #12352
Comments
Our company does not let us know the IP information. so this parameter : nacos.inetutils.ip-address is not ok for us. |
After research, it is necessary to configure nacos.inetutils.ip-address as the dns address, but the dns address must meet the following rules: |
sorry, I can't get the key point in your issue, in nacos k8s demo, it use dns(domain) way to configura cluster.conf and it works well in my k8s env for thousands of nacos cluster. Is it your domain config with wrong? |
hi @KomachiSion thank you for your feedback. But there is a regex rule: [a-zA-Z0-9][-a-zA-Z0-9]{0,62}(.[a-zA-Z0-9][-a-zA-Z0-9]{0,62 })+.? which is used for check the hostname/dns, it need the hostname/dns must be contains (.) in the hostname/dns, I don't think it makes sense. Our company's host name does not have (.) when it is defined. I'm not sure if my understanding is correct. I directly modified the regular expression and configured nacos.inetutils.ip-address: hostname in the prod env. Is this correct? |
sorry, this is correct regular expression: [a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+\.? |
Describe the bug
nacos version: 2.1.2
when I use nacos cluster mode, configure it in cluster.conf using dns.
referring to KomachiSion's suggestion in this issue link. @KomachiSion
#3858
the ip information is still added.
Actually behavior
![image](https://private-user-images.githubusercontent.com/101961274/348631288-2a1b365a-bb19-4ea1-89cc-e5b064ec2b0b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0MDYzOTYsIm5iZiI6MTcyMTQwNjA5NiwicGF0aCI6Ii8xMDE5NjEyNzQvMzQ4NjMxMjg4LTJhMWIzNjVhLWJiMTktNGVhMS04OWNjLWU1YjA2NGVjM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ZjhiYTJlMTk1YmY0YTkzMWJkOGYyZDA0OGRlZWJmYmY5YTdmNGM5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.XBjfhWL_vRRnogO2M2e31V2ySIcR6Kx-MPVtxDqaxso)
An IP record is automatically added.
Error Logs (unable to find local peer: addedIp + port)
How to Reproduce
use dns for nacos cluster mode
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: