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'm running a Slackware 9.1 server and i'm having problems getting the hostname to bind with the IP address on remote connections. I can SSH into the server using the IP but I cannot use the hostname or the fully qualified hostname. I have config'd the /etc/HOSTNAME and /etc/resolv.conf and even the /etc/rc.d/rc.inet1.conf .
So any suggestions? Any thing I'm doing wrong? Any answers are much appriciated.
When I connect remotely I want to be able to use either the IP or the hostname... as of right now the only thing I can use is the IP. I've looked through most of the tutorials and the other threads and haven't found anything that works. Heres what my config files look like.
Code:
#/etc/HOSTNAME
planetx.dhcp.***.edu
Code:
#/etc/hosts
# For loopbacking.
127.0.0.1 localhost
10.77.***.*** planetx.dhcp.***.edu planetx
# End of hosts.
There are possibly several different issues here. Let's try to clarify where the problem is:
1. You've got a box running Slackware 9.1, and you think you've
configured it to use DNS for name resolution lookups.
So far, so good.
2. You've edited "/etc/resolv.conf" like so:
#/etc/resolv.conf
nameserver 10.192.***.***
nameserver 10.192.***.***
<= CAN YOU "PING" EITHER OF THESE REMOTE BOXES?
CAN YOU VERIFY THAT DNS IS RUNNING ON BOTH OF THEM?
3. When you say "I'm ... having problems getting the hostname
to bind with the IP address on remote connections", I presume
you mean you're trying to establish a connection from your
Slackware 9.1 box to some remote server. Is this correct?
If so, then the problem is with one (or both) of the DNS hosts
in your resolv.conf.
Use nslookup (or a similar tool) to determine why they're not
resolving your remote host's name correctly.
4. You also say you've edited your "/etc/hosts" file.
If you're trying to connect from your Slackware 9.1 box to some
remote server, and if that remote server's name is correctly defined
in /etc/hosts ... then the problem is in your Slackware 9.1 server.
Make sure the /etc/hosts entry for the remote server is correct.
Make sure there are no other typos corrupting your /etc/hosts file.
Check your /etc/nsswitch.conf file to make sure your host will
use /etc/hosts (if DNS fails).
5. Let's say that by "remote connections", you really mean that
you're on some OTHER host (say, a PC) and you're trying to
establish a connection to your Slackware 9.1 server.
In this case, you need to look at that PC's DNS server (and/or
local \winnt\system32\drivers\etc\hosts file) and make sure that
*client* has some way to resolve your server's name.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.