BerlinVagrant / vagrant-dns

A plugin to manage DNS records for vagrant environments
MIT License
490 stars 50 forks source link

Wildcard subdomain with vagrant Version 5.0.16 r105871 not seems to be working #43

Closed itsazzad closed 7 years ago

itsazzad commented 8 years ago

I am in need to support wildcard subdomains. Suppose example.dev is my domain name. And I wanna any.example.dev should also be working. I tried below. Some months ago it worked may be. But now its not working may be because of the latest vagrant?

  config.dns.tld = "dev"
  config.vm.hostname = "example"
  config.dns.patterns = [/^.*example.dev$/]
fnordfish commented 8 years ago

Hi. No vagrant has pretty much nothing to say in that regard. Your config should work for your case. A known issue is, that when you have (or had) multiple boxes configured with alike dns patterns, vagrant-dns might pick an old IP.

You can try cleaning up those config files: ~/.vagrant.d/tmp/dns/resolver/* by manually deleting conflicting lines (or deleting all the lines)
Don't forget to restart vagrant-dns.

Robert Schulze

On 24. März 2016 at 18:32:31, sazzad hossain khan (notifications@github.com(mailto:notifications@github.com)) wrote:

I am in need to support wildcard subdomains. Suppose example.dev is my domain name. And I wanna any.example.dev should also be working. I tried below. Some months ago it worked may be. But now its not working may be because of the latest vagrant?

config.dns.tld = "dev" config.vm.hostname = "example" config.dns.patterns = [/^.*example.dev$/]

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub(https://github.com/BerlinVagrant/vagrant-dns/issues/43)