Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-31-2005, 01:42 PM
|
#1
|
|
Member
Registered: Jun 2002
Posts: 50
Rep:
|
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.
|
|
|
|
01-31-2005, 02:26 PM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,707
|
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.
|
|
|
|
01-31-2005, 03:21 PM
|
#3
|
|
Member
Registered: Jun 2002
Posts: 50
Original Poster
Rep:
|
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?
|
|
|
|
02-07-2005, 01:13 PM
|
#4
|
|
Member
Registered: Jun 2002
Posts: 50
Original Poster
Rep:
|
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?
|
|
|
|
03-02-2005, 01:14 PM
|
#5
|
|
Member
Registered: Jun 2002
Posts: 50
Original Poster
Rep:
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:41 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|