mod-hosts
v0.1.5hosts
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"]
}
}
}
};