I just installed CouchDB, which looks like a fun database. Although quite new, it seems to only support IPv4 and not IPv6 … :-(

I wonder if there is a technical reason to exclude IPv6, or IPv6 is just forgotten.

[email protected]:~$ curl -v http://ip6-localhost:5984/
* About to connect() to ip6-localhost port 5984 (#0)
*   Trying ::1… Connection refused
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host
[email protected]:~$




[email protected]:~$ curl -v http://localhost:5984/
* About to connect() to localhost port 5984 (#0)
*   Trying ::1… Connection refused
*   Trying 127.0.0.1… connected
* Connected to localhost (127.0.0.1) port 5984 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.19.5 (i486-pc-linux-gnu) libcurl/7.19.5 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.15
> Host: localhost:5984
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: CouchDB/0.10.0 (Erlang OTP/R13B)
< Date: Fri, 20 Nov 2009 20:29:40 GMT
< Content-Type: text/plain;charset=utf-8
< Content-Length: 41
< Cache-Control: must-revalidate
<
{"couchdb":"Welcome","version":"0.10.0"}
* Connection #0 to host localhost left intact
* Closing connection #0
[email protected]:~$



[email protected]:~$ nmap localhost -p1-9999

Starting Nmap 5.00 ( http://nmap.org ) at 2009-11-20 21:48 CET
Warning: Hostname localhost resolves to 2 IPs. Using 127.0.0.1.
Interesting ports on localhost (127.0.0.1):
Not shown: 9996 closed ports
PORT     STATE SERVICE
631/tcp  open  ipp
5984/tcp open  unknown
8080/tcp open  http-proxy

Nmap done: 1 IP address (1 host up) scanned in 1.00 seconds
[email protected]:~$
[email protected]:~$
[email protected]:~$ nmap -6 localhost -p1-9999

Starting Nmap 5.00 ( http://nmap.org ) at 2009-11-20 21:48 CET
Interesting ports on localhost (::1):
Not shown: 9997 closed ports
PORT     STATE SERVICE
631/tcp  open  ipp
8080/tcp open  http-proxy

Nmap done: 1 IP address (1 host up) scanned in 1.21 seconds
[email protected]:~$