Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've struggled with this for some time and am finally giving in and asking for help!
I've installed linux (SuSE 9.2) on my laptop at home, and connected it wirelessly to my home network and broadband router, and am connected to the network and the internet with no problems (posting this from the laptop now). I've tried both dhcp and static; got both working.
Here's what I'm struggling with - I want to install an Oracle product, and the instructions say I must get a 'fully qualified host name' response when I enter the command 'hostname' - that is, I must get a response of 'hostname.domainname'.
I've set /etc/HOSTNAME to sequoia.shchris.com . 'shchris.com' is a made-up domain name, I can find no record of it 'in the real world', so there should be no clash with any real domain handed out by a DNS server.
I've assigned a static ip of 192.168.0.161 to the wlan0 card (The card I'm using).
I've set /etc/hosts to
192.168.0.161 sequoia.shchris.com sequoia
My home network is set to 192.168.0.xxx.
I can ping sequoia.shchris.com with no problem (on the machine).
I can ping 192.168.0.161
I can ping 192.168.0.99 (my gateway)
I can ping (eg) yahoo.com
I cannot ping shchris.com on the machine (unknown host).
I don't know what I can do, if anything, to set the domainname and get it working.
The reason it matters is, I'm getting a timeout while configuring the oracle product (10g AS Forms and Reports Services), and the limited info I can find suggests the machine 'must' have a fully qualified host name.
Note: I CAN type 'domainname shchris.com', after which, 'domainname' responds with 'shchris.com'. BUT - 'hostname' still responds with only 'sequoia'.
Thanks!!!!
EDIT: I just tried (simple, huh?!) typing 'hostname sequoia.shchris.com', and after that, 'hostname' does respoind with 'sequoia.shchris.com', and I CAN ping sequoia.shchris.com ... but how do I make this persistent ... why is it not 'set' by putting the fully qualified name in the '/etc/HOSTNAME' file????
Distribution: SUSE primarily, but also Slackware, Fedora, Ubuntu, and KNOPPIX.
Posts: 59
Rep:
Did you figure it out yet? I'm interested in the resolution of your issue, as I will soon be crossing the exact same bridge as you with my own network here at home.
EDIT: I just tried (simple, huh?!) typing 'hostname sequoia.shchris.com', and after that, 'hostname' does respoind with 'sequoia.shchris.com', and I CAN ping sequoia.shchris.com ... but how do I make this persistent ... why is it not 'set' by putting the fully qualified name in the '/etc/HOSTNAME' file????
Each linux distro has its own network init script (which calls hostname) that is run at system bootup. Unfortunately, I have never used the SuSE distro so I can't answer your question on which file is read (or sourced) by the network init script to set the system hostname. Hopefully, someone who uses the SuSE distro will reply.
In the mean time, you can always search your systems init scripts for something like "hostname" and see which init script is actually setting your systems hostname. i.e. On redhat...
Note: The above is a little misleading due to the search string. when you actually view rc.sysinit, you see that it sources the /etc/sysconfig/network file which sets the HOSTNAME variable that is then used by the hostname command.
Code:
[root@excelsior rc.d]# grep HOSTNAME /etc/sysconfig/network
HOSTNAME=excelsior.mydomain.com
<cut/paste from rc.sysinit>
# Reread in network configuration data.
if [ -f /etc/sysconfig/network ]; then
. /etc/sysconfig/network
# Reset the hostname.
action $"Resetting hostname ${HOSTNAME}: " hostname ${HOSTNAME}
fi
My point being, I'd be willing to bet that the SuSE distro does something very similar in its init scripts to set the systems hostname.
I cannot ping shchris.com on the machine (unknown host).
Setting your systems domainname does NOT equal being able to ping the domain name. See: man resolv.conf and man hostname. Since you are using a laptop without a DNS server that is authoritative for shchris.com, then I would suggest that you edit /etc/hosts and add the domain name as an alias. i.e.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.