> I do see this:

> https://github.com/hashicorp/consul/issues/854


Thanks, I have seen that too, look like a know issue. 


> Which is that the output from consul is too large and doesn't conform to the 
> RFC
> which makes Go unable to read the DNS record.

> It does feel like this is a stdlib issue. Are you able to do thinks like

> python3 -c "import socket; print (socket.gethostbyname (' api.jujucharms.com
> '))"

> While being python that is essentially what we are doing in Go. You could also
> try something like:

> main.go:
> package main
> import (
> "net"
> "fmt"
> )

> func main () {
> fmt.Println (net.LookupHost (" api.jujucharms.com "))
> }

> go run main.go

> John
> =:->

Here is the result I got :


@juju-16cbed-0:~# python3 -c "import socket; print (socket.gethostbyname 
('api.jujucharms.com'))"
162.213.33.122
@juju-16cbed-0:~# go run test-dns.go 
[] lookup api.jujucharms.com on 10.101.90.82:53: no such host

That is exactly the problem . 
If I use bind dns server, it works like a charm .. 

Not sure who to address the issue but I think, CONSUL should be JUJU compliant 
or vise versa 

Cheers


-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju

Reply via email to