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-12-2011
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 It serves DNS and DHCP over the local subnet, and connects to the internet through a gateway address of Here's the dnsmasq.conf it uses with most comments stripped out:

# Never forward plain names (without a dot or domain part)
# Never forward addresses in the non-routed address spaces.
# Give out IP's between and
# Default gateway of
# OPTIONAL:  What files to load when PXE booting.
# dhcp-boot=pxelinux.0,mecgentoo,
# 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 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


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


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


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