LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 11-20-2003, 05:54 AM   #1
jp515
LQ Newbie
 
Registered: Nov 2003
Posts: 1

Rep: Reputation: 0
Question PB with DHCP and HostName


Hi,

I'im runing NetBSD.
my internet connection is configure with dhcp and i can't give a name to my machine!

dhclient always give me a name like this dhcp-177-82, who change with a a new boot (i think).
So i can't run Apache:

if i put in /etc/hosts this line :
127.0.0.1 localhost dhcp-177-82

and if i put in httpd.conf :

ServerName dhcp-177-82

Apache Run, but i don't want to change it all time.

if replace dhcp-177-82 by a other name in this two files, Apache can't start!

How can i do to have the same name every time??

Thanks for your help!!
 
Old 11-21-2003, 04:57 AM   #2
Mrcdm
Member
 
Registered: Apr 2003
Location: Australia
Distribution: Debian 3, 31r0, 4, slackware, DSL, RH8.0/7, MDK9/10, et al. Vista is cute but not Linux - I tried
Posts: 70

Rep: Reputation: 15
Hi, I've never professed to being a guru and never even used bsd but I know something that may be usefull and that is:

in the etc/sysconfig/network-scripts/ifcfg-your_adapter file, you need to have this line
DHCP_HOSTNAME=your_host_name
otherwise the dhcp server won't be updated.

Hope it helps
 
  


Reply



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
dhcp hostname .... phoeniXflame Linux - Networking 6 12-07-2003 11:12 AM
hostname changes with DHCP nathangg Linux - Networking 1 02-24-2003 07:38 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 10:57 PM.

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