LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Something about DNS (https://www.linuxquestions.org/questions/linux-newbie-8/something-about-dns-757773/)

fusion1275 09-25-2009 01:50 PM

Something about DNS
 
hi all,

I have just bought myself a little Dell Mini 10 Netbook and have installed UNR on it. Its running pefectly but I have a single question that is way beyond my brain power....

Mini 10 is running on DHCP ranging from 192.168.0.10/15
How can I configure my static IP machines in the household to see the laptop using its hostname or DNS and not using its IP as it can change everytime I boot it up.

Any simple answers would be greatly appreciated.

Many thanks

mazinoz 09-25-2009 07:20 PM

For security reasons alone, setup a hardware proxy server with two network cards. Then everyone goes through the proxy server. One card has a changing IP address allocated by ISP, the other has a static address that everyone on the network (including you) uses to connect to the internet.

Smartpatrol 09-25-2009 11:17 PM

...

chrism01 09-27-2009 08:49 PM

There's a couple of options.

1. give your systems static ips and edit the /etc/hosts file on each
2. dhcp can in fact serve out static as well as dynamic ips. See section 20.2 http://www.linuxtopia.org/online_boo...ng-server.html

landysaccount 09-27-2009 09:02 PM

Quote:

Originally Posted by chrism01 (Post 3698972)
There's a couple of options.

1. give your systems static ips and edit the /etc/hosts file on each
2. dhcp can in fact serve out static as well as dynamic ips. See section 20.2 http://www.linuxtopia.org/online_boo...ng-server.html

Do as the last two post or if the systems already have their ip assigned and you would like to find out their address, check the dhcp server log or run a program like angry ipscanner to ping addresses in a network.

chrism01 09-27-2009 09:11 PM

You can run /sbin/ifconfig on each system as well.

catkin 09-28-2009 02:58 AM

For sure, if you have 6 machines or less as the DHCP range suggests, then the easiest way to set it up is with static IPs and manually configuring the /etc/hosts file on each computer.

If a computer on your LAN is sometimes plugged into other LANs where it must use DHCP then a different solution may be better.


All times are GMT -5. The time now is 11:42 PM.