Linux -> Linux Name resolution, under a DHCP environment...

Posted on 2004-04-13
Last Modified: 2013-12-06
OK... first off, hope everyones having a GREAT DAY ;)

And second... here's my situation: In my apartment building the landlord or whomever manages the internet has it setup to use DHCP and whenever one of my linux machines changes IP's I have to physicly go to it and login to figure out what the IP is so I can SSH to it.

Its not too bad to have to log into another machine if its on the same desk, but if thats the case I wouldn't be trying to ssh to it....
So anways two of the machines are on completely diffenet ends of the house and the other is suppose to be a headless machine(No Monitor).
And I've already tried talking with the landlord and the ISP that manages the connection with them to get a static IP...and they pretty much tell me to leave them the hell alone...

What can I do to make it so I can just say

ping LinuxA
or ping LinuxB

stuff like that so I don't have to keep physicly going to a machine that is suppose to be remotely accessable. (And use to be before DHCP was a must)....

Thanks Guys & Gals
Question by:EHart7
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 10816233
If you are getting internt accessible IP addresses you can use a free dynamic DNS service like or DynDNS.  These services are for people just like you, I use them myself.  These services allow you to have a DNS name like

Everytime your IP changes, your computer will automaticly update the DNS record with the new IP.  There are a 100 different ways to do this, but your best bet is to follow the directions on the dynamic DNS service site that you end up choosing.  Let me knwo if you need more help or information.   Just google dynamic DNS.

Author Comment

ID: 10816332
hummm.. guess I forgot something....(sorry enkrypter), Thanks for the speed-E responce though...

what if I told you the entire network for the apartment complex was on its own subnet (they are using NAT) so they only have to pay for one real IP. and their isn't any port forwarding only outbound connections are allowed....

Expert Comment

ID: 10816647
You could always get your own router, and run your pc's on your own subnet with static ip's, programmed to go out to the inet via the router, which acts as a dhcp client on your apartment's subnet.
ClickHouse in a General Analytical Workload

We have mentioned ClickHouse in some recent posts, where it showed excellent results.

In this article on Experts Exchange, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.


Author Comment

ID: 10816821
Thats got some draw backs that are keeping me away too...

If I do a subnet of the subnet to put my machines in then all my machines can have static IP addresses and that solves that problem but then I can't access my room mates machines out side my prived subnet or vise-versa. in addition all the cabling in the four bedroom apartement is built into the walls and its a really big place so I don't really feel like runing wires from one end of the house to the other... I think the one time I "had" to do that it required a 75' cable to reach......
LVL 11

Expert Comment

ID: 10818814
You could try running SAMBA on the Linux boxes, and make one behave as a WINS server.  Each time the others join the network, they'll broadcast their "NetBIOS name" and IP address, and the WINS server will update its database....


Author Comment

ID: 10818982
Hey everyone thanks for your responces but I think I just figured it out on my own...

Its a feature/services that a DNS server is suppose to maintain. In my case its the router in my building that is providing the internal DHCP, NAT, and DNS services... aparently when a DHCP request is made from a client it has the ability to pass a DNS Name to the DNS server to be associated with on the respective network....

I found the settings in red hat under "System Settings -> Networking" Under the devices tab select the connection you want to change and then click edit. The under the DHCP settings their is a text blank thats labeled "Hostname" And I think you have to have the check box checked that says "Obtain DNS information from provider"(meaning the DHCP  provider)

For future reference of people having this same problem and not having the RedHat Network tool or RedHat all together here is a list of files that contain my hostname on my system after changed the text blank menchined above.


Hope this helps.... bottom line is it can be done without samba/wins/etc... and its a function of the DNS/DHCP server(s)

Again... Thanks everone

Accepted Solution

Netminder earned 0 total points
ID: 10819960
User resolved; closed, 250 points refunded.
Site Admin

Author Comment

ID: 10825750
I was also informed by a freind running Debian that this site
was able to help him adapt the /etc/sysconfig/..../ifcfg-eth0 to the Debian distro
Because the /etc/sysconfig/..../ifcfg-eth0  seems to be a redhat & fedora thing (only)

so for other distro's check out this link... which tells how to change your DHCP / DNS obtained hostname

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
Make the most of your online learning experience.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses
Course of the Month11 days, 7 hours left to enroll

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question