Ubuntu :: File Hosts Change After Reboot In 10

Apr 25, 2011

I want to know why when i change the file hosts, fill it with due parameters and reboot the system, the latter unexpectedly change ?

View 2 Replies


ADVERTISEMENT

General :: Reboot Not Required After Changing HOSTS File Content?

Oct 18, 2010

I was having a discussion with someone who asked me whether a Linux OS has to be rebooted when the hosts file is modified. From personal experience, on Windows I change the file but don't reboot and I've seen others do the same thing. I assume Linux has no exception(s), but is there any reason why a reboot is not required (to at least justify my actions)?

View 2 Replies View Related

Ubuntu Networking :: Change Hosts File By Network Connection?

May 11, 2010

Is it possible to have different /etc/hosts file for different network connections without having to go in and change it every time? The why: I have dyndns and port forwarding to get to my desktop. My laptop is sometimes on the same network, and sometimes not. Also, sometimes the dyndns doesn't update properly, or the outside connection is down, but I want to get to my desktop (and I'm too lazy to walk up the stairs). I'd like to be able to keep one set of bookmarks, ssh command aliases, etc. that would always get to it the fastest and most reliable way possible.

View 1 Replies View Related

Security :: Use Current /etc/hosts File To Do An Ssh-keyscan Instead Of Making A Special List Of Hosts?

May 2, 2011

I'm trying to use ssh-keyscan to get some known_host file population going on, but I have a ton of hosts I want to scan, all with multiple aliases in /etc/hosts. Is there a way to use my current /etc/hosts file to do an ssh-keyscan instead of making a special list of hosts that (from what I've read) ssh-keyscan needs?

View 2 Replies View Related

Ubuntu :: No Hosts File - Just Hosts.allow And .deny?

Jan 26, 2011

Probably an easy (which means stoopid) question...I am trying to reroute a website using my hosts file so that it matches my servers certificate file for testing without effect dns and the live site.When I went to edit my /etc/hosts file it is non-existent. I have, I am assuming in it's place, hosts.allow and hosts.deny. Can anyone explain why I do not have a hosts file?

View 1 Replies View Related

Ubuntu Servers :: Hosts And Hostname Resetting At Reboot?

Jul 13, 2010

I'm facing bit of a conundrum with my new server. It is essentially a distributed-virtual Plesk Virtuoso container with a rather simple LAMP setup (PHP5 etc) and virtual hosting. Running 10.04 LTS.

The issue is that on each reboot, the /etc/hosts and /etc/hostname files are reset with their original configs causing the virtual hosting to break, i.e. rather than hosting the vhosts correctly, it essentially routes all traffic to /var/www, or essentially 000-default ~ this beats the whole point of vhosting in the first place!

Is there any way to get around them being overwritten at boot? A very crude workaround would be to set a script to load at boot via init.d and have it rewrite both files to their correct configs - of course, I have no idea as to the point during boot at which they get replaced.

View 2 Replies View Related

Ubuntu Installation :: Change /etc/hosts In Order To Upgrade?

Aug 8, 2011

I am trying to upgrade my system from 7.04 to a current version. I now face the known problem that my machine tries to download everything from archives.ubuntu.com although it has all been moved to old-releases."If you have this problem, you could change your /etc/host file to point archive.ubuntu.com to old-releases. Do this by running host old-releases.

ubuntu.com | grep address | awk '{print $NF" archive.ubuntu.com"}' | sudo tee -a /etc/hosts."

I have tried typing that information into the command line, with no success. I opened the /etc/hosts file in emacs (using sudo) but did not see an obvious place to impliment the fix.

View 1 Replies View Related

Networking :: Centos Cannot Ping Hosts On The Same Subnet After Change To Static Ip

Jul 26, 2011

I am using centOS 5.0. After I change from DHCP to static IP address, I cannot ping hosts on the same subnet. The error message says destination host unreachable. Before I made the changes I was able to ping and now even I change it back to DHCP I still cannot ping with the same destination host unreachable message. The centOS is running on VMware on a Windows host.

ifconfig shows

eth0 Link encap:Ethernet HWaddr 00:0C29:A1:9A:10
inet addr: 192.168.0.202 Bcast:192.168.0.255 Mask: 255.255.255.0
inet6 addr ......

After pinging 192.168.0.106 (106 is on and other host can ping it), arp -a shows ? (192.168.0.106) at <incomplete> on eth0 I tried different ways by disabling the firewall and and disabling SE protection. No Luck.

View 13 Replies View Related

Ubuntu Networking :: Proxy Settings: Allowed Hosts Instead Of Ignored Hosts

Aug 17, 2011

Well, as many proxy applications, GNOME Network Proxy Preferences only allow to ignore hosts. What I want to do is exactly the opposite. I only want to use the proxy for few sites. Is it possible to define only the allowed hosts in any way?

PS: I know FoxyProxy add-on for Firefox does this, but 1)I don't use Firefox and 2)I want the proxy settings system wide not only for browser.

View 9 Replies View Related

Ubuntu :: Add An Entry To The Hosts File?

Jul 5, 2010

I share a computer with my brother. It runs Lucid Lynx. I want to add an entry to the hosts file that will affect him negatively. Is there a way I can add the entry, without it affecting him, like, is there a user-specific hosts file?

View 9 Replies View Related

Ubuntu :: Is The /etc/hosts File Related To Subdomains

Feb 16, 2010

I am trying to add subdomains on ubuntu 9.10 desktop edition and and I am not sure whether I need to add some info.(such as 127.0.0.1 sub1.example.com and so on) to the /etc/hosts file like the windows' windows/system32/drivers/etc/hosts file. I used to use the wamp-server(on Windows 7), I needed to edit 3 files, httpd.conf, httpd-vhosts.conf and hosts. And almost every edit is made in the httpd-vhosts.conf file on wamp-serveriles should be edited? or what else should be done that I didn't mention?

View 1 Replies View Related

Ubuntu :: How To Password Protect The HOSTS File

Jul 13, 2010

tell me a way to password protect the HOSTS file in ubuntu so that when i block certain websites the other person cannot unblock them.
IMP: i donot want the HOSTS file to be protected by 'root' password as the other person knows it.

View 9 Replies View Related

Ubuntu :: Hosts File Keeps Reverting / Stop It To Do So?

Aug 3, 2011

I'm configuring Apache to work from several development directories as per these instructions: http://tuxtweaks.com/2009/07/how-to-...-apache-linux/

Got it all to work ok, for a while but then when I reboot the entries I've made in the hosts file dissapear and I can no longer use them.

I'm assuming DHCP reverts the hosts file or something?

What's the 'proper' way to get an entry into a hosts file and have it stay there?

View 3 Replies View Related

General :: Ubuntu - How To Lock The /etc/hosts File With A Passcode

Dec 18, 2010

I would like to lock the /etc/hosts file somehow in a way that only someone else can unlock it, possibly using a lock code.I would then give the passcode to someone else.I'm running Ubuntu 10.10.

View 2 Replies View Related

Ubuntu Networking :: Way To Have / Etc / Hosts File Re-read Sooner?

Feb 28, 2011

I often manually add a troublesome domain (e.g., advertisements, fake virus alerts, etc.) to my /etc/hosts file on Ubuntu 10.04 Lucid; but the effect isn't immediate.My hosts file is already fifteen thousand lines long (having combined all the hosts files I could find on the net, including the MVP one); but I still, almost daily, find a new irritant to add to my /etc/hosts file.My problem is I do not understand WHEN the /etc/hosts file is next read after a change.I've been rebooting to make sure the hosts is re-read; but there must be a simpler way.My question:

- WHEN is the /etc/hosts file reconsidered in Ubuntu?
- Is there a way to have the /etc/hosts file re-read sooner?

View 9 Replies View Related

Networking :: Add Host Name For The NIC Card Into /etc/hosts File

Jan 31, 2010

Instructions say "Add hostname for the NIC card into /etc/hosts file" do I touch or mkdir it in?

View 11 Replies View Related

Server :: Postfix DNS: Why Does It Not Check Hosts File

Mar 22, 2011

I run a few virtual servers at home behind a NAT, including an e-mail server, with dynamically updated dns records pointing to each of the servers. Consequently, I suffer from the loopback problem when working with these servers from my desktop PC. (E.g., I ping one of the dns hostnames and the ping goes to my router instead of the server). I fixed this problem by manually adding the in-home IP addresses and name pairs to my /etc/hosts, and then setting /etc/host.conf to a "hosts, bind" order.

This seems to work for every application on my desktop except for one: the postfix installation on my desktop PC (used for mailing smartctl messages and so forth) cannot communicate with my in-home e-mail server (times out). I checked the logs, and it looks like it is trying to use the IP address from the actual A-RECORD, rather than the address in my hosts file.

So I'm not quite sure what to do. There seems to be a "proxy_interfaces" parameter in main.conf which might be relevant, but I think it only deals with received mail. I'd prefer to have the mail going to that e-mail server, rather than also having to check the spool on my local desktop accounts.

View 1 Replies View Related

Ubuntu Servers :: Unable To Configure Virtual Hosts File Properly

Jun 28, 2011

I'm having problems configuring my virtual hosts file properly The site [URL]... opens on http and https The site 10.0.1.3/myapp/ works
I am trying to redirect all traffic from [URL].... to [URL].... while maintaining access to [URL]....

[Code]....

View 2 Replies View Related

OpenSUSE Network :: Migrate Windows' Hosts File?

May 24, 2011

I have some settings within hosts file of my Windows Vista. It helps me to bypass some limitation and get online better. I would like to migrate some settings to openSUSE 11.4.Is there anyone who knows how can I tune my openSUSE?FYI, setting of hosts file is lines of <IP Address> <Spaces OR Tabs> <URL OR Alias>

View 4 Replies View Related

General :: Dnsmasq Without Altering /etc/hosts File Manually?

Jul 19, 2011

I've trying to get dnsmasq working as a combined dns and dhcp server. It's infuriating so far... In short, the DNS works fine for anything added to /etc/hosts, and the dhcp works fine, but the dhcp is not updating the dns with hostname information from clients.

The outcome of this is that i can only ping a node by hostname if i know it's address, which means setting a static dhcp allocation and putting the hostname into /etc/hosts manually, which is very annoying and kind of defeats the poit of dhcp. There must be a way to get dnsmasq to update the hosts file, surely The clients aren't using fqdn's if that matters, and i think i've tried every combinination of "expand-hosts" and "domain=" following is the dnsmasq config file contents:

domain-needed
bogus-priv
except-interface=tun0

[code]....

View 2 Replies View Related

OpenSUSE Network :: YaST Creates Only 1 File For Many Virtual Hosts?

Jun 8, 2010

When I converted to OpenSUSE 11.2, and went through YaST HTTP Server Configuration, creating my virtual hosts under the Hosts tab, YaST combinedm all int ile,"/etc/apache2/vhosts.d/ip-based_vhosts.conf".I did google and read, [URL]for further assistance.I'd like each virtual host to have its own file under vhosts.d, and wondering why YaST did not do that.The file /etc/apache2/httpd.conf laid out the file structure, and all vhosts.d/*.conf files are included.Is there a way to tell YaST to create separate files for each vhost, or does the user have to manually do it?

View 5 Replies View Related

Networking :: Map Url Adress To Localhost (edit Hosts File In Windows)

Feb 3, 2010

I run a local apache server, that has some virtual hosts running. Now I want to be able to locally connect to these virtual hosts, but when I try this, it puts www and .com behind the url and says it can't find it. On Windows I know the equivalent, editing the hosts file. Is there something similar in linux?

View 1 Replies View Related

CentOS 5 Networking :: Network Script - Changing Hosts File?

Aug 4, 2009

I need a script but i am not good at programming soWhat script have to do:- Every 1 minute is checking if ip address is available (ping)- if ip answers nothing happens- if ip does not answers: * file /etc/hosts is changed by one stored in /home/user/hosts* notification by xterm to restart some programIf finally ip answers file /etc/hosts is changed by one stored in /home/user2/hosts

View 6 Replies View Related

Ubuntu Servers :: Apache2: SNI & Virtual Hosts - Multiple Virtual Hosts With Ssl And Only 1 Ip Address

Jan 17, 2011

[Code]....

What I want: multiple virtual hosts with ssl and only 1 ip address: In my example: server = 192.168.227.129

[Code]....

View 9 Replies View Related

Debian Configuration :: Editing / Etc / Hosts File To Make Website Loopback

Sep 6, 2010

I am trying something a bit tricky.Suppose there is a website URL...Now suppose when i open a file /var/www/ test.php which connects to the above website to gather some info and then allow me to further in the process, i want it to instead direct to a file say /var/www/test_done.php.How do i edit my hosts file for such a scenario? Is there any other better option than using a hosts file ?

View 1 Replies View Related

General :: Scp With Range Of Files To Be Copied To - From - Or Between Different Hosts - Error - No Such File Or Directory

Jun 27, 2011

Working fine: ==> scp my_log-bin.01393[0-9] root@192.168.103.66:/backup/ error - No such file or directory: ==> scp my_log-bin.0139[30-99] root@192.168.103.66:/backup/

View 4 Replies View Related

Server :: Append A Set (or Sets) Of Data To A File(or Files) On Remote Hosts?

Dec 26, 2009

If I need to append a set (or sets) of data to a file(or files) on remote hosts what is the best mechanism by which to do that? My first thought was ssh but the command syntax to append to a remote file isn't clear to me. Can anyone point me in the right direction here?

View 4 Replies View Related

Ubuntu :: Device Paths Change After Ever Reboot?

May 2, 2011

After I reboot my Ubuntu 10.04.2 LTS l machine my device paths change (even the boot drive) and this causes havoc on my two RAID5 arrays. The device paths change and causes a mismatch in my fstab and I have to manually mount both RAID arrays every time. It's quite frustrating and annoying and I would love for it to stop. This even happens for the boot path.

Example: my boot path is /dev/sde5 I reboot my machine and my boot path changes to /dev/sdm5

Why does this happen? And more importantly how can I stop it from happening so it stops messing with my RAIDs?

View 3 Replies View Related

Fedora :: Change The Reboot Of Ctrl+alt+del For Shutdown?

Jul 19, 2011

I want to change the reboot of ctrl+alt+del for shutdown, how i can do this in Fedora 15 ?

View 1 Replies View Related

Hardware :: Block Device Names Change After Reboot

Jan 19, 2011

I built a Raid5 volume with 3 SATA II hard disk drives. Further I have a system disk conected through IDE. During the first setup the IDE disk becomes sda, the SATA II disk sd[bcd] respectively. Now, sometimes the device names change after reboot - why ever... E.g. one of the raid5 disk become sda and so I got an error message during the boot procedure regarding the raid set. Curious, when the system is up and I stop and restart the Raid5 volume it comes up and runs fine. Because I'm currently at work I can't post any more detailed config files at the moment.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved