[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [MirageOS-devel] Setting up multiple records in Jitsu
On Wed, 16 Sep 2015, at 04:42, Matthew Bajor wrote:
Hi!
If you want to serve unikernels from different domains, you can add a new configuration string for the next unikernel as the second parameter, e.g.
sudo /home/vagrant/.opam/4.01.0/bin/jitsu \
dns=service1.example.org,ip=10.100.199.41,...,nic=xenbr0 \
dns=service2.example.org,ip=10.100.199.42,...,nic=xenbr0 ...
You should also be able to add multiple records for a single unikernel by specifying the dns= key multiple times. Unfortunately this seems to be broken at the moment. I've created an issue to track the bug+fix here [1].
When the bug is fixed the following should serve the unikernel ip from three different domains (www1.example.org, www2.*, www3.*).
sudo /home/vagrant/.opam/4.01.0/bin/jitsu [...]\
dns=www1.example.org,\
dns=www2.example.org,\
dns=www3.example.org,\
ip=10.100.199.41,\
kernel=../myblog/_mirage/mir-www.xen,\
memory=64000,\
name=www,\
nic=xenbr0
The command line interface currently doesn't support loading a zone-file, but ocaml-dns (which Jitsu is using) is capabable of doing this so it shouldn't be too hard to add this feature. I'm not very happy with the way the configuration is passed to Jitsu at the moment, as the number of parameters you have to pass per unikernel starts to become quite long. It would probably be better to be able to import a configuration file at this point, which could also make it easier to add other DNS records. We could also add additional fields in the Irmin database to support generic DNS records so we could import zone files directly into the db. Patches that improve any of this are very welcome :-)
1. https://github.com/mirage/jitsu/issues/25
Magnus
_______________________________________________ MirageOS-devel mailing list MirageOS-devel@xxxxxxxxxxxxxxxxxxxx http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |