OpenSUSE Install :: Set $HOSTNAME To Dynamically Update With The Hostname That Is Specified For The Ip In DNS?
Apr 6, 2010How do I set $HOSTNAME to dynamically update with the hostname that is specified for the ip in DNS?
View 3 RepliesHow do I set $HOSTNAME to dynamically update with the hostname that is specified for the ip in DNS?
View 3 RepliesI'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.
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 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.
the difference between $HOSTNAME and $(hostname)?
View 5 Replies View RelatedI managed a first installation of SUZE 11.2 from a mag distro - downloaded the iso file - burned the dvd, installed again, looking to retain the host name for this computer. But for the second time I get a linuxXXXXX sort of host name! No chance to set my preferred one up. I like what I've seen of SUZE so far and am happy to move to it sort of permanently. This legacy hostname helps me keep sane in networking matters though and I have yet to configure a networked laserprinter and add another computer. Can I re-set the hostname to my selection without harming the whole set-up?
View 5 Replies View RelatedHow generally to change the hostname. When the system was installed the there was given random hostname and I am wondering how to change it.
View 3 Replies View RelatedJust completed a fresh netinstall of OpenSUSE. This machine previously had a Ubuntu install on it, but I was having all sorts of issues and decided I required a fresh start. The install itself went acceptably, although I ended up manually fixing GRUB.Now the system is running, I've got a ridiculous problem, in that I'm still seeing the old hostname- It used to be ubuntu-server, but should now be unimatrix-001.Checked both the obvious places (/etc/HOSTNAME & YaST), but the correct hostname is in both of them.
View 5 Replies View RelatedThis 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 RelatedComing from a regular syslinux prompt is there any way to set the node's hostname? Basically I'm trying to start an install and the syslog= parameter needs to have the hostname set. It doesn't look like it's getting set by DHCP.
View 7 Replies View RelatedHow do you change the hostname in SLES11? I have normally used the /etc/hostname file and rebooted the server in other distros. I only notice the way to change it is in yast2 -> network devices -> network settings -> Hostnames. I am looking for where it is stored because I want to write a script to update it (apart of a server deployment process).
View 9 Replies View RelatedI 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've a little trouble: I reinstalled on my notebook OpenSUSE 11.3 yesterday and I'm unable to change the hostname. I modified it, but when I type on terminal
Code:
uname -a
it doesn't give the right answer but returns
Code:
host
I don't know where I wrong because I did this action many times with Opensuse 11.1 and 11.3 without any problem.
I'm trying to use LDAP with TLS but allways got Connect error. The message error is TLS : hostname does not match CN in peer certificate So I've tried to generate new certificate with my hostname for CN but my LDAP still don't want to work with TLS.
I use opensus 11.3. I used YAST2 for crating my CA and certificates.
When browsing in WinXP Windows Explorer to view an OpenSUSE computer, the displayed name is:
Samba 3.5.4-5.3.1-2489-SUSE-SL11.3 (*hostname*)
Other Windows computers display as:
[computer description]([hostname])
How can I change the "computer description" within OpenSUSE?
I went into Yast and disabled the SYSLOG service, ignoring the warning of which services would be affected, I went ahead anyway and stopped it. Sure enough, a handful of other services stopped as well.Now I have almost recovered the PC from this foolish mistake of mine, the only problem I seem to be stuck with is I am now unable to locate the computer on my LAN by hostname ... does anyone know which service I should restart please (if it helps, the computer can resolve DNS names such as Google.com OK)?
View 3 Replies View RelatedAnyone know what this signifies in the Apache logs files:
Code:
[Tue May 04 20:56:06 2010] [error] [client *******] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)
[Tue May 04 20:56:06 2010] [error] [client *********] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)
[Tue May 04 21:05:18 2010] [error] [client ********] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)
[Tue May 04 21:05:18 2010] [error] [client ********] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)
I installed openSUSE on my notebook with an usb drive using openSUSE 11.4 KDE LIVE iso. The installation process set the name to "linux-ygrl" which I don't really like. (I probably just missed the setting during the installation.). I tried to change it through YaST -> Network -> Hostnames and I set everything where needed to the new name and restarted but the changed weren't applied. I searched the web and found out about the /etc/HOSTNAME file which still contains "linux-ygrl". Now I could change it manually but I was wondering if there is a GUI for it? (I mean, openSUSE has for alsmost everything a GUI.
View 9 Replies View Related.site gets appended to the end of the hostname every system bootup for me (e.g. hostname.site), even though I've changed the hostname in both the Network Settings and Hostnames sections of YaST. How can I stop this?
View 7 Replies View RelatedI've been running a SuseStudio-built VM for a few weeks with no issues. I built a new one recently, and now I can't configure a new vhost in Apache using the http-server module. It gives me this error. Screen shot 2010-11-06 at 11.42.24 AM.png. Why YaST suddenly decided that my hostnames aren't valid?
View 1 Replies View RelatedI setup the hostname for my linux machine to Linux. If I try ping Linux from the same computer it works. If I try from another computer inside my network the host can not be resolved. If I ping the IP from another computer it works.
I take a look in my router at DHCP client list and my linux machine doesn't have the Hostname set up.
How to broadcast the hostname to the entire network?
I tried to change hostname through ssh.
Old hostname = server1
New hostname = server1.domain.local
I changed the hostname by editing the /etc/hostname file
Old:
/etc/hostname
server1
New:
/etc/hostname
server1.domain.local
Then I executed /etc/init.d/hostname.sh, and get as below, looks OK!
hostname -f
server1.domain.local
hostname
server1.domain.local
hostname -s
server1
The logs are still just showing server1.
Example:
tail -f /var/log/auth.log
Apr 15 13:30:01 server1 CRON[22783]: pam_unix(cron:session): session opened for user root by (uid=0)
Apr 15 13:30:02 server1 CRON[22783]: pam_unix(cron:session): session closed for user root
Do I really have to reboot, or is this normal behaviour that it does not show the full hostname?
I'm have been tasked with created a base Ubuntu image that can be used for cloning to multiple machines. As this is a network environment, each hostname will obviously need to be unique. Rather than manually changing the hostname each time a new, cloned machine is rolled out, I was wondering if there is a way to use a variable in the hostname (i.e., use a variable to truncate the the last 6 digits of the MAC address to the end of the static hostname--or any other unique variable for that matter--so it would look like hostname00E6D4).
View 7 Replies View RelatedIs there any way to change Hostname in Fedora 14?
View 4 Replies View RelatedI'm using Ubuntu 10.04 LTS
By typing the command:
hostname --fqdn
I get the following
hostname: Name or service not known
As requested by Raphaƫl Hertzog
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
[Code].....
I just set up a new karmic server, and the hostname is being set properly, but I'm not exactly sure how, since there is no longer an init script that sets it (it used to be /etc/init.d/hostname.sh on my older servers). Now I'm curious: what is the new mechanism by which the server's hostname is set at boot time?
View 3 Replies View RelatedHow i put `hostname` in uppercase in this case:date +"%Y%m%d%T" > date_`hostname`.txt Best wishes,Andr Barradas
View 3 Replies View RelatedI 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.
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]....