LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-17-2004, 08:58 AM   #1
bcrisler
LQ Newbie
 
Registered: Mar 2004
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
Hostname not set with DNS server


Greetings All --

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.
 
Old 03-17-2004, 09:13 AM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
so you want to bind the ip to a particular hostname? u need to have something like this in your dns zone file:

yourpc1 1d IN A 192.168.25.2

there are a lot posts here at LQ on how to set it up. try a quick search first.
 
Old 03-17-2004, 02:11 PM   #3
bcrisler
LQ Newbie
 
Registered: Mar 2004
Distribution: Slackware
Posts: 2

Original Poster
Rep: Reputation: 0
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.
Code:
#/etc/resolv.conf
   nameserver 10.192.***.***
   nameserver 10.192.***.***
There it is. Again any help is much appriciated.
 
Old 03-18-2004, 02:38 PM   #4
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Where's your client/where's DNS?

Hi -

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.

Hope that helps .. PSM
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Server Hostname/Dns name? Logarithim Slackware 1 05-21-2005 08:01 PM
Madrake 10.1 Set Hostname + Update DNS TotalDefiance Linux - Networking 0 11-03-2004 12:27 PM
need help to set up caching only dns server to with bogus DNS entries ullas Linux - Networking 1 10-28-2003 01:54 PM
How to set a static IP and DNS server phil1076 Linux - Networking 1 08-19-2003 06:20 PM
RH 9, Netz und DNS Config, Fehler "set visible hostname" j.kopitzke Linux - Newbie 0 06-18-2003 11:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration