LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 01-31-2005, 01:42 PM   #1
acb67
Member
 
Registered: Jun 2002
Posts: 50

Rep: Reputation: 15
DNS registration on internal network


Hi,

I am having a problem getting the hostname for my machine registered on my internal network. I am running RedHat AS3.0. We have a large network with many names, and I think the resolv.conf is setup properly. I can ping other machines by name, but no other machine can ping me by name, FQDN or otherwise. I setup my hostname by modifying /etc/sysconfig/network, and then restarting /etc/init.d/network.

I can get an IP fine, but my name just isn't getting registered in DNS. This is not a DHCP issue or anything like that because no one else is having this problem, and I have built other Linux machines in the past (different distros) that have worked properly. I initially thought that maybe it was because it is a server build, and servers usually have static IP's with names that must be manually entered into DNS, but I don't know what to change if that is the case.

Any advice would be greatly appreciated.

Thanks!


Last edited by acb67; 01-31-2005 at 03:22 PM.
 
Old 01-31-2005, 02:26 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
well it doesn't look like you're actually making any attempt at all to register your server with any DNS provider... anything in /etc/host, /etc/resolv.conf is purely for internal use. Windows can do name resolution via WINS as well as DNS, something that samba can emulate, but WINS as a protocol is horrible, as it is based on broadcasts, so doesn't scale up to larger networks very well at all.

if you're expecting the hostname to get sucked back across into the DNS server, then I would assume it would be down to your choice of DHCP client, as some will pass back the hostname for referencing automatically. on my machine i personally pass the option "-h hostname" to dhcpcd, otherwise the hostname defined doesn't end up back on the server, for cross matching to other domain DNS servers.
 
Old 01-31-2005, 03:21 PM   #3
acb67
Member
 
Registered: Jun 2002
Posts: 50

Original Poster
Rep: Reputation: 15
Yes, that is what I want. I want the hostname to get sucked across into DNS. I used to work pretty heavily with another distro, and this used to happen automatically. Now I am using RedHat and it doesn't seem to be working.

I did a 'ps -ef | grep dhcp' to see what dhcp client is running, and it looks like I am using dhclient. Don't really see any parameters in its manpage that lets you specify hostname though. What client are you using, or what client would you advise to use?
 
Old 02-07-2005, 01:13 PM   #4
acb67
Member
 
Registered: Jun 2002
Posts: 50

Original Poster
Rep: Reputation: 15
I have been trying to look around for some answers to this problem that I am still having, and I found some interesting ideas that may or may not help.

Could something in the kernel be related to this? Are there certain modules that need to be present in the kernel in order to get this working? Do I need to recompile it or something?
 
Old 03-02-2005, 01:14 PM   #5
acb67
Member
 
Registered: Jun 2002
Posts: 50

Original Poster
Rep: Reputation: 15
Just to follow up with this, I finally got it working. I had to make a change in /etc/hosts and /etc/sysconfig/network-scripts/ifcfg-eth0. The files are below if anyone is interested. Thanks for the help!

/etc/hosts:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 linuxhost1.localdomain linuxhost1

/etc/sysconfig/network-scripts/ifcfg-eth0:
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
TYPE=Ethernet
DHCP_HOSTNAME=linuxhost1
USERCTL=no
PEERDNS=yes
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
DHCP RH-linux-client, windows-server, DNS-registration not happening armadilloman Linux - Networking 5 01-12-2009 08:53 AM
DNS registration indy1979 Linux - Networking 8 12-30-2004 07:36 AM
DNS name registration problems with static IP ccanning Linux - Networking 0 12-08-2004 03:27 PM
know what bind, dns, a domain, and an internal network have in common? me neither majortool Linux - Networking 10 07-27-2004 12:42 PM
DNS For an internal network??? Milkman00 Linux - General 6 09-02-2002 03:38 PM


All times are GMT -5. The time now is 12:22 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration