Module: VagrantPlugins::DNS

Defined in:
lib/lh-vagrant-dns.rb,
lib/vagrant-dns/env.rb,
lib/vagrant-dns/action.rb,
lib/vagrant-dns/config.rb,
lib/vagrant-dns/plugin.rb,
lib/vagrant-dns/command.rb,
lib/vagrant-dns/version.rb,
lib/vagrant-dns/dns_server.rb,
lib/vagrant-dns/env_helper.rb,
lib/vagrant-dns/action/setup_env.rb,
lib/vagrant-dns/action/stop_dns_server.rb,
lib/vagrant-dns/action/create_resolvers.rb,
lib/vagrant-dns/action/start_dns_server.rb,
lib/vagrant-dns/action/register_patterns.rb,
lib/vagrant-dns/action/create_daemons_dir.rb

Defined Under Namespace

Modules: Action, EnvHelper Classes: Command, Config, DNSServer, Env, Plugin

Constant Summary collapse

VERSION =
"0.0.6"

Class Method Summary collapse

Class Method Details

.listenArray

Returns the default interfaces that a ruby dns server listens to.

Returns:

  • (Array)


21
22
23
# File 'lib/lh-vagrant-dns.rb', line 21

def self.listen
  @listen ||= [[:udp, "127.0.0.1", 5300]]
end

.namespaceObject



25
26
27
# File 'lib/lh-vagrant-dns.rb', line 25

def self.namespace
  @namespace ||= "dns"
end

.source_rootPathname

This returns the path to the source of this plugin.

Returns:

  • (Pathname)


14
15
16
# File 'lib/lh-vagrant-dns.rb', line 14

def self.source_root
  @source_root ||= Pathname.new(File.expand_path("../../", __FILE__))
end