I am trying to manage my /etc/hosts file with puppet, but I don't like the internal 'host' type, I'd like to use my own template if possible.
I have therefore defined a 'host' resource:
# Basic hosts configuration
class hosts {
# Host resource
define host (
$address,
$names
) {
}
Network::Hosts::Host {
before => File['/etc/hosts']
}
I'd like to know if it's possible on a debian machine to automatically setup the hosts file of every other computer on the network.
I'd like to be able to connect to the machine using a host name instead of the IP (ssh user@hostname instead of ssh user@192.168.1.10), but I don't want to change manually all the hosts files on the other computers on the network.
I've got Ubuntu server guest installed on a vm in a windows host.
I have setup some Apache virtual hosts on the vm , and in order to access them I add the host name to Windows hosts file.
I want to be able to access these hosts from other computers on the network , without having to configure each client hosts file (that can be a problem if use tablet or smartphone).
I know that means setting u
I've somehow deleted /etc/hosts on my testing system, which is Debian Sid. Now I want to install the default /etc/hosts. I tried dpkg -S /etc/hosts to find out which package contains /etc/hosts, but none was found. Where can I download it from ?
Hello everybody,
I've been trying to make a Fedora Core 11 box to resolve using its hosts file but it just wont.
The /etc/hosts file reads:
Code:
127.0.0.1 localhost.localdomain localhost
172.16.100.132 server.domain.com server
I've checked the /etc/host.conf file and it reads:
Code:
multi on
order hosts,bind
And the nsswitch.conf file reads:
Code:
hosts: &n
Hi guys. After using freedom app I couldn't get play store connected to internet. Was getting no connection error. Basically I couldn't get my google account connected as I couldn't sign in on youtube either and i couldn't re enter my google account after removing it... I read that If I would rename the system/etc/hosts file the problem would get fixed. I did that and it worked.
I have the following resource:
exec{'regen-nagios-hosts':
command => '/usr/local/bin/generate-nagios-host-definitions-from-hostfile < /etc/hosts > /etc/nagios3/conf.d/sv-hosts.cfg',
user => 'root',
before => Class['nagios::server'],
notify => Service['nagios3'],
require => File['/etc/hosts'],
}
Ideally, I'd want to restart Nagios only if t
Is there a text file anywhere, where I can add some hosts to so that I don't have to keep doing `xhost +host`? I thought it was meant to be /etc/X0.hosts, but I don't have this file (do I need to create it?).
what I need is: automatically add mac-addresses to some file and manually add the hostnames assigned to them, and a script will then scan my home LAN for those mac-addresses and populate the /etc/hosts file, updating whatever cache.