Update to hosts file not working
location: ubuntuforums.com - date: August 28, 2011
I have updated hosts file with some entries and restarted the machine. The changes were not effective. I also tried 'nscd restart .... but no use.
For example, I added following entry
After the restart I was able to browse cnn.com. Any thoughts?
Is there a way to recover the content of /etc/hosts file?
location: linuxquestions.com - date: April 17, 2008
I am new to linux (unix in general) and while exercising "tr" command from
one of my school books, I end up erasing the content of the /etc/hosts file and then I read the following note:
#Do not erase the following line, or various programs
# that require network functionality will fail.
I use cat command to see which line my book was referring to and found that
the file is empty.
So, my question is how to fix this problem. Is there a way to know to recover the content of that file? How.
I'm using a Mac OS X (10.5 ) Leopard on the Intel iMac.
[SOLVED] /etc/hosts file not working
location: linuxquestions.com - date: April 28, 2013
I can get mys hosts file entries to resolve and changes to the hosts file don't show up on nslookup. I'm running Ubuntu
Some search engine blogs are saying that the hosts file isn't checked by DNS lookups but that is exactly what I want it for.
So my nsswitch.conf.conf is
Testing web server on local network with ports... how to use with hosts file?
location: linuxquestions.com - date: June 8, 2009
I have just setup a local webserver on a (virtual machine) Ubuntu box.
I have successfully set up multiple sites via virtual hosting using the server's IP with a different port number for each website.
Since this is only intended for local testing, it wasn't necessairy to access these via the web, so I went ahead and added each adress to my local Windows HOSTS file so I could test the websites with their actual domain names.
I found out you can't use port numbers in the HOSTS file... So what are the alternatives?
/etc/hosts and /etc/hostname
location: ubuntuforums.com - date: May 22, 2012
Okay I am totally confused about this getting so many different answers from around the net. I believe this is what is giving me grief with ldap on the server. If my fqdn for my server is server1.elrancho.net than how should this be set in both of these files. I am a newbie at this so be patient with me please.
After doing some research I have changed the entries in the files to this:
I have this currently in my /etc/hostname file
I have this in my /etc/hosts file:
127.0.0.1 server1.elrancho.net elrancho
I do not currently have a line of:
127.0.0.1 localhost or xxx.xxx.xxx.xxx server1.elrancho.net or 127.0.1.1 elrancho.
I got out of the post on setting up the ldap server that, if I understand him should be
127.0.0.1 server1.elrancho.net elrancho. Sorry but like I said I am completely confused on this. I am alos running a dns server on the same box for resolving entries www.elrancho.net, ns.elrancho.net etc.
I also think something is not quite right since accor
[SOLVED] Can ping Ubuntu hosts but not Debian hosts by hostnames
location: linuxquestions.com - date: March 8, 2012
I have my router running dd-wrt doing dnsmasq for dns resolution.
I have two Ubuntu hosts and three Debian hosts.
All the hosts can ping each other by IP address.
All the hosts can ping the Ubuntu boxes by hostname.
No one (except the machine itself) can ping Debian hosts via hostnames.
I also have a box running Crux that I can't ping by hostname.
nslookup fails when trying ot find the Debian boxes.
Does anyone know why this could be?
Ubuntu 12.04 Shorewall + OpenVpn limited communication
location: linuxquestions.com - date: June 17, 2013
I have some issues with one of my servers (let's call it ServerA). It runs Ubuntu 12.04 with:
- Shorewall (220.127.116.11)
- OpenVPN (2.2.1 x86_64-linux-gnu)
- Squid (3.1.19)
ServerA connects to the internet router by eth0. It connects via eth1 to the internal network. Openvpn is offered via tap0. The interface br0 bridges the interfaces eth1 and tap0.
I can connect from outside (with ClientA) via OpenVPN to the server. I get an IP address from OpenVPN, can ping ServerA (and vice versa) and connect through the proxy to the internet.
BUT: I can not reach any client or server connected to ServerA via eth1.
I spent a lot of time to investigate the issue. I found that my ping from ClientA to ClientB reaches ClientB, but the response packet seems to be dropped by ServerA.
A ping from ClientB to ClientA is also dropped by ServerA.
How can I figure out why ServerA drops the packages from internal LAN (ClientB) to ClientA?
Here are some of my config files. Please let
Zone Minder USB Web Cam Not working
location: linuxquestions.com - date: May 24, 2011
I am wanting assistance with getting Zoneminder working under ubuntu 11.04.
I have ran the install and setup the settings via http://ipaddress/zm
added the camera re instructions.
I cannot view anything via Zone Minder.
Cam is a Logitech Pro 5000
Any help would be greatly appreciated.
Virtual Hosts and httpd.conf
location: ubuntuforums.com - date: June 2, 2012
How the virtual hosts and httpd.conf file are related?
if i want to run two domain , how can i do that .Each domain require httpd.conf or just one is enough
Ubuntu ignoring /etc/hosts file 10.04
location: ubuntuforums.com - date: October 26, 2010
I'm trying to use the /etc/hosts file for adblocking, but both firefox and opera seem to ignore it on my setup. I've messed around with this install a bit, but nothing with the networking.
I've searched the forums for a few reasons this might be happening - I've verified that the permissions on hosts and nsswitch.conf file allow them to be read by everyone (644).
I can successfully ping localhost, if that matters.
My hosts file looks like this, truncated of course, and it terminates in a blank line. The blank line didn't make a difference, but I read a post that suggested it would, so I added that. I also added the third entry 'test' just to verify that the hosts file wasn't being looked at at all, and it was unable to resolve through ping.
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
Page: 1 2 3 4 5 6 7 8 9 10