mod-hosts

v0.1.5
Enable remapping of requests for one host to a different IP, overriding DNS

hosts

enable remapping of requests for one host to a different IP, overriding DNS

Examples

By CLI

$ mod hosts 

By AutoTask

// Modfile
module.exports = {
    plugins: {
        hosts: "mod-hosts"
    },
    tasks: {
        hosts: {
            group1:{
                hosts: "127.0.0.1 foo.com"
            },
            group2:{
                hosts: ["127.0.0.1 foo.com", "127.0.0.1 example.com"]
            }
        }
    }
};
npm i mod-hosts

Metadata

  • MIT
  • >= 0.6.x
  • Unknown
  • released 7/17/2013

Downloads

Maintainers