Linux - NetworkingThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 ? ...
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.
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.
# 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"
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 ........
-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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.