LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 12-23-2007, 07:59 PM   #1
bartonski
Member
 
Registered: Jul 2006
Location: Louisville, KY
Distribution: Fedora 12, Slackware, Debian, Ubuntu Karmic, FreeBSD 7.1
Posts: 443
Blog Entries: 1

Rep: Reputation: 48
Local DNS configured through /etc/hosts


I was having a conversation with one of my co-workers about setting up my local LAN in such a way that my FC4 box is a local DNS server for the other boxes on my network. He suggested a program which shares the entries in /etc/hosts, making them available to any box on the network.

For example, lets say that my /etc/hosts looks like this:


# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.1.98 baz.localdomain baz
192.168.1.99 bar.localdomain bar



My FC4 box is baz. Any other box on my network would then be able to use 192.168.1.98 as its DNS server, and resolve 'bar', 'bar.localdomain', 'baz' or 'baz.localdomain'.

My only problem is that I can't remember what the name of this program is .
 
Old 12-23-2007, 08:10 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Pdnsd, a caching DNS server with a persistent (reboot surviving) cache, allows you to load /etc/hosts(like) files and serve them as DNS records.
 
Old 12-23-2007, 10:38 PM   #3
bartonski
Member
 
Registered: Jul 2006
Location: Louisville, KY
Distribution: Fedora 12, Slackware, Debian, Ubuntu Karmic, FreeBSD 7.1
Posts: 443

Original Poster
Blog Entries: 1

Rep: Reputation: 48
I've done some googling, I think that dnsmasq was the service in question, but I'm going to check out pdnsd as well.

If anyone's looking for simple dnsmasq info, check http://www.enterprisenetworkingplane...le.php/3377351
 
Old 10-14-2009, 06:38 AM   #4
bartonski
Member
 
Registered: Jul 2006
Location: Louisville, KY
Distribution: Fedora 12, Slackware, Debian, Ubuntu Karmic, FreeBSD 7.1
Posts: 443

Original Poster
Blog Entries: 1

Rep: Reputation: 48
I've used dnsmasq ever since I posted this, it works like a champ. It's also a very good dhcp server, allowing me to give the same IP address and domain name to my wife's laptop every time she connects to our wireless access point (assigned via MAC address).
 
  


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 configure DNS for a local LAN (at least I think I want DNS) FlyingPenguin128 Linux - Networking 8 12-11-2005 04:15 PM
External Hosts Resolve but Local Hosts Do Not kjm9 Linux - Networking 7 11-19-2005 03:51 PM
local hosts configuration linuxmandrake Fedora 2 09-04-2005 03:37 PM
Correct entry for local machine in /etc/hosts Kropotkin Linux - Networking 1 11-16-2004 05:41 PM
How DNS can be configured , to update records dynamically; when using DHCPd?????????? mwj Linux - Software 3 03-20-2004 11:01 AM

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

All times are GMT -5. The time now is 05:11 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