GithubHelp home page GithubHelp logo

alexxnica / landrush Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vagrant-landrush/landrush

0.0 1.0 0.0 664 KB

A Vagrant plugin that provides a simple DNS server for Vagrant guests

License: MIT License

Ruby 94.81% Gherkin 5.19%

landrush's Introduction

Landrush: DNS for Vagrant

Build Status Build Status

Landrush is a simple cross-platform DNS for Vagrant VMs that is visible on both, the guest and the host.

It spins up a small DNS server and redirects DNS traffic from your VMs to use it, automatically registering/unregistering IP addresses of guests as they come up and go down.

Note

This project is currently unmaintained and looking for maintainers! Anybody interested in helping out please contact @hferentschik.

I’d be happy to help coach anybody who wants to drop in and pick up the maintainer role for this plugin!



Installation

Install under Vagrant (1.1 or later):

$ vagrant plugin install landrush

Getting started

  1. Enable the plugin in your Vagrantfile:

    config.landrush.enabled = true
  2. Bring up a machine.

    $ vagrant up
  3. You are able to get your VM’s hostname resolved on your host:

    $ dig -p 10053 @localhost myhost.vagrant.test
  4. If you shut down your guest, the entries associated with it will be removed.

Landrush retrieves your VM’s hostname from either the vagrant config or it uses the system’s actual hostname by running the hostname command. A default hostname of "guest-vm" is assumed if the hostname is otherwise not available.

A Landrush example configuration could look like this:

Vagrant.configure("2") do |config|
  config.vm.box = "hashicorp/precise64"

  config.landrush.enabled = true

  config.vm.hostname = "myhost.vagrant.test"

  config.landrush.host 'static1.example.com', '1.2.3.4'
  config.landrush.host 'static2.example.com', '2.3.4.5'
end

See the Usage guide for further information.

Available CLI commands

Check out vagrant landrush help for the available commands.

vagrant landrush <command>

commands:
  {start|stop|restart|status}
    control the landrush server daemon
  list, ls
    list all DNS entries known to landrush
  dependentvms, vms
    list vms currently dependent on the landrush server
  set { <host> <ip> | <alias> <host> }
    adds the given host-to-ip or alias-to-hostname mapping.
    Existing host ip addresses will be overwritten
  rm, del { <host> | <alias> | --all }
    delete the given hostname or alias from the server.
     --all removes all entries
  help
    you're lookin at it!

Troubleshooting

See the Troubleshooting guide to resolve issues you face while using Landrush.

Help Out!

This project needs your feedback and help! Please do not hesitate to open issues or submit pull requests. We welcome your input. If you wish to contribute to the development of Landrush, refer to the Contributing guide for details on how you can contribute. The Development guide will help you setup your development environment.

landrush's People

Contributors

amfranz avatar aromanovich avatar bexelbie avatar boogles avatar coolbrg avatar dennisdegreef avatar ezekg avatar fh avatar glaubinix avatar greend139 avatar greglearns avatar gurpartap avatar hferentschik avatar legal90 avatar marcindulak avatar metcalfc avatar njam avatar phinze avatar preeticp avatar rjocoleman avatar sebastien-fauvel avatar spieszko avatar strzibny avatar tinco avatar vincer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.