473,806 Members | 2,748 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

UCLinux hostname not making it to dhcp server

Plater
7,872 Recognized Expert Expert
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 "PlaterLapt op".
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 4172
ashitpro
542 Recognized Expert Contributor
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 Recognized Expert Expert
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 Recognized Expert Contributor
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 Recognized Expert Expert
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
13763
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 exposed the server's configuration, not the current address leases. I was also able to track down an interface that is exposed to C, but 1.) already have a lengthy app written in VB and 2.) don't know enough about C to write my own dll to do...
2
3055
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 whild of inactivity the next access will be slow agian). Changing the client to static IP address instead of DHCP makes the initial access about 1 second which is fine. Monitoring the network of the client computer the cleint is sending out 2...
5
7657
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 it, and from what I've found on the web and in this newsgroup is that it's not easy, however I believe it can/has been done. At the moment I'm just trying to find out information about an existing
0
2975
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 to a text file from the DHCP server snap-in. The text file gives you all the information for every active lease. You might also
1
11150
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. 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, Reservations, Exclusions, Options and so forth. Since the dll...
0
12361
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, Reservations, Exclusions, Options and so forth. Since the dll that is used was written several years ago by Microsoft, you cannot manage things on the DNS tab when looking at a reservation and few things such as that however it gives you main things you...
0
1030
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 for diskless system. First Solution, Use a initrd image with everything inside as the root file system.Diskless computer boots up with a kernel and this rootfs image.If everything goes fine.We could use python in the ram disk.In my...
0
1693
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 various services offered by Win Server 2003. Ok. Now here s the scenario. Firstly I have a Huawei Router with DHCP enabled in it. And then I have 'bout 5 machines at home which I intended to set up as a network and make one of the machines a Monster...
0
1565
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 server from the authorized DHCP server list, that server still shows with the "Old" name. When I click on it to add it, it tries to connect to the server with the "old" name and the "old" IP address. How can I make the changes that I made reflect in...
0
10624
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10371
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9193
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5684
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4330
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3853
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.