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
ADVERTISEMENT
Dec 4, 2010
Ubuntu 10.10 64 bit
I need to set /etc/hostname and /etc/hosts so that on running;
$ hostname
Code:
ub1004
$ hostname -a
Code:
ub1004
[Code]....
View 2 Replies
View Related
Oct 8, 2010
What is the difference between /etc/hosts and /etc/hostname?
I think the /etc/hosts file stores all ip address associated with this computer, but what about /etc/hostname?
It sounds almost like the computer name, but what is it used for?
View 6 Replies
View Related
Jan 23, 2011
I'm trying to change my computer name and looked up other posts and found I need to edit /ect/hostname and /ect/hosts, but neither of these folders exist so how do I change my computer name in ubuntu 10.10?
View 3 Replies
View Related
Dec 4, 2010
Ubuntu 10.10 64 bitI need to set /etc/hostname and /etc/hosts so that on running;$ hostname Code: ub1004 $ hostname -a Code: ub1004 set them as;cat /etc/hostname Code: ub1004 cat /etc/hosts Code: 127.0.0.1localhost.localdomain123.123.123.123ub1004.domain.comub1004
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
[code]....
View 7 Replies
View Related
Feb 22, 2010
I have a problem with my client PC. PC has a static ip 10.162.41.159 (supplied by editing and saving eth0 file, not by command line) in LAN. netmask is 10.162.41.128 and gateway is 10.162.41.129. My problem is after rebooting, ip is resetting into 10.162.41.130. It happens after rebooting even network cable is removed!!!if i restart network service ip will reassigned into 10.162.41.159. i dont know why this happens.
View 4 Replies
View Related
Mar 27, 2011
As said in the subject, desktop decoration settings keeps resetting after rebooting. For me it is quite boring and annoying. Why it happens? Ubuntu should keeps my preferences (as in previous versions - my Ubu 10.10, Unity)
View 4 Replies
View Related
Nov 19, 2015
I've just installed Debian 8 XFCE and I can't get the sound working properly after a reboot. I mean I can but it keeps resetting to default audio output (analog-stereo) after reboot.
I set it to Digital Stereo in Pavucontrol settings, reboot and here comes analog-stereo again.
I've tried setting digital stereo as default using pactl in the terminal but same problem. When I change settings then relog in my session, sound is working, but when I reboot it reverts back to default output. Strange.
Here's my sound card info :
lspci | grep -i audio
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
01:00.1 Audio device: NVIDIA Corporation GF114 HDMI Audio Controller (rev a1)
View 1 Replies
View Related
Apr 30, 2010
I can reach other hosts by means of their global addresses by either the IP address or hostname (that has the global address). What I want to (also) do is have a hostname that references the IPv6 link local IP address (an AAAA record in DNS, or just the fe80::<whatever> address in /etc/hosts) and use that host name in commands to access that host. The problem is, an interface ID is needed when making such a reference.
It sure looks like the programs just pass the host name string on to the resolver library, which does not understand the significance of the '%' even though it could find and see that the name preceding the '%' is consistent with that being an IPv6 link local address (e.g. the logic could have been "split at first % and see if preceeding name is found as a link local address and accept that if so, or ignore the split otherwise" ... but it isn't). Is there a different syntax for this ... or was it overlooked in the design of programming around IPv6?I want to be able to address a host by its link local address, while still using a mnemonic instead of having to type the IPv6 address.
View 1 Replies
View Related
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
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
View Related
Apr 14, 2011
This isn't really a problem or an issue but I'm kinda curious about it. I thought openSUSE generate a hostname like "linux-xxxx" when you install it and that was it. But for me it generates a new host name every time I turn on my computer. For example, right now it's "oseiler-linux" yesterday it was "mac-sophia". I'm wondering how it generates these kinds of hostnames.
View 1 Replies
View Related
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
Mar 19, 2009
Before reboot,
$ cat /etc/resolv.conf
; generated by /sbin/dhclient-script
nameserver 172.20.10.22
search mycomp.local myhost.com
After reboot, the search path in resolv.conf is overwritten by the hostname.
$ cat /etc/resolv.conf
; generated by /sbin/dhclient-script
nameserver 172.20.10.22
search penguin
View 3 Replies
View Related
Aug 31, 2010
Most of the time I rebooting, my resolv.conf is getting updated by resolvconf program, so the network connection cannot be reached. I followed this: Debian User Forums - View topic - Solving DNS problem (dhclient & resolv.conf)
View 7 Replies
View Related
Jan 3, 2010
I have installed a ubuntu 9.10 server to use mostly as a fileserver. When I installed the server I set it up as DHCP and later on I have changed the /etc/network/interfaces file, the /etc/hosts file and the /etc/hostname file. I have the ip 192.168.1.100 set on the server and I can ping and SSH this address. But I can not ping my server by it's hostname enighet. I am setting up a NFS server and I would like to use my servers hostname when I do this. Why can I not ping my server by it's hostname? These are the 3 files I have changed...
Code:
johan@enighet:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
[Code]....
View 2 Replies
View Related
Dec 22, 2010
I've looked at several tutorials and since i'm a newb I can't figure them out. I'm trying to set my hostname on my LAMP 10.04. What files do I need to configure? (all IP's below are fake)
Here are the first lines from /etc/apache2/sites-available/default
Code:
<VirtualHost 111.111.111.111:80>
ServerAdmin webmaster@localhost
/etc/apache2/ports.conf has these lines after the comments
[Code]....
View 4 Replies
View Related
Jun 22, 2011
I am trying to set up a web server, i have put in a hostname.In terminal command: hostname shows 'promisedland, but hostname -F gives me name or service not known.How do I associate hostname properly, I have registered a hostname through DynDNS.I can access the page in my browser so I know it is there, I see the blank "u made it page".I just want to host a web server w/ a directory to my shared files (movies, music etc) that are on my server.
View 2 Replies
View Related
Jan 21, 2010
I don't know if I'm posting in the right box - I'm new to both Ubuntu and this forum so please bear with me. Thing is, I spent almost 2 days trying to find a web server that meets my likes. I tried like almost every well known web server, be it Apache, Lighttpd, Nginx, and Cherokee, one by one. For each I was successfully in getting PHP up and running, but was never able to configure the virtual hosts.
I'm 99.99% sure that I - for multiple times - followed correctly the online how-to's. Especially Cherokee, I did exactly the screencast (which is just 2 steps, as Cherokee has a GUI for virtual server setups). Strange enough, with each web server the virtual hosts thing never worked for me. I always received "Server not found" error. I tried with Firefox and Google Chrome. Currently I'm on an Ubuntu 9.10 (32bit) box - I reinstalled this one over the 64bit, to vain.
Don't know if it's a problem with my DNS, but I have another machine running Windows 7 with the same DHCP settings (means same DNS and IP range). Virtual hosts work fine there on an XAMPP installation.
View 9 Replies
View Related
Apr 11, 2010
I've set up apache2, but I'm having trouble getting virtual hosts to work
my /etc/hosts
Code:
127.0.0.1localhost
127.0.1.1johnny-desktop
127.0.0.1go
[Code]....
View 2 Replies
View Related
Aug 18, 2010
I'm wondering if this is even possible before I start the learning curve with Ubuntu and apache virtual hosts.
I have a static external IP address that resolves to the various domain names I will be using. I have a web server inside my network with a private IP address and any http request to the firewall is forwarded to the webserver on the appropriate port. This setup works well when using the same web page/configuration for all of the domains.
Will it be possible to use named virtual hosts in this configuration, or will the NAT'ing interfere?
View 9 Replies
View Related
Feb 8, 2011
I have just downloaded and installed the 32 bit server version on a couple of machines.These machines are remote displays, no keyboards or mice, requiring a kick of from ssh to start the app. Its just bare sever install with TWM, X, and XDM.Problem is they don't seem to read my /etc/X0.hosts file until theres been a keyboard login. After that locally xhost returns the names from the file.I removed the exec /usr/bin/X -nolisten tcp "$@" linefrom /etc/X11/xinit/xserverrc but this also isIn the user .profile I have these 2 lines, DISPLAY='0.0'xhost +This is a real chicken and egg thing, no auto login, no keyboard for login and no ssh X access before a local login. And no easy way to make it auto login with out installing GWM.
View 1 Replies
View Related
May 19, 2011
I have been searching and reconfiguring for 6 days now and have lost several clumps of hair.. PROBLEM: I want 2+ virtual hosts on my ubuntu server (1 ip) BUT - Only the first "alphabetically" listed sites-enabled shows.
[Code]...
[Code]...
View 6 Replies
View Related
Mar 3, 2010
I have two computers.
Computer A = windows 7.
Computer B = Ubuntu Server 9.10
Computer B automatically receives an IP address from my router.
I can ping computer B from computer A using the IP address. I cannot ping computer B from computer A using its hostname.
My router did not show a hostname under it's active clients table. After some searching I found a threat where somebody suggested modifying /etc/dhcp3/dhclient.conf and adding 'send hostname "blahblah"' This allowed me to see the hostname in my router but I still cannot resolve it from my windows box.
View 9 Replies
View Related
Nov 27, 2010
I have a problem with server bcs of the machine name. I'm wondering how to change the server name to it's IP. bcs now it has name "chrochne". I've found hostname in /etc/host and in /etc/hostname. But I'm afraid of changing it in this files. I'm using webmin and virtualmin to admin the server so can I change the name somewhere in the GUI?
View 9 Replies
View Related
May 11, 2011
I saw in the tutorial "The Perfect Ubuntu 11.04 Server ISPConfig3" that it is possible to turn the internal ip into a hostname.
Example: 192.168.1.170 -> myserver.example.com
Example: 192.168.1.128 -> aserver.inet
However, when I edit my /etc/hosts file and after I echo the name to the /etc/hostname file, it still doesn't work. I am using Ubuntu Server 11.04 (Natty Narwal)
- ChosenOreo
View 2 Replies
View Related
Oct 14, 2010
I haven't needed static alias's for at least 3 months, but I'm assuming an update messed something up.
Upon every restart, my /etc/hosts file keeps getting overwritten back to the defaults; erasing all the hostname alias's I added. What would be doing this? Is there a new way that I'm supposed to define IP aliases now?
Running F12 fully updated.
View 2 Replies
View Related
May 25, 2010
I just built out an Ubuntu Server 10.04.
My problem is setting the hostname. I cloned the machine, then normally on the clone, I would change the /etc/hostname and /etc/hosts file.
However, when I do this, upon restart, I get the message, "init hostname main process (some process number) terminated with status 1"Then, when the machine finally boots, the hostname is set to (none). Literally has braces like: user@(none):
I've tried: sudo hostname machine_name but it says can't resolve hostname (none).
I've Google'd around a lot but can't get it. It may have something to do with 10.04? I have been using 9.04, 9.10 with no problems.
eric@(none):~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
code....
View 9 Replies
View Related
Oct 21, 2010
I have a ubuntu server 10.04 that will not boot. I saysno ip address specified and hostname not found refer to mount cifs blah blah blahmountall mount /directory/share [863] terminate with status 32I know its because I had a share mounted at boot but the server cannot mount the share for some reason. is there a way around this so I can boot the machine.I can ping the server. I just cant ssh to it. I need to get to a prompt some how so I can remove the mount from fstab.
View 1 Replies
View Related
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