SSH and sudo were starting very slowly because /etc/hostname and /etc/hosts did not match. After adding a line for the hostname in the hosts file, the initial 2-4 second delay no longer occurs.
At first I was surpised the mis-configured hosts file caused delays with SSH and sudo. I was SSH'ing to the server with a direct IP address, and sudo did not seem to require a hostname lookup.
Hi all,
I was trying to set up the hosts.deny/hosts.accept files for a virtual machine which I can only access through ssh and I stupidly set up the files as follows:
hosts.deny
ALL:ALL
hosts.accept
localhost 127.0.0.1
So you can see, I can't log in to the VM at all.
I'm going to run rsync in daemon mode on machine 1 to backup data from machine 1 to machine 2. Machine 1 has a static ip address (Fedora 13 for now, until the back up of 2 is complete). Machine 2 uses dhcp (Fedora 17). The only ip address in /etc/hosts on machine 2 is the loopback address.
Only by adding it to your hosts file on the machine from which you are trying to access it. [by TrevorH]
I have installed DNSMASQ but it was not starting as 53 port was busy.
I found out that ubuntu already had dnsmasq package and it's working.
Now the problem is...I just want to be able to resolve my hosts in /etc/hosts through it
i.e: nslookup somehostonlan localhost
to be resolved to certain IP taken from /etc/hosts file.
but this is not happening.
Why?
I'm setting up a local network and have configured a DNS server.
I just replaced my Win8 machine with Centos 6.3, and everything seems to be fine (everything I have tested so far), except DNS on my local network. I have forced my NIC to use my router as the DNS server (which in turn uses my ISP info for DNS lookups). I can get to this website, Yahoo, etc...
We have renamed our machine [Windows 2008 R2] name and it asked for restart. we did it.
But still we are able to ping the old machine name and it responds.
Strange thing is even we are able to ping the new machine name and it also responds.
[I checked that whether it is different machine or not by verifying the IP address. But IP address is same.
I'm moving code from a server that served a single domain to one that serves multiple domains. I'm using named virtual hosts to handle the different domains.