You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/04/23 07:24:06 UTC

[GitHub] [rocketmq-client-go] agzou opened a new issue #649: Name server does not support domain

agzou opened a new issue #649:
URL: https://github.com/apache/rocketmq-client-go/issues/649


   In K8S environment, I use DNS to replace the IP address as the address of name server, for example:``` namesrv-0.namesrv-service.rocketmq: 9876; namesrv-1.namesrv-service.rocketmq: 9876```, but I read the code, name server address must be in the format of an ip address? ``` namesrv-0.namesrv-service.rocketmq: 9876; namesrv-1.namesrv-service.rocketmq: 9876```,it can work in java client
   ```go
   func main(){
   	addr, err := primitive.NewNamesrvAddr("namesrv-0.namesrv-service.rocketmq:9876;namesrv-1.namesrv-service.rocketmq:9876")
   	if err != nil {
   		log.Fatal(err)
   	}
   	rp, err := rocketmq.NewProducer(producer.WithNameServer(addr))
   	if err != nil {
   		log.Fatalf("Can not start rocketmq producer:%v", err)
   	}
   	err = rp.Start()
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-client-go] agzou closed issue #649: Name server does not support domain

Posted by GitBox <gi...@apache.org>.
agzou closed issue #649:
URL: https://github.com/apache/rocketmq-client-go/issues/649


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-client-go] ljx0520 commented on issue #649: Name server does not support domain

Posted by GitBox <gi...@apache.org>.
ljx0520 commented on issue #649:
URL: https://github.com/apache/rocketmq-client-go/issues/649#issuecomment-1013668688


   use http://namesrv-0.namesrv-service.rocketmq:9876;http://namesrv-1.namesrv-service.rocketmq:9876
   be careful with the space 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-client-go] agzou commented on issue #649: Name server does not support domain

Posted by GitBox <gi...@apache.org>.
agzou commented on issue #649:
URL: https://github.com/apache/rocketmq-client-go/issues/649#issuecomment-825500337


   use http://namesrv-0.namesrv-service.rocketmq: 9876;http://namesrv-1.namesrv-service.rocketmq: 9876


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-client-go] agzou edited a comment on issue #649: Name server does not support domain

Posted by GitBox <gi...@apache.org>.
agzou edited a comment on issue #649:
URL: https://github.com/apache/rocketmq-client-go/issues/649#issuecomment-825500337


   use ```http://namesrv-0.namesrv-service.rocketmq: 9876;http://namesrv-1.namesrv-service.rocketmq: 9876```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org