LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-25-2009, 10:27 AM   #16
siggma
LQ Newbie
 
Registered: Jul 2007
Posts: 19
Blog Entries: 1

Rep: Reputation: 0

Ok, here's better suggestion.

Look for DNSMASQ. You might be able to use yum to install it.
It supplies lightweight DNS and caching plus DHCP for a local network.
Be sure to remove or disable any other DNS or DHCP servers or caches like squid or bind and you might want to remove the resolvconf package if it's installed. It's very easy to install and it's even in the SL archive:
http://ftp.scientificlinux.org/linux...w/D.group.html

#yum install dnsmasq

Will probably do it for you. The config file is /etc/dnsmasq.conf
Look for the line below in dnsmasq.conf and set it to the address range you want for DHCP
dhcp-range=192.168.0.50,192.168.0.150,12h
Check all other entries in the file to make sure it's configured correctly.


Then add this line to top of /etc/resolv.conf
nameserver 127.0.0.1

Make sure the following is in /etc/dhcp3/dhclient.conf

#supersede domain-name fugue.com home.vix.com;
prepend domain-name-servers 127.0.0.1;
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, host-name,
netbios-name-servers, netbios-scope;

Restart dnsmasq and off you go...

Test with:
nslookup google.com 127.0.0.1

Last edited by siggma; 03-25-2009 at 10:36 AM. Reason: Clarity
 
Old 03-26-2009, 05:34 AM   #17
jefn
Member
 
Registered: Mar 2009
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by siggma View Post
Ok, here's better suggestion.

Look for DNSMASQ. You might be able to use yum to install it.
It supplies lightweight DNS and caching plus DHCP for a local network.
Be sure to remove or disable any other DNS or DHCP servers or caches like squid or bind and you might want to remove the resolvconf package if it's installed. It's very easy to install and it's even in the SL archive:
http://ftp.scientificlinux.org/linux...w/D.group.html

#yum install dnsmasq

Will probably do it for you. The config file is /etc/dnsmasq.conf
Look for the line below in dnsmasq.conf and set it to the address range you want for DHCP
dhcp-range=192.168.0.50,192.168.0.150,12h
Check all other entries in the file to make sure it's configured correctly.


Then add this line to top of /etc/resolv.conf
nameserver 127.0.0.1

Make sure the following is in /etc/dhcp3/dhclient.conf

#supersede domain-name fugue.com home.vix.com;
prepend domain-name-servers 127.0.0.1;
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, host-name,
netbios-name-servers, netbios-scope;

Restart dnsmasq and off you go...

Test with:
nslookup google.com 127.0.0.1

My friend Siggma and other friends, Thank you very very very much for your help. it was very helpful. I got working after reading too much, and here is the solution:
1- modify named.conf and add the private zone with domain name and the reverse zone also.
2- modify resolv.conf file and include the server ip 127.0.0.1
3- create myDomain.any file and also x.x.x.arpa-addr file for the reverse zone.


thanks again for your help,
Jefn
 
  


Reply

Tags
dhcp, dns, router


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
want to set up a home server mattycakes Linux - Newbie 2 12-08-2007 09:14 PM
home server set-up spboy Linux - General 7 12-13-2005 01:21 AM
DNS server at home fbfd1338 Linux - Networking 6 10-07-2004 08:18 AM
Home DNS Server khurtwilliams Linux - Networking 5 06-05-2004 11:37 AM
need help to set up caching only dns server to with bogus DNS entries ullas Linux - Networking 1 10-28-2003 01:54 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration