Page 1 of 1

Netbios name vs. DHCP Offer name

Posted: Wed Oct 05, 2011 2:35 pm
by sblair
So,

I'm looking at the NetBiosName example and am curious why the DHCP Offer name is hardcoded in. From my perspective I'd prefer to have them both match. So changing the NetBiosName also changes the pDHCPOfferName to match.

Is there something I'm missing as to why that is a bad idea?

Scott

Re: Netbios name vs. DHCP Offer name

Posted: Wed Oct 05, 2011 3:03 pm
by rnixon
Two totally different protocols and features. But this is something you can do if you are writing you own code. You didn't mention anything about your platform, coding, etc, so I can only guess.

Re: Netbios name vs. DHCP Offer name

Posted: Wed Oct 05, 2011 3:27 pm
by sblair
Developing on the Mod5270B and I am doing the coding for it. I understand they are different protocols. I just found it odd that even in the Netburner example app they hardcoded the DHCP host name and not make it match the Netbios name, since that was the entire point in the example and made me wonder if there is a REASON for that...

Re: Netbios name vs. DHCP Offer name

Posted: Wed Oct 05, 2011 3:45 pm
by rnixon
The DHCP name will only work if you have a DHCP Server that talks to a DNS Server, so typically its an Internet name, and has the associated rules for selecting a name.
The NetBIOS is something that works on a local network without a DNS server, has limitations on the names, capitalization and number of characters (maybe some others too, going from hazy memory). So at a minimum you might have a hidden problem just copying one to another if it violated any of those rules. Maybe analogous to why you might need to call someone "John Smith" in a large group, but just "John" in a small one.