Skip to content

troxor/libnss_consul

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

libnss_consul

Build Status

A libnss resolver for Consul

The resolver will query the HTTP API of a Consul server to lookup hosts.

$ ping web.service.consul
PING web.service.consul (192.168.1.1) 56(84) bytes of data.

Installation

This plugin requires json-c and libcurl.

$ make
$ sudo ln -s $(pwd)/libnss_consul.so.2 /lib/

Then, include "consul" in your /etc/nsswitch.conf files section:

...
hosts = files consul dns
...

Status

"code sucks, but works-- barely"

Missing features/Limitations

  • Only one IP address returned for a service
  • No IPv6 yet
  • ???
  • ???

About

NSS module for Consul name lookups

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published