LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-25-2009, 02:50 PM   #1
fusion1275
Member
 
Registered: Jul 2007
Location: Portsmouth, Hants
Distribution: Linux Mint
Posts: 266

Rep: Reputation: 35
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

Last edited by fusion1275; 09-25-2009 at 02:51 PM.
 
Old 09-25-2009, 08:20 PM   #2
mazinoz
Member
 
Registered: Mar 2003
Location: Mansfield Queensland Australia
Distribution: Linux Mint 17.1. Various live CD's Win 7
Posts: 435

Rep: Reputation: 33
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.
 
Old 09-26-2009, 12:17 AM   #3
Smartpatrol
Member
 
Registered: Sep 2009
Posts: 196

Rep: Reputation: 38
...

Last edited by Smartpatrol; 03-11-2010 at 10:36 PM.
 
Old 09-27-2009, 09:49 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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
 
Old 09-27-2009, 10:02 PM   #5
landysaccount
Member
 
Registered: Sep 2008
Location: Dominican Republic
Distribution: Debian
Posts: 188

Rep: Reputation: 18
Quote:
Originally Posted by chrism01 View Post
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.
 
Old 09-27-2009, 10:11 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
You can run /sbin/ifconfig on each system as well.
 
Old 09-28-2009, 03:58 AM   #7
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get Windows Clients to be served DNS from a Linux BIND-DNS Server texmansru47 Linux - Networking 12 07-10-2008 08:06 PM
i want make DNS server on fedora 8 opreting system plz tell me what is file use DNS nitin gupta Linux - Newbie 2 02-20-2008 06:01 PM
Win2k3 DNS + PFsense DNS Forwarder = No internal DNS resolution Panopticon Linux - Networking 1 11-19-2007 10:59 PM
TEMP_FAILURE: DNS Error: Timeout while contacting DNS servers when receiving emails tonysutherland Linux - Networking 2 02-10-2006 10:04 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration