Giter VIP home page Giter VIP logo

Comments (2)

hoatle avatar hoatle commented on September 14, 2024

How to use this:

add this section into vagrant_config_override.json root, like:

{
  "vm": {
    "networks": [
      {
        "mode":"public_network",
        "ip": "192.168.1.99",
        "bridge": [
          "en0: Wi-Fi (AirPort)",
          "wlan0"
        ]
      }
    ]
  },
  "plugins": {
    "vagrant-hostsupdater": {
      "required": true,
      "config_key": "hostsupdater"
    }
  }
}

vagrant up and it should work with dev.local default hostname.

To use a different hostname:

{
  "vm": {
    "hostname":"myhost.local",
    "networks": [
      {
        "mode":"public_network",
        "ip": "192.168.1.99",
        "bridge": [
          "en0: Wi-Fi (AirPort)",
          "wlan0"
        ]
      }
    ]
  },
  "plugins": {
    "vagrant-hostsupdater": {
      "required": true,
      "config_key": "hostsupdater",
      "aliases": ["myalias.local", "myproject.com"]
    }
  }
}

from dev.

hoatle avatar hoatle commented on September 14, 2024

for DNS server set up:

Please follow these steps below:
Java 1.6 or later is required
Download teracy-pdnss-0.1.0-XXX-jar-with-dependencies.jar at
http://maven.teracy.org/content/repositories/public-snapshots/org/teracy/teracy-pdnss/0.1.0-SNAPSHOT/
Know your machine IP to make it as a DNS server (for example: 192.168.1.35)
Run this:
On Linux, Mac OSX:
$ sudo java -jar teracy-pdnss-0.1.0-XXX-jar-with-dependencies.jar -v -l 192.168.1.35 -s 192.168.1.35 -d "local.dev"
On Windows:
just run
java -jar teracy-pdnss-0.1.0-XXX-jar-with-dependencies.jar -v -l 192.168.1.35 -s 192.168.1.35 -d "local.dev"
and Windows will ask for permission, click allow then service will just run fine.
Set DNS server from your client devices to the listen address (for example: 192.168.1.35)
Open local.dev on your client devices to check.

from dev.

Related Issues (20)

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.