Can DHCP handle two static addresses with same hostname?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can DHCP handle two static addresses with same hostname?
I have a laptop with both wired and wireless capability. The dhcpd.conf I use doles out a static address to the wired connection, but a pool addie to the wireless. Is their a way to give a static address to both (not at the same time)? How will this affect updating DNS zones? In other words, will the FQDN be updated with the appropriate IP address based on which i/f I'm using?
Both adapters will have different MAC addresses, so they both can be entered in dhcpd.conf to lease a static IP (probably they may even have the same one).
Dynamic DNS update should not be a issue either.
If you combine dhcp with bind, you will have an issue (I seem to recall that this was a matter that had been flagged as the isc, but it was on the to do list), but it isn't fatal.
I get the same thing happening whenever a normally wireless laptop get connected via cable - named complains that the hostname isn't one of bind's, but it still works apart from that issue.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.