LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-25-2006, 09:36 PM   #1
digity
Member
 
Registered: Apr 2005
Posts: 105

Rep: Reputation: 15
Need help setting up LAN DNS server


How do I set up a very simple DNS server just for my local home network??? I have 7 different computers and a router, all running different OSes and I need to be able to connect to them by just using their given hostname (they all don't see each currently).

I'm running Ubuntu 6.06 LTS Flight 7

any kind of help would be greatly appreciated.

TIA
 
Old 05-26-2006, 12:42 PM   #2
fuzzyash
Member
 
Registered: Aug 2003
Location: Melbourne Australia
Distribution: Fedora Core 4
Posts: 184

Rep: Reputation: 30
Check out http://www.tldp.org/HOWTO/DNS-HOWTO.html This should give you all you need to know.
 
Old 06-28-2006, 10:00 AM   #3
Ashrack
Member
 
Registered: Oct 2005
Distribution: Ubuntu - Edgy Eft
Posts: 173

Rep: Reputation: 30
This server has 2 NICs:
eth0 for internet=192.168.1.1
eth1 for LAN=192.168.0.1

On it I've installed BIND9,DHCP3 SERVER,FIRESTARTER+internet sharing, SAMBA

My LAN consists of 5 PCs some are UBUNTU DAPPER and some Windows. The client PCs can surf the net, ping each other,access file on the SERVER. But the problem is that they only see each other thru their IP number but I would like them to see each other by their HOSTNAME.

I heard that for this I must install DNS SERVER aka BIND9. But I have no idea how to set it up.

ps. I've read the above mentioned guide but I still dont have a clue what to do!!!
ps2. Another guy also reccommended that I should remove BIND9,DHCP3 and just set up DNSMASQ. But I havent a clue how to configure DNSMASQ either.

Help is greatly appreciated!!!

Last edited by Ashrack; 06-29-2006 at 10:07 AM.
 
Old 06-29-2006, 04:13 AM   #4
Ashrack
Member
 
Registered: Oct 2005
Distribution: Ubuntu - Edgy Eft
Posts: 173

Rep: Reputation: 30
anyone..........................
 
Old 07-01-2006, 06:49 AM   #5
fuzzyash
Member
 
Registered: Aug 2003
Location: Melbourne Australia
Distribution: Fedora Core 4
Posts: 184

Rep: Reputation: 30
Sorry for not getting back to you sooner but have been tied up with work.

Domain Name Servers are quite tricky to set up & learn about for the first time but from what you said in your last post you don't really need one. Setting up DNS for your LAN is only necessary if you have to many PC connected to keep track of them all. If all you want to do is access them via their hostname instead of their IP number you can use the file /etc/hosts under Linux, as for window$ I think the file is c:\windows\hosts (I think! Just search for it)

The Linux hosts file has a man page ("man hosts") that explains how to use it, basically it works the same as DNS but you enter the IP numbers & hostnames manually. It must have an entry for 127.0.0.1 that points to the local hostname of the PC the file is on, it should look something like:
Code:
127.0.0.1    full.hostname.of.PC    first.alias    localhost.localdomain    localhost
The "localhost.localdomain localhost" part is important for local apps to work properly.

You then add the entries for the other PC's on your LAN, so the file will end looking something like:
Code:
127.0.0.1    full.hostname.of.local.PC    first.alias    localhost.localdomain    localhost
192.168.0.2	full.hostname.of.PC.with.this.IP	alias.for.this.PC
192.168.0.3	full.hostname.of.PC.with.this.IP	alias.for.this.PC
192.168.0.4	& so on & so forth
Once you have the modified this file you must restart the network on the PC the file resides on, this is done as root with:
Code:
service network restart
Once you have it set up correctly you will be able to access any PC with an entry in this file by it's hostname.

I've never used the window$ hosts file but I think it uses the same format, but no doubt you will need to reboot in order to use it.

If you have any troubles with this post the IP numbers & hostnames of all the PC's on your network & I'll help you create the files.

Let me know how you get on.

Last edited by fuzzyash; 07-01-2006 at 07:04 AM.
 
  


Reply



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
Help in setting up a DNS LAN server Ronin_tekorei Linux - Networking 15 05-30-2006 06:44 AM
setting up lan DNS with virtual IP? in2u29 Fedora 1 05-26-2006 09:51 PM
Advice on setting up VPN/LAN DNS rwalkerphl Linux - Networking 2 10-03-2004 12:32 PM
setting up a LAN server Chypmunk Linux - Networking 1 05-28-2003 03:26 AM
How do you make the ip masquerade server/dhcp server broadcast dns to lan cmisip Linux - Networking 6 01-25-2003 10:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:36 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
Open Source Consulting | Domain Registration