Server :: Changing IP And Hostname In Red Hat ES 5
Jul 20, 2011How I can change IP and hostname in red hat linux es 5 command mode , not in desktop GUI?
View 1 RepliesHow I can change IP and hostname in red hat linux es 5 command mode , not in desktop GUI?
View 1 RepliesI just have a simple question. When I installed Lucid a few weeks ago, I didnt feel very inspired, and thus left the host name at default. I just changed the hostname today, and I discovered that I can no longer resolve the host for ssh connections to the computer. When I changed the hostname files, I followed this guide: [URL].. Is there a file that I need to change regarding SSH that has a hostname in it?
Specifically, Im trying to ssh and VNC connect to the Ubuntu box from my iPhone. I have a PuTTY client installed on it (from the app store, called iSSH) and up until now, it worked.
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 RelatedI am coming across a strange error with my gateway. When I do a "ping", this is what I get below:k-63a5b848c6cb4:~ # ping simba PING simba.gateway.2wire.net (192.168.1.69) 56(84) bytes of data.
64 bytes from k-63a5b848c6cb4 (192.168.1.69): icmp_seq=1 ttl=64 time=0.041 ms
64 bytes from k-63a5b848c6cb4 (192.168.1.69): icmp_seq=2 ttl=64 time=0.029 ms
64 bytes from k-63a5b848c6cb4 (192.168.1.69): icmp_seq=3 ttl=64 time=0.023 ms
[code]....
I am coming across a strange error with my gateway. When I do a "ping", this is what I get below:
k-63a5b848c6cb4:~ # ping simba
PING simba.gateway.2wire.net (192.168.1.69) 56(84) bytes of data.
64 bytes from k-63a5b848c6cb4 (192.168.1.69): icmp_seq=1 ttl=64 time=0.041 ms
64 bytes from k-63a5b848c6cb4 (192.168.1.69): icmp_seq=2 ttl=64 time=0.029 ms
64 bytes from k-63a5b848c6cb4 (192.168.1.69): icmp_seq=3 ttl=64 time=0.023 ms
64 bytes from k-63a5b848c6cb4 (192.168.1.69): icmp_seq=4 ttl=64 time=0.015 ms
Does anyone know what the problem could be?
I cannot uncheck the "Change Hostname via DHCP" box because it is disabled. Next to it says "No interface with dhcp". How can I fix it? I'm using OpenSUSE 11.3/KDE4
View 3 Replies View RelatedI am new to Ubuntu 10.04 and so far I love it! I recently created a LiveUSB and I am running Ubuntu from my USB drive with preserve mode.
I changed the /etc/hostname and /etc/hosts files with my new hostname and everytime I reboot those files are going back to original state and change the hostname back to ubuntu...
The rest of my installed applications and settings are preserved... Is there a way to permanently change the host name?
After installation, I changed the hostname of my computer, using system-config-network. However, after every reboot, it no longer wants to automatically connect to the network. The only way I could fix this was to remove NetworkManager-gnome and install knetworkmanager and use it to create a new connection. There was a flag there to autoconnect.
The other problem is that the hostname never shows on my network. My other PCs all have visible hostnames. One is an Ubuntu box and the other Windows XP. These machines can be pinged by hostname. The Fedora box can only be reached from the other PCs by specifying the numeric IP address.
I've checked the usual places and the hostname is correctly specified. Entering the 'hostname' command returns the correct hostname on the Fedora box. I am running Fedora 10.
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 RelatedI'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.
How do I set $HOSTNAME to dynamically update with the hostname that is specified for the ip in DNS?
View 3 Replies View RelatedI'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 RelatedI 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.
I started the mission to call my GLPI system from a hostname URL... i dont want use the IP address... but im dont know what i do!
I have Fedora 14 installed on VirtualBox running with the network interface bridge mode, fix IP address and in the dns server the name that i want is already registered... i have direct access to the network and the apache and mysql works fine... and here in my office we have a windows 2K3 domain controller and all the computers are logged in the domain... i dont know if i have to put the fedora linux in the domain or just configure something to work...
Today for use the glpi system i have to put in the URL bar: [url]
But i want: [url]
I allready look for the samba configuration to put fedora into domain, but dont works...
How to set the hostname and FQDN on Ubuntu Server 10.04?
View 5 Replies View RelatedI have set up an Ubuntu 10.10 server with SAMBA shares and Apache web server. Everything was working fine. Then there was a power failure and after I restarted the server the XP pc's can see the server using the hostname. They can only see it using the ip adress. I haven't change anything on server or client side. Just the restart of the server.
View 3 Replies View RelatedWhat is the right way to specify hostname(in local linux box, not in DNS server):
myhost1
or
myhost1.mydomain1
I have read a lot of documentation but it is still hard to find a proper answer to my doubts.About the hostnames in a domain, how is it associate to a determinated port?
For example, when I type on the browser webmail.sparc86.net and then I get redirected to the port of 20000 of this same domain. Fine, but how does it work that it knows it should be redirected to the port 20000? From where is this information (the association webmail-port 20000) taken? The apache will manage this, right? But what about other services like ftp?Another example, If I wrote my own software listening, let's say on the port 40000 and I want to have a domain like "mystuff.sparc86.net" how would I let it be redirected to the port 40000 ?
the difference between $HOSTNAME and $(hostname)?
View 5 Replies View Relatedi had 1 server and its hostname is resolving fine.
i purchased 1 vps and its hostname isnt resolving.
for server1 say hostname is server1.domain.com
and for vps i add server2.domain.com
and when i ping my server2.domain.com i get Host Unknown error.
do i add Hostname and make it resolve in VPS.
i want to use hostname like server2.domain.com.
i want both server to have common domain name but diff hostname.
How do I check/setup that only the server can send mail (maybe by IP or hostname)? I have a debian server that sends mail through the PHP mail() function with no problems. The server uses sendmail. My concern is how do I make sure only the server itself can send mails through that server. Because it would be bad if spammers would use it as a relay server.
System:
- Debian Lenny
- PHP5
- Apache2
- MySQL 5
- PHPmyadmin
- Sendmail
During a request of a VPS, the provider asks me for a hostname and for the VPS I have requested which will run on a Debian. I entered 'dryaf' as hostname. What I want to do with this VPS is to point a website to its IP. I learn that I can create a vhost and configure VPS to redirect each domain name to its folder using vhost but I didn't learn any importance for hostname I don't think it should be mandatory localhost or has the form domain1.com so during request I just tipped dryaf for the hostname of the VPS. Should the hostname follows a special rule for giving it a name or no?
View 6 Replies View RelatedI've a fully working openvpn network but it works only using ip address.Clients should comunicate each other thought the server. To semplify the managment of clients I'd like to use their hostname instead their ip. there are a way to achieve it?Now openvpn assign ip address to the clients, but if is needed I can install other software on the server, it's a Debian machine.
View 4 Replies View Relatedhow to disable or modify the email headers showing the internal IP and hostname of the server when using sendmail. I want this removed or change to just a domain name.
View 2 Replies View RelatedI have squid on my RHEL5 server and a no of windows clients ,on clients some sites opened without any error but some sites whilw opening says unable to resolve hostname ,why this kind of problem ?This may be DNS problem ,but it should happen for all address not some .
View 2 Replies View RelatedI've completed the installation of a CentOS server.Running the setup utility as root, ive set up a static IP and installed apache. Now this works ok. I can type in the servers IP address from my browser/putty/winSCP and access the server within the intranet. The problem is that i would also like to access the server using its hostname, e.g. http://centos or whatever Currently i cannot do it. I've searched the forums, edited the /etc/sysconfig/network and /etc/hosts to no avail no matter what i do i cannot access it. i've disabled some services so im not sure if this is the fault.
View 1 Replies View RelatedHostname won't start on boot
I have had a problem where I had to edit in port 53 for the iptables which i think was strange.
Anyways.. On boot I am getting a error where my hostname won't start correctly which causes 110 and 143 to not work correctly.
After i boot I have to run
Then my mail seems to work..
GOAL - to get this to work on boot
I've recently set up an Ubuntu server and from within the network I can do several things like: log in via SSH, transfer files via FTP, and remotely control Torrents from other computers. My end goal is to be able to access these services by using my dyndns hostname (example.dyndns.org)from an external network.
When I type my dyndns name in my web browser it opens up my router page. How would I set things up so that I can just type my dyndns hostname to point directly to my server, instead of the router page?
All computers are connected to a router which is connected to an ADSL modem, with automatically assigned I.P addresses.
I am using samba version 3 (probably), and the problem is that the linux based nas can only be accessed via its ip 192.168.x.x but not its hostname /server string appointed by the smb.conf file:
Code:
[global]
netbios name = NAS
server string = NAS
smb passwd file = /etc/smbpasswd
[Code]....
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?