LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-06-2003, 07:46 AM   #1
phoeniXflame
Member
 
Registered: Feb 2003
Location: Somewhere, UK
Distribution: Slack, OpenBSD, Debian, SuSE
Posts: 189

Rep: Reputation: 30
dhcp hostname ....


hiya, just noticed that my slack laptop (only linux CLIENT host running on this network) doesnt seem to by supplying my dhcpd server on my obsd gateway with a hostname when it requests a lease ? ...

Slack laptop lease ...

lease 192.168.2.31 {
starts 6 2003/12/06 14:23:09;
ends 0 2003/12/07 02:23:09;
hardware ethernet xx:xx:xx:xx:xx:21;
uid xx:xx:xx:xx:xx:21;
}

An example of a lease to a windows machine on the network ...

lease 192.168.2.30 {
starts 6 2003/12/06 14:22:00;
ends 0 2003/12/07 02:22:00;
hardware ethernet xx:xx:xx:xx:xx:52;
uid xx:xx:xx:xx:xx:52;
client-hostname "foo";
}

as a result, I'm unable to ping or resolv hostname.dns.suffix, anyone know how to fix this so it does supply one ?

Last edited by phoeniXflame; 12-06-2003 at 07:50 AM.
 
Old 12-06-2003, 11:36 AM   #2
zaphodiv
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
Setting a domain line with the suffix in /etc/resolv.conf might make local names work

from man resolv.conf
domain Local domain name. Most queries for names within
this domain can use short names relative to the
local domain. If no domain entry is present, the
domain is determined from the local host name
returned by gethostname(); the domain part is taken
to be everything after the first `.'. Finally, if
the host name does not contain a domain part, the
root domain is assumed.
 
Old 12-06-2003, 12:56 PM   #3
phoeniXflame
Member
 
Registered: Feb 2003
Location: Somewhere, UK
Distribution: Slack, OpenBSD, Debian, SuSE
Posts: 189

Original Poster
Rep: Reputation: 30
thx, but I think you've missunderstood, the laptop doesnt seem to be sending its hostname to the dhcp server when it requests a dhcp lease, this means, that because all the machines also use the machine which provides the dhcpd as their dns server, none of them can resolve the ip to a hostname, because the dns server doesnt know it

Last edited by phoeniXflame; 12-06-2003 at 12:57 PM.
 
Old 12-06-2003, 02:44 PM   #4
zaphodiv
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
On slackware 8.1 it's in /etc/rc.d/rc.inet1

# Edit these values to set up your first Ethernet card (eth0):
IPADDR="127.0.0.1" # REPLACE with YOUR IP address! was 127.0.0.1
NETMASK="255.255.255.0" # REPLACE with YOUR netmask!
# Or, uncomment the following lines to set up eth0 using DHCP:
USE_DHCP=yes
# If your provider requires a DHCP hostname, uncomment and edit below:
#DHCP_HOSTNAME="CCHOSTNUM-A"

Edit as necesary
 
Old 12-06-2003, 05:51 PM   #5
phoeniXflame
Member
 
Registered: Feb 2003
Location: Somewhere, UK
Distribution: Slack, OpenBSD, Debian, SuSE
Posts: 189

Original Poster
Rep: Reputation: 30
yes, I know how to set it up to use dhcp and how to set its hostname, I want to know how to get it to tell the dhcp server its hostname, as it doesnt seem to be ........
 
Old 12-06-2003, 09:19 PM   #6
zaphodiv
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
Hmm how about this

man dhcpcd

-h <hostname>
specifies a string used for the hostname option
field when dhcpcd sends DHCP messages. Some DHCP
servers, notably those used by @Home Networks,
require the hostname option field containing a spe-
cific string in the DHCP messages from clients.
 
Old 12-07-2003, 11:12 AM   #7
phoeniXflame
Member
 
Registered: Feb 2003
Location: Somewhere, UK
Distribution: Slack, OpenBSD, Debian, SuSE
Posts: 189

Original Poster
Rep: Reputation: 30
no, that is already defined in the inet1 script and inet1.conf files
 
  


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 hostname ahz10 Linux - Networking 1 05-06-2005 03:40 PM
Get hostname from DHCP microft Linux - Networking 2 07-18-2004 03:31 PM
DHCP Hostname Celestial Linux - Newbie 1 06-30-2004 06:50 PM
PB with DHCP and HostName jp515 *BSD 1 11-21-2003 04:57 AM
hostname changes with DHCP nathangg Linux - Networking 1 02-24-2003 07:38 PM

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

All times are GMT -5. The time now is 12:32 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