DHCP and Hostnames


 
Thread Tools Search this Thread
Special Forums IP Networking DHCP and Hostnames
# 1  
Old 05-25-2006
DHCP and Hostnames

I have a linksys DSL router.

I run a mixed environment of Windows, Linux and Solaris. The routers dhcp tables show the windows machines hostnames and associated IP's ok but the unix bases mahines don't have associated hostnames in the DHCP tables. I can ping by IP but not my the machines hostname. This is a real issue because of NFS shares and the changing of IP by the router.

Is there a way to get the router to see the hostname of the unix machines or do I need to use fixed IP's for the unix machines?

If I have to go with fixed IP's I think I will have to run some namming service such as nis or will the router pick up the hostnames?

Solaris 10, Debian, Kubuntu and OpenBSD os's. The Solaris machines were the hardest to get to know their own host names.

Joe
# 2  
Old 05-25-2006
Way to complicate your life.

If you have a DSL "router", just use static IP's and add the name/IP to /etc/hosts in all of them. In Windows, I think the hosts file is in c:/windows/system32/drv (or something like that).

I'm curious as to why it is important for the "router" to pick the names, though...
# 3  
Old 05-25-2006
I want to do some nfs mounts between the linux and solaris machnes. Since this is at home I supose having several host tables to administer will not be too bad. I am just used to working in an environment with 100's of unix boxes.

We have a project to use DHCP or our solaris workstations at work and If the network does not know the name of the workstation it will be a nightmare to try to administrator.

the more I've been reading about using DHCP with Solaris I think I am going to recomment that we don't do it.

Joe
# 4  
Old 05-26-2006
I don't know what you mean when you say "if the network doesn't know the names", but I don't see what the big issue would be if workstations go to DHCP - never understood why is this a practice inside a LAN, btw; laptops I can see...
# 5  
Old 05-26-2006
The main issue is technical support to the workstation users don't know the ip for their machine and most of the time we get calls is the workstation is crashed out of the app and they can't log off or in. They do know that that they work on caddstationxxx. So, we could get to the workstation if we don't know it's name, and with moving ip's from DHCP we could not just label the machnes with IP's. I also know that there are issues using jumpstart in a DHCP environment.

Kind of odd but no one has been able to tell me how a windows box tells the DHCP server it's name.

Joe
# 6  
Old 05-26-2006
solved

I just figured it out you follow the instructions in /etc/default/dhcpagent then you set the the hostname.

Joe
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Grouping hostnames for pdsh

Hi All, I have a list of hostnames in a text file and I would like to craft a bash script that would group them for use with pdsh. For example... I would like to group the following from a file: hostname1000 hostname1001 hostname1002 hostname1003 hostname1004 hostname2000... (4 Replies)
Discussion started by: joeg1484
4 Replies

2. Shell Programming and Scripting

Check for valid hostnames

Hello, I am trying to develop a script to check for valid hostnames. Below are the prerequisites for a valid hostname which I got from wiki : Hostnames are composed of series of labels concatenated with dots, as are all domain names. For example, "en.wikipedia.org" is a hostname. Each label... (8 Replies)
Discussion started by: rahul2662
8 Replies

3. Shell Programming and Scripting

Ip address for multiple hostnames

i have a file which has 100 servers,i want a script which can output me ip address and hostname for that server. Thanks in advance!! input file abc.com output file should be abc.com 192.168.1..1 (1 Reply)
Discussion started by: Moon1234
1 Replies

4. UNIX for Dummies Questions & Answers

Cyrillic Hostnames?

As the title suggests, I'm wondering if its possible to set a hostname to a name or word with Cyrillic letters (e.g. - Like the Russian alphabet). I tried installing the cyrillic-console package in Debian. I switched my desktop to Russian as well. However, when I try to set the hostname I get that... (2 Replies)
Discussion started by: Azrael
2 Replies

5. Programming

Getting All VM Hostnames Using Pysphere

I need to obtain a list of all the hostname of all the VM's that reside on two ESXI servers using pysphere. I have attempted using the basic methods but an unable to get a hostname in my testing using: from pysphere import VIServer server = VIServer() ... (0 Replies)
Discussion started by: metallica1973
0 Replies

6. IP Networking

Get DHCP relay interfaces IP address using DHCP

Hi All , please view the set up below: ------------------------------------------------------------------- | DHCP Server |-----------| ROUTER & |-----------| Clients | | 192.168.99.1 | - -<eth1>| DHCP-RELAY|<eth2>-- | 192.168.88.X | ... (2 Replies)
Discussion started by: gdangoor
2 Replies

7. IP Networking

How to resolve hostnames on DHCP home network

Hi, I have a PC running Solaris 10 (hostname MARKUNIX) and a laptop running WinXP (hostname MARK-LAPTOP). Both are connected to broadband via a router. IP addresses for each are determined via DHCP (192.168.1.nn) and I do not leave either on, 24x7. I am running Oracle on MARKUNIX and... (1 Reply)
Discussion started by: ksdmnv
1 Replies

8. Shell Programming and Scripting

Compare file of hostnames with table in MySQL DB

Hi all, i have a list of files that contains some PC hostname, then i need to enumerate every hostname and check if there's a table with same name of the hosts in MySQL database XYZ. I need this because have to decide automatically if i have to make a create table or a insert into an existent... (2 Replies)
Discussion started by: maxlamax
2 Replies

9. Shell Programming and Scripting

regex help to get unique hostnames

Hi I have a file containing hostnames like this (host=myhost.domain.com) or (host=myhost) i need to extarct the unique hostnames without the domain names from that file. so my output should be myhost (without domain names) But my regex skills are rusty i tried grep "host"... (4 Replies)
Discussion started by: xiamin
4 Replies

10. UNIX for Dummies Questions & Answers

newbie question about hostnames

When I log into bash it will say my username @localhost I wondering how do I change localhost to another such as draco.I've the using the hostname command as root but it changes back to localhost after I reboot.I was wondering how would I hide my ISP hostname in linux.Because when I log into an IRC... (1 Reply)
Discussion started by: angelfly
1 Replies
Login or Register to Ask a Question