If you want to resolve names to IPs then DNS is the service that does
that. You could easily setup a local bind server which resolves the
internal IPs, then forwards to some external (currently used by you
anyway) DNS server for everything else, and then have your DHCP service
push out the local DNS service’s IP address as the first one to use, along
with the external one(s) for backup, and that should be fine. If you have
boxes with static IP addresses, then set their DNS services manually to
point to your local box, then the outside.
Yast is decent at setting up a DNS service in this way; I have one in my
home for the naming conveniences.
–
Good luck.
If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below.
If you want to send me a private message, please let me know in the
forum as I do not use the web interface often.
I assume that they’re all located within the same LAN? Samba network? If so, you could set up the Linux samba servers with the NetBIOS name server (nmb) service, which unless specified in smb.conf uses the hostname of the machine concerned.
Take a look at your Internet Gateway’s features…
If it has a DNS server, you can simply add entries.
An alternative is to look at your DHCP server’s capabilites on your Internet Gateway, if it supports distributing files, you can distributes a hosts file to each DHCP client (this is using the /etc/hosts files, but in a way where you don’t have to personally edit the file on every machine).
Otherwise,
As others have described,
You can set up a BIND DNS server for your LAN and set it up to forward to your current Internet Gateway or any other DNS server you wish. Your DNCP would be modified to point your DHCP clients to your own DNS server instead of the Internet Gateway. There is a Yast DNS Server module you can install that can help you set up your DNS zone and forwarding. If you have questions or problems setting up and configuring your DNS server, you can post your questions.