Ubuntu Servers :: Hostname Name Or Service Not Known
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
ADVERTISEMENT
Oct 25, 2010
I am running a debian squeeze server, and have autofs 5.0.4 installed. One of my scripts (autofs executable files) is trying to mount some of my LAN hosts.The host mount fine at start, but when unmounted automatically, it will not mount again. (At least unless I wait for 2-3 minutes).The problem is, maybe, that I get these messages in the log:
add_host_addrs: hostname lookup failed: Name or service not known
mount(nfs): no hosts available
failed to mount {myshare}
If I wait a couple of minutes, the share is mounting fine, but that is not an option.The mount command issued by my script is mounting just fine on the command line after all these error messages, but autofs seems to have a problem with it anyhow.I have searched all over the web trying to get a reasonable explanation to any of these messages without luck.I don't think that I can upgrade automount, since this is an embedded device (SheevaPlug), so what is my options?
View 2 Replies
View Related
Sep 10, 2010
I am running Server 10. I have a requirement to perform an action before the MySQL service starts, and perform another action after MySQL service stops.
I found the init script for MySQL under /etc/init/mysql.conf. I added my thing to the pre-start script there and works fine.
I am having trouble finding the script that stops the server so I can modify.
View 1 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
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
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
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
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
Jan 3, 2010
I have a network of 2 WinXP machines and one linux box. I have fiddled around with the settings as you do when learning. The network is working. The network neighbourhood on the WinXP machines recognise the linux box and vice versa, (the linux Places|Network recognises the 2 WinXP). I can Ping the linux box using its hostname from a WinXp. But I cannot do the reverse. I get an 'unknown host' response. I can ping the linux to itself using its hostname.
View 7 Replies
View Related
Mar 24, 2010
We have an Ubuntu server running on Amazon EC2, hosting a website. We also have postfix, in order to send mail (receiving mail is done by another server which is specified in our MX records). My problem is that the internal hostname of the machine ("domU-xx-xx-xx-xx-xx-xx.compute-1.internal") appears in some "Received:" headers in the emails sent. Is that normal? It seems rather peculiar to me, and I'm thinking some e-mail systems might consider it spam because of this. GMail doesn't consider it spam, but not all systems are as smart as GMail
View 1 Replies
View Related
Sep 8, 2010
Im using bind9 as DNS server on my LAN, but it does not seem to translate its own hostname correctly for some reason. Other hosts is translated correctly, the problem only seems to apply to the DNS host itself. if i "ping <server_hostname>" from the server, it translates correctly. But if i "ping <server_hostname>" from the client it only says "unknown host" The client has the correct DNS-server assigned. How can i start troubleshooting this?
[Code]...
View 3 Replies
View Related
Dec 8, 2010
Just upgraded from Ubuntu Server 9.04 to 10.04 and in the process my hostname was lost.
Code:
Although configure file looks fine:
Code:
The following lines are desirable for IPv6 capable hosts
Have set hostname with:
Code:
But doing it this way you cant use '_' ..
View 4 Replies
View Related
Jan 3, 2011
I have a home server running Ubuntu Server 10.10, it is running Samba for file sharing with a mix of Windows and Linux boxes in my house. My main problem is that the server is only accessible by IP or by using hostname.local, but it is not possible to connect to it by just typing the hostname. Further more, it is not being automatically discovered and listed by Windows or Linux clients.
What's really odd is that I also have an Ubuntu Desktop 10.10 install on a separate computer, and that computer is accessible using just the hostname and is automatically being discovered and listed by other computers.
What is missing on the server? What is responsible for resolving just hostname, avahi seems to only deal with hostname.local and that is working fine. I also compared the samba config of the desktop and server Ubuntu installs but wasn't able to find any setting that would be influencing this. Is there some package I'm missing on the server?
View 9 Replies
View Related
May 24, 2010
I'm trying to ping another Ubuntu computer on my local network. If I try doing,ping <hostname>then I get the messageping: unknown host <hostname>however, if I doping <hostname>.localthen I get a response back. I was wondering how I can change it so that I can ping without having to append .localI've installed winbind and modified my /etc/nsswitch.conf file but this has made no difference.
View 2 Replies
View Related
May 22, 2011
I have an ubuntu 10.04 server with hostname "abc.domain.com". However, due to migration, we had to change to hostname to something else, "xyz".
I have done changing /etc/hosts and /etc/hostname and run /etc/init.d/hostname start.
Checking the hostname and all shows it is now using hostsname of xyz. However, email sending out is still using old hostname. We have some scripts that will send out alerts like failed rsync or hdd space full to my email account. But I see the sender is still "root@abc.domain.com".
How do change that to xyz? I am using postfix. I have edited main.cf and restarted postfix but no go.
View 1 Replies
View Related
Apr 13, 2011
I have installed Ubuntu on four machines at work and have been blown away. On my machine I have Apache setup for web development and other machines can "see" it using my IP address. I would like to have it so they can access by the name of my computer though. I have no local DNS server so I guess I need to hard code the relationship in each machine? Ideally I'd actually like to be able to use subdomains (which I use locally to avoid annoying .htaccess path problems). i.e. from another machine on the network to go to [URL].
View 3 Replies
View Related
Sep 6, 2011
I have my home network up and running. I can access my index file by the ip I gave to eth0 - 192.168.0.2
I put this same ip into etc/hosts:
192.168.0.2 localhost localhost.localdomain
One space separates the hostnames from the ip in /etc/hosts.
The hostname command returns: localhost.localdomain
I have /etc/resolv.conf configured the right way, so I can use my isp's DNS servers. I know this because yum works and I can ping anywhere by url. The next step is to learn to access the index file by url locally on my own network.
View 7 Replies
View Related
Feb 8, 2010
I am sure this information is out there somewhere, but Googling apache access.log and hostname does not give you any good leads... so I hope someone here might be able to provide me with a quick answer...I am setting up a cluster of web servers, so I would like to name the access.log and error.log with the hostname of the individual servers to be able to distinguish one from another.
View 4 Replies
View Related
Jul 29, 2010
I'm having an issue on two Fedora Core 13 machines where I can ping others by hostname, but the hostname resolution fails whenever I use ssh/scp/vnc/etc. I can still do these things by IP address, just not by hostname. RHEL5.3 machines on the same network with the same configuration do not seem to have this problem.
Here's the not-so-quick-and-dirty description of the situation:
I know that there is a virtual router at 192.168.31.1 and another at 192.168.30.1. I also know that there is another network (let's call it 90.90.90.0) and on that network lies a number of resources. By nature of this configuration, any machine on 90.90.90.0 can be accessed by any 192.168.x.x, but not the other way around. Beyond that is out of my hands and currently out of my scope of knowledge.
I have a dnsmasq server on 90.90.90.10 that operates as a secondary nameserver, another machine out of my sphere of influence is the primary nameserver (90.90.90.31).
The secondary nameserver on 90.90.90.10 holds the hostnames of our development machines. The problem is that in some cases, while I can ping by hostname all day long, services such as ssh, scp, vncviewer, etc all fail to resolve the hostname. In other cases I can do all of these things.
Every machine has an equivalent resolv.conf:
As an example, I will show the output of a handful of my development machines:
I also included columbia as a one-way test -- even though it cannot access 30.x or 31.x, they can access it:
columbia -- physical machine, Red Hat Enterprise 5.3, IP 192.168.100.200
Okay, so here are the various outputs. Remember, nibbler, discovery, and atlantis can ALL:
- Ping by IP address
- Ping by hostname
- ssh, scp, vnc, etc by IP addess
Additionally, the SERVFAIL reply from 90.90.90.31 is expected since my dnsmasq server is on the secondary server.
Note that the only machine that can both ping and ssh/scp/etc by hostname is nibbler, which also happens to be the only one of the three running RHEL5.3 instead of FC13. Other virtual and physical machines running on the 192.168.31.0 and 192.168.30.0 networks (all running RHEL5.3) work just like nibbler does. So the problem seems to only affect machines running FC13.
Final note: selinux is disabled, iptables is disabled, ip6tables is disabled.
Other than that, discovery is a brand-spanking-new install straight off of the FC13 DVD. atlantis has been around longer, but its just a file server so I haven't done anything too crazy to it.
View 3 Replies
View Related
Mar 23, 2009
I installed Gnome on my server by when I run
Code:
[root@F026 ~]# startx
Code:
hostname: Unknown host
xauth: creating new authority file /root/.serverauth.2915
X.Org X Server 1.5.3
Release Date: 5 November 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.18-128.1.1.el5 i686
[code]...
I don;t have physical access to the system and it is a server located in Europe. Fedora release 10 (Cambridge) is installed in it.
View 2 Replies
View Related
Mar 13, 2011
Running samba-3.5.6-71.fc14.x86_64. Why cant I access samba share by short-hostname from win7. When I ping short-hostname, the answer is the actual ip and short-hostname.mydomain.com
sa pinging short-hostname does work, but accessing it from start-run does not! Accessing by ip or short-hostname.mydomain.com works fine. ssh by short-hostname from win7 works fine too.
View 14 Replies
View Related
Apr 6, 2010
How do I set $HOSTNAME to dynamically update with the hostname that is specified for the ip in DNS?
View 3 Replies
View Related
Jan 16, 2010
I'm interested in setting up and providing my own DNS services for public use. I have two separate server machines and can easily put an extra NIC card or two in any machine, if required. What would it take to create such a service like ZoneEdit or EveryDNS?
I know I'd probably need to register 2+ static IP addresses thru Comcast and open a whole host of ports on my router. How would I set this up in terms of software? Is BIND the right tool for the job with a control panel in Usermin/Webmin?
View 4 Replies
View Related
Mar 22, 2010
I just updated my server, (Ubuntu 8.04) and had to restart. Now I can no longer SSH into my Linux box or access my website from the internet. Apache is running and everything worked fine before the restart.
View 1 Replies
View Related
Jan 1, 2010
Can anyone suggest a good vps service please!
View 4 Replies
View Related
Apr 27, 2010
Still a Linux noob here. I downloaded openssh and did a ./configure and a make install. How can I run openssh as a service? When I try /etc/init.d/ssh restart it doesn't work. It's installed in /etc/openssh.
View 9 Replies
View Related
Aug 27, 2010
I have telnet service intalled(apt-get install telnetd), but when I type telnet, I'm getting the following error:
bash: /usr/bin/telnet: No such file or directory
View 9 Replies
View Related