LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DHCP client redhat 8.0 does not register hostname in network (https://www.linuxquestions.org/questions/linux-networking-3/dhcp-client-redhat-8-0-does-not-register-hostname-in-network-42341/)

harmen 01-21-2003 06:06 PM

DHCP client redhat 8.0 does not register hostname in network
 
Hi all,

I have just installed RH 8.0. It gets an IP address from the DHCP server correctly and i am able to ping the client from the server with it's IP address. The only problem is that i can not ping it by it's hostname.

The dhcp client i'm using is de default installed one: dhclient and all the configuration is done via the Network Configuration Administrator.

In the log on the server i see:
if IN TXT "00ae718f604ef26687601e22c601d28573" rrset exists and IN A 192.168.0.52 rrset exists delete IN A 192.168.0.52: timed out.

And it should be something like this (with a hostname! in it):

if IN TXT <hostname> "00ae718f604ef26687601e22c601d28573" rrset exists and IN A <hostname> 192.168.0.52 rrset exists delete IN A <hostname> 192.168.0.52: timed out.

So I guess the client is not added to the DNS server as it is supposed to. Any tips on configuring this correctly?

Thanks,
Harmen

dorian33 01-21-2003 06:24 PM

I suppose (but I am not sure!) the correct line in dhcpd.conf should be:
host your_host_name {
hardware ethernet 00:40:F4:2F:6F:BE;
fixed-address 192.168.0.52;
}
the "fixed-address ... " line is not obligatory - it makes your IP will be always the same
but the line "hardware ..." allws the serwer to establish connection between your eth and your host name

harmen 01-22-2003 02:43 AM

But I don't want to enumerate the MAC addresses of all the network adapters in my network. Besides it doen't seem necessary. My windows clients do not have the problem. Somehow they do sent the correct info to the DHCP server and my linux (RH8) client with the dhclient program does not.

acid_kewpie 01-22-2003 02:50 AM

well your error up there is (pretty sure) from Bind, and not dhcpd. You've just got the findamental issue of making bind and dhcpd communicate, which i've not managed after months of trying-for-an-hour-and-getting-pissed-off :) you're half way there, i managed to get a little further and can update the zone file dynamically with nsupdate i think that app is called. but for what you're actually asking, i.e. how to make the hostname get sent then you should have a parameter called DHCP_HOSTNAME (if i rmember right) in /etc/sysconfig/network or maybe /etc/sysconfig/network-scripts/ifcfg-eth0 this should then definitely show up in the logs for dhcpd. and once that's a sure thing you're onto the nasty bit. make sure you're using bind 3 bind 2 defienitely can't do dynamic zone updates, but 3 *alledgedly* can.....

acid_kewpie 01-22-2003 02:55 AM

oh.. well maybe it was just the little issue after all now i actaully read the post again. so hey hey if it does work could i borrow your config files?

Darin 01-22-2003 03:29 AM

In Slackware I can get a DHCP client to send a hostname, it's in one of my startup config files and the resulting command looks like this:

/sbin/dhcpcd -t 10 -h hostname -d eth0

In Redhat I'm pretty sure you don't have a well documented rc.inet1 that you can open up and edit to add a hostname but the dhcp client can send a hostname with the dhcp request so its just a matter of figuring out where in the gui or which config file you can put it in at. Any Redhat gurus know the answer to that one?

duane.mckinney 03-23-2009 06:01 PM

Fedora DHCP Register Hostname
 
I pulled this off of a CENTOS site, but it is the same with Fedora. I was having the same issue.
http://www.computechgroup.com/?p=390

edit
/etc/sysconfig/network

You need to add the hostname and the dhcp_hostname. No clue why it doesn't default to hostname if not specified.
HOSTNAME=gumby
DHCP_HOSTNAME=gumby

It helps if you are having trouble with Fedora to also try searching and substitute Red Hat or CENTOS, they are all the same lineage. And 9 times our of 10 (99/100 it seems) a solution for one works for the other 2.

HTH
Duane


All times are GMT -5. The time now is 03:32 AM.