Networking Forums

Networking Forums > Computer Networking > Linux Networking > dnsmasq: What does it do?

Reply
Thread Tools Display Modes

dnsmasq: What does it do?

 
 
tom
Guest
Posts: n/a

 
      11-17-2004, 07:25 PM
I am using Woody. I had dnsmasq installed and
then I removed it. I dont see any difference at
all in the network with or without this program.

I am not sure what it does.


 
Reply With Quote
 
 
 
 
Conny
Guest
Posts: n/a

 
      11-17-2004, 09:34 PM

"tom" <(E-Mail Removed)> skrev i meddelandet
news:zsOmd.51966$5K2.47134@attbi_s03...
>I am using Woody. I had dnsmasq installed and
> then I removed it. I dont see any difference at
> all in the network with or without this program.
>
> I am not sure what it does.
>
>


http://thekelleys.org.uk/dnsmasq/doc.html



 
Reply With Quote
 
tom
Guest
Posts: n/a

 
      11-18-2004, 12:35 AM

"Conny" <(E-Mail Removed)> wrote in message
news:UlQmd.8990$(E-Mail Removed)...
>
> "tom" <(E-Mail Removed)> skrev i meddelandet
> news:zsOmd.51966$5K2.47134@attbi_s03...
> >I am using Woody. I had dnsmasq installed and
> > then I removed it. I dont see any difference at
> > all in the network with or without this program.
> >
> > I am not sure what it does.
> >
> >

>
> http://thekelleys.org.uk/dnsmasq/doc.html
>
>
>


Been there, read that, and I still dont understand
what this program does. Also, I see no place
where this is an explanation on how to configure this
program.

What I need is an application for name serving
behind a blue linksys box which does dhcp but
will not assign names or ip addresses to specific
MACs.

It would be fairly trivial to write such an application
based on either Samba or some form of broadcasting
but I am surprised it is not already written.

There must quite a lot of those blue boxes out there.


 
Reply With Quote
 
Stefan Monnier
Guest
Posts: n/a

 
      11-18-2004, 04:22 PM
> What I need is an application for name serving behind a blue linksys box
> which does dhcp but will not assign names or ip addresses to
> specific MACs.


Then dnsmasq might indeed be exactly what you want: turn off Linksys's DHCP
server and use your Debian's dnsmasq as the DHCP server instead (dnsmasq
does both DHCP and DNS serving and can be configured to bridge the two in
various ways, so you can associate fixed IPs to some MACs or fixd DNS names
to some MACs, ...).

This assumes that your Debian box is "always up and running", of course.

An alternative if your router uses Linux (the wrt54g does) is to use one of
the third party firmwares (google for OpenWRT for example) which use dnsmasq
as their DNS and DHCP server. That's what I do (except with an ASUS WL-500g
box, see wl500g.dyndns.org).


Stefan
 
Reply With Quote
 
tom
Guest
Posts: n/a

 
      11-19-2004, 03:44 AM

"Stefan Monnier" <(E-Mail Removed)> wrote in message
news:jwvekirrsgr.fsf-monnier+(E-Mail Removed)...
> > What I need is an application for name serving behind a blue linksys box
> > which does dhcp but will not assign names or ip addresses to
> > specific MACs.

>
> Then dnsmasq might indeed be exactly what you want: turn off Linksys's

DHCP
> server and use your Debian's dnsmasq as the DHCP server instead (dnsmasq
> does both DHCP and DNS serving and can be configured to bridge the two in
> various ways, so you can associate fixed IPs to some MACs or fixd DNS

names
> to some MACs, ...).
>
> This assumes that your Debian box is "always up and running", of course.
>
> An alternative if your router uses Linux (the wrt54g does) is to use one

of
> the third party firmwares (google for OpenWRT for example) which use

dnsmasq
> as their DNS and DHCP server. That's what I do (except with an ASUS

WL-500g
> box, see wl500g.dyndns.org).
>
>
> Stefan


Well I have three windows computers and one linux
computer on this network. One of the windows
computers is set up as dual boot computer, and
when this computer is booted into linux it cant
talk to the Linux computer by name in some
applications like ping.

I certainly dont want a system that goes down if
if the linux computer is down so I certainly
dont want to turn off the dhcp on the linksys
box.

I could write a program that would read from
the Samba configuration and then write to the
/etc/hosts file to make sure everything has a name
on the system. But it seems to me that somewhere
or other this must already be written in some form
or fashion.

There are quite a few of these linksys boxes around and it seems that
there must be some way to serve
names behind them using linux.

Of course one does have the option of writing
to the firmware on the box like you suggest,
but certainly there should be an easier way also.

By the way on a totally unrelated matter
with this network and Win98 computers
Samba chokes in its default configuration.
bcast is the only name resolve mode that will
work. I would be surprised if several people
have not given up on Samba for this problem
alone.



 
Reply With Quote
 
Stefan Monnier
Guest
Posts: n/a

 
      11-22-2004, 05:44 PM
> Well I have three windows computers and one linux computer on this
> network. One of the windows computers is set up as dual boot computer,
> and when this computer is booted into linux it cant talk to the Linux
> computer by name in some applications like ping.


Similar to my situation, indeed.

> I certainly dont want a system that goes down if if the linux computer is
> down so I certainly dont want to turn off the dhcp on the linksys box.


Same here. I've looked for a solution for quite a while and was amazed to
see that the best advice people could give me was to rely on Samba.

> There are quite a few of these linksys boxes around and it seems that
> there must be some way to serve names behind them using linux.


The best answer is to setup dnsmasq on your router. Most router boxes do
not come with it, but those that internally run Linux (such as wrt54g or
wl-500g) can be customized.
If your router can't be customized that way I see two solutions:
1 - write some ugly hack that kinda works sometimes.
2 - get yourself another router.

> Of course one does have the option of writing
> to the firmware on the box like you suggest,
> but certainly there should be an easier way also.


Actually, in the case of the WL-500g, the built-in firmware does offer to
set some static MAC->IP mappings for its DHCP server, so you can't get DNS
names, but at least you can get fixed IP addresses (in the 192.68.1.XXX
range), and you can then setup /etc/hosts files to give the machines real
names. That's what I used to use before installing a third-party firmware.

The Linksys box I had before did not have the ability to set up fixed
MAC->IP mappings, but I'd be surprised if the wl500g is the only one that
has this feature.


Stefan
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dnsmasq and openvz David Brown Linux Networking 0 03-19-2008 07:09 PM
dnsmasq Randy Yates Linux Networking 4 11-26-2007 10:25 PM
dnsmasq trouble stouf Linux Networking 7 05-13-2005 06:37 PM
some dnsmasq problems Matteo Corti Linux Networking 14 12-01-2004 11:08 AM
privoxy and dnsmasq Brian Hall Linux Networking 0 02-22-2004 06:27 PM



1 2 3 4 5 6 7 8 9 10 11