dnsmasq for dhcp to setup dns


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users dnsmasq for dhcp to setup dns
# 1  
Old 09-01-2011
dnsmasq for dhcp to setup dns

Is dnsmasq important for dhcp to setup dns?
# 2  
Old 09-01-2011
That question is a bit confused... dnsmasq is a combined dns and dhcp sever, whether it's important depends on whether you're using it for anything.. What are you actually trying to do?
# 3  
Old 09-11-2011
Quote:
Originally Posted by Corona688
That question is a bit confused... dnsmasq is a combined dns and dhcp sever, whether it's important depends on whether you're using it for anything.. What are you actually trying to do?
Just trying to have my dhcp set my dns which it is not doing anymore. It is driving me crazy.
# 4  
Old 09-13-2011
dnsmasq may be a good replacement for your existing DNS and DHCP servers, then. It handles both in one program. It's also very small and simple. The config file comes with plenty of examples.

It's also smart enough to figure out some settings itself -- i.e. when it's configured as a DNS and DHCP server together, dnsmasq will assume it should append its own IP as a DNS server over DHCP.

---------- Post updated at 05:10 PM ---------- Previous update was at 05:06 PM ----------

My own server has only one network card, configured with a static IP of 192.168.0.126. It serves DNS and DHCP over the local subnet, and connects to the internet through a gateway address of 192.168.0.1. Here's the dnsmasq.conf it uses with most comments stripped out:

Code:
# Never forward plain names (without a dot or domain part)
domain-needed
# Never forward addresses in the non-routed address spaces.
bogus-priv
# Give out IP's between 192.168.0.129 and 192.168.0.254
dhcp-range=192.168.0.129,192.168.0.254,255.255.255.0,12h
# Default gateway of 192.168.0.1
dhcp-option=3,192.168.0.1
# OPTIONAL:  What files to load when PXE booting.
# dhcp-boot=pxelinux.0,mecgentoo,192.168.0.126
# OPTIONAL:  You need TFTP for PXE booting.
# enable-tftp
# tftp-root=/tftproot

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

DHCP & DNS - Clients get IP but don't register in DNS

I am trying to setup a CentOS 6.2 server that will be doing 3 things DHCP, DNS & Samba for a very small office (2 users). The idea being this will replace a very old Win2k server. The users are all windows based clients so only the server will be Linux based. I've installed CentOS 6.2 with... (4 Replies)
Discussion started by: FireBIade
4 Replies

2. IP Networking

dhcp setup

hi i have been given task to setup a small network with dhcp on linux. i have tried few tricks but i get an error massage stating that dhcpd failed to start. More troubles followers dhcpd.service - DHCPv4 Server Daemon Loaded: loaded (/lib/systemd/system/dhcpd.service) Active:... (1 Reply)
Discussion started by: mduduzi
1 Replies

3. IP Networking

configuring dns and dhcp

hello i am running my sipx server in 192.168.2.14 i would like to configure domain name and host name for this ..... can anyone tell me how to configure dns server and dhcp server so that any body both outside and inside the lan could access the sipx server by their host.domain.com name (1 Reply)
Discussion started by: sudeepiit
1 Replies

4. Linux

DHCP setup

hi all, while i am setting my DHCP i am getting the following message in my logs : "Multiple interfaces match the same shared network:eth0 eth1" anybody aware what this message means . thanks in advance cheers (3 Replies)
Discussion started by: ppass
3 Replies

5. Solaris

DHCP DNS Config

I'm running Solaris 9 and I need my box to request it's DNS servers off a DHCP server - can I do this? (1 Reply)
Discussion started by: Jdogg
1 Replies

6. IP Networking

DHCP and DNS

I asked a similar type question in the solaris forum but i think this relates closer to networking. I am trying to setup a small NIS environment that is contained within a large company network. The client machines are getting an IP from the companys' Windows DHCP server. The NIS server has a... (3 Replies)
Discussion started by: meyersp
3 Replies

7. UNIX for Dummies Questions & Answers

DHCP update DNS ?

Hi all, I'm in the dark about this. I have setup a dhcp server and a DNS server. I'm confuss as to how to have DNS auto update any new clinet that the dhcp has given an ip address for. Can this be done. I think that I'm missing something in the configuration of DHCP. I was told that when a DHCPD... (3 Replies)
Discussion started by: larry
3 Replies

8. IP Networking

Solaris DHCP and DNS

I have managed to setup my Solaris box to receive an IP number from a DHCP server. In addition, I can ping and telnet between my dhcp server and my solaris box using the IP number. However, I can't resolve addresses by name from my solaris box. In my nsswitch.conf file I have: hosts: dns ... (4 Replies)
Discussion started by: marist89
4 Replies

9. IP Networking

DHCP, DNS and LDAP

I have just started learning Unix on Solaris and have been asked to learn DHCP, DNS and LDAP very quick in order to implement them and maintain. Does anyone know how to do this or a decent book that will include all the above three which tells you how to install and maintain. All i have found so... (2 Replies)
Discussion started by: ollyparkhouse
2 Replies
Login or Register to Ask a Question