473,387 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

UCLinux hostname not making it to dhcp server

Plater
7,872 Expert 4TB
For starters we're using UCLinux on a blackfin (analog devices)device.
I am hoping that doesn't matter and there's a general way to do this.

Basically we are trying to get the name resolution to work.
The hostname shows up and appears to be fine when looked at on the device.
The device runs a dhcp client and obtains an IP just fine.
But when we go to our dhcp/dns server, where it would say
"PlaterDell 192.168.1.55" (my computer name) and then
"Blackfin 192.168.1.7"
But instead it just says " 192.168.1.7"

Its like the blackfin device never sends a name when it requests an IP (or whatever other protocal handles that)
Now we turned off netbios on the uclinux, but it wasn't working even when it was on. I have never been able to ping "blackfin" (which is its hostname)
If i do an NSLOOKUP 192.168.1.3 our dns returns the name of the previous device to have that ip "PlaterLaptop".
But if I do an NSLOOKUP PlaterLaptop, it returns me the current ip address of my laptop: 192.168.1.40.

So there are two entries on the dns server with the name PlaterLaptop, one of them is stale and should have been replaced with "blackfin"

Is there some setting on the linux side to have it send its name up to the server, or is it problem with our dns/nameserver not flushing its cache?

Any ideas would be helpful.
Jan 21 '09 #1
4 4143
ashitpro
542 Expert 512MB
I am not sure about your platform.
But generally this setting exists inside /etc/dhcp3/dhcpclient.conf
Look for similar file in etc directory...
You have to uncomment the line similar to next..

send host-name "<hostname>";

Don't forget to set the hostname..
Jan 22 '09 #2
Plater
7,872 Expert 4TB
Thanks for the point in the right direction!
We did not have a dhcp.conf file on the system itself.
There WAS one in the source code under an "examples" directory.
So far what has helped somewhat was that when we run dhcpd&, we should have been runnning dhcp -h BlackFin&
Seems to register correctly with the server, as the name shows up on the dhcp clients list now. But we still cannot ping or otherwise lookup the name.
I am thinking there is a disconnect between the server's dns server and dhcp server
Jan 22 '09 #3
ashitpro
542 Expert 512MB
Check your /etc/resolv.conf
this is the file which contains the DNS server...
Check if it set properly...

If you want immediate solution then consider this little hack:
You can edit "/etc/hosts" file and put ip/hostname mapping...

Regards,
Ash
Jan 23 '09 #4
Plater
7,872 Expert 4TB
So what seems to be workable was, in a script that runs at boot:
Setting hostname to desired name with HOSTNAME
Stop inetd
Replace hosts file
Replace the samba.conf
Start NMBD manually
Start inetd
(we can also start the dhcp process with a name so the dhcp leases shows who requested it)

This allows us to ping the name and use the network shares. We still cannot do an nslookup as the name does not make it to our seperate dns server. (It could be a domain issue, could be an issue of snycing between dhcp and dns)
But its capable of communicating with the name we set now (by using netbios lookup) so it will work for now.
Jan 30 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Richard D. Ford | last post by:
Does anyone know if VB has an exposed API that can be used to query DHCP for current address leases? I have seen threads that discuss DHCPObj.dll and have successfully used it. However, this only...
2
by: WhatHappend | last post by:
I have converted a .Net 1.0 application to .Net 2.0 and the web service invocations have delay of around 10seconds on each intial access. After the first access subsequent access are fast (After a...
5
by: Richard | last post by:
Hello, I'm working on an application to allow our network team to use a small application to make DHCP reservations on our Microsoft DHCP Server. The problem is you have to use P/Invoke to do...
0
by: GHUM | last post by:
Hello, I need to get a list of active leases on a windows dhcp server. Experts from Microsoft statet: """" A: Go to the Address leases of each scope in the DHCP snap-in and dump the leases...
1
by: Screenbert | last post by:
After finding nothing anywhere in google I am posting this so everyone can benefit by it. The formating is not pretty since I copied it from my word document, but you should benefit by it. ...
0
by: screenbert | last post by:
Managing DHCP Servers using C# They said it was impossible. It couldn't be done. But you can in fact manage DHCP servers using C#. This includes creating and deleting Scopes, SuperScopes,...
0
by: hide1713 | last post by:
Hi everyone We are making a disk less workstation environment which support python.We use PXE DHCP TFTP to boot up disk less system.There are three choices as i know to set up a python environment...
0
cyberking
by: cyberking | last post by:
Hi all, Firstly, I am very little knowledgible when it comes to Windows OS (Client OS or Server OS). But offlate my urge to get myself in terms with it increased and soon I was meddling with the...
0
by: =?Utf-8?B?Z29tZXpqdQ==?= | last post by:
Hi, I had to rename a DHCP server running Windows 2003 in an Active Directory environment. I also change the IP of the server. Now when I open the DHCP console and I want to add that dhcp...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.