Re: [Dnsmasq-discuss] one laptop, one IP, two NICs?

2008-09-01 Thread xerces8
A C ag...@hotmail.com wrote:

 I've got a laptop that uses a wireless or wired connection (never both 
 simultaneously).  Is there
 a way to configure dnsmasq to serve the same IP and hostname to the laptop 
 regardless of which
 interface is used?  Currently other DHCP devices on my network use 
 /etc/ethers to govern which IP
 they get to ensure a static IP assignment (for things like cameras and 
 printers).

Try assigning IP address to hostname, instead to MAC :

dhcp-host=hostname,192.168.x.y

Regards,
David





Re: [Dnsmasq-discuss] Possible instability of DNS in 2.45

2008-08-13 Thread xerces8
Rune Kock wrote :

 After running fine for over a week, my router with dnsmasq 2.45 became
 very unwilling to answer DNS queries (only a few succeeded).  Dumping
 the statistics showed that a significant number of upstream queries
 had failed.  Restarting the router solved the problem.

You might also consider restarting only dnsmaaq instead of entire router.
(to see if the restart of dnsmasq helps or something else has to be restarted 
...)

Regards,
David





Re: [Dnsmasq-discuss] dnsmasq 2.45 released.

2008-07-21 Thread xerces8
Simon Kelley wrote :

 I'm removing the 2.44 tarball from the website to avoid confusion.

To avoid even more confusion, I suggest putting there a file named
dnsmasq-2.43-REMOVED.txt with a content of few statements explaining
the above.

Regards,
David





Re: [Dnsmasq-discuss] dnsmasq 2.45 released.

2008-07-21 Thread xerces8
Simon Kelley wrote:

 xerces8 wrote:
  Simon Kelley wrote :
  
  I'm removing the 2.44 tarball from the website to avoid confusion.
  
  To avoid even more confusion, I suggest putting there a file named
  dnsmasq-2.43-REMOVED.txt with a content of few statements explaining
  the above.
  
 Good suggestion. Done,

Spot the error : 

Simon Kelley
21/07/1008

:-D





Re: [Dnsmasq-discuss] The simplest setup to preserve IPs

2008-04-01 Thread xerces8
This is what I do :

 - nothing in in /etc/hosts (except the usual localhost stuff)
 - lines in /etc/dnsmasq.conf:
dhcp-host=hostname,address

Example:
dhcp-host=johny,192.168.2.40
dhcp-host=blaster,192.168.2.41
etc...

My whole dnsmaq.conf:

# filter what we send upstream
domain-needed
bogus-priv
filterwin2k
localise-queries

# allow /etc/hosts and dhcp lookups via *.lan
local=/lan/
domain=lan
expand-hosts
no-negcache
resolv-file=/tmp/resolv.conf.auto

# enable dhcp (start,end,netmask,leasetime)
dhcp-authoritative
dhcp-leasefile=/tmp/dhcp.leases

read-ethers

# local name to IP mapping
dhcp-host=host1,192.168.100.30
dhcp-host=box2,192.168.100.31

Regards,
David







-Original Message-
From: Michal Sawicz mic...@sawicz.net
To: dnsmasq-discuss@lists.thekelleys.org.uk
Date: Tue, 01 Apr 2008 17:05:38 +0200
Subject: [Dnsmasq-discuss] The simplest setup to preserve IPs

 Hi, I'm trying to get dnsmasq to give IPs assigned in /etc/hosts based
 on hostname from the dhcp request, my config is as follows:
 
 domain-needed
 bogus-priv
 filterwin2k
 listen-address=192.168.0.1
 bind-interfaces
 expand-hosts
 domain=sawicz.net
 dhcp-range=192.168.0.2,192.168.0.50,12h
 dhcp-option=42,0.0.0.0
 
 Based on that setup I thought that all the machines reporting a known
 hostname in the dhcp request would get the IP assigned to it
 in /etc/hosts file regardless of their IP (and, ideally, of the IP being
 leased - so that I'd be able to use either of my network ifaces).
 
 Unfortunately it doesn't work like that for all my hosts - it does for
 those that are windows based, and not for the others.
 
 For the others it assigns an IP from the dhcp-range and complains about
 not being able to assign the hostname, because it's present
 in /etc/hosts and has different IP assigned.
 
 Am I missing something?
 
 -- 
 Michal Sawicz mic...@sawicz.net





[Dnsmasq-discuss] DHCPv6 support ?

2008-03-19 Thread xerces8
Hi!

Does dnsmasq support DHCPv6 ?
That is, can it tell IPv6 hosts what gateway and dns server to use ?
(I believe that is needed for IPv6 netwrok to function, without manually 
setting this on each host;
I am new to IPv6)

Regards,
David





Re: [Dnsmasq-discuss] Question

2008-01-26 Thread xerces8
Heath Woodson heathwood...@gmail.com wrote:

 Setting this up for the first time and I have a simple question but it isnt
 clearly answered anywhere. I want to assign ips with DHCP in a static manner
 can I just use the /etc/host file on the machine running dnsmasq to do this
 and uncomment this line
 # Enable the address given for judge in /etc/hosts
 # to be given to a machine presenting the name judge when
 # it asks for a DHCP lease.
 #dhcp-host=judge

I do that by having lines like this in dnsmasq.conf :

dhcp-host=judge,192.168.100.41

I tried to do this by putting the entries in /etc/hosts,
but it did not work for some reason.
Simon, can you help ? Is there an option needed to enable this ?

That is: no dhcp-host=xxx line in dnsmasq.conf, but a line in /etc/hosts:
192.168.100.41 judge

Regards,
David

PS: Juggling with MAC addresses is silly, when using hostnames is
so much simpler, easier and robust (it still works if one client
replaces his NIC for whatever reason).





Re: [Dnsmasq-discuss] Support for DHCP option 125

2007-09-18 Thread xerces8
From: richardvo...@gmail.com richardvo...@gmail.com

 On 9/17/07, ~ Kunal Sharma ~ koolku...@gmail.com wrote:
 
  Hi Simon,
 
  Yes, I'm using 2.23, so its pretty old but I can't change it now for
  certain reasons !
 
  Thanks,
  Kunal
 
 
 May I inquire as to the rationale that allows modifications to dnsmasq but
 not upgrade to the latest version?

Simple : Do not do any changes to a working system, except the really necessary 
ones.

This is so in any serious system.

Regards,
David





Re: [Dnsmasq-discuss] setting up dynamic DNS?

2007-09-11 Thread xerces8
Adam Hardy adam@cyberspaceroad.com wrote :
 
 PS here are the files for reference if they help:
 
 isengard:~# cat /etc/hosts
 127.0.0.1   localhost
 192.168.0.2 isengard.localdomain.net isengard
 # The following lines are desirable for IPv6 capable hosts
 ::1 ip6-localhost ip6-loopback
 fe00::0 ip6-localnet
 ff00::0 ip6-mcastprefix
 ff02::1 ip6-allnodes
 ff02::2 ip6-allrouters
 ff02::3 ip6-allhosts
 
 isengard:~# cat /etc/resolv.conf
 search localdomain.net
 nameserver 127.0.0.1
 nameserver 194.74.65.69
 
 isengard:~# cat /etc/dnsmasq.conf |grep -v ^# |grep -e ^[[:alnum:]]
 domain-needed
 bogus-priv
 filterwin2k
 domain=localdomain.net
 dhcp-range=192.168.0.3,192.168.0.254,12h
 dhcp-option=1,255.255.255.0
 dhcp-option=3,192.168.0.2
 dhcp-option=6,192.168.0.2
 log-queries

1.) .net is an official TLD. Do not make up nonregistered names in it.
Use names that were created for this purpose. See RFC 2606, quoting :

To safely satisfy these needs, four domain names are reserved as
   listed and described below.

   .test
.example
.invalid
  .localhost
-end quote-

2.) do not complicate things !
3.) do not complicate things ! ;-)

 domain=localdomain.net
as said, use a private address , like domain=test or domain=adam.test
do not forget to also change /etc/hosts and resolv.conf 

 dhcp-range=192.168.0.3,192.168.0.254,12h
Do you have a good reason to specify an own lease time (sorry if this was 
mentioned, I missed it) ?
What is wrong with default ? (remember : more options written, more mistakes)

 dhcp-option=1,255.255.255.0
 dhcp-option=3,192.168.0.2
 dhcp-option=6,192.168.0.2

dnsmasq does this by default. If you ever change the routers address, you will 
also have to remember
to change this lines. This is an unnecessary source of errors. Delete them

Again, I recommend using a Windows client for tests, because :
 - it works
 - it is simple
When it works, you can go and set up the other clients.

Regards,
David





Re: [Dnsmasq-discuss] setting up dynamic DNS?

2007-09-10 Thread xerces8
From: Jan 'RedBully' Seiffert redbu...@cc.fh-luh.de
Date: Sun, 09 Sep 2007 17:10:49 +0200

 Adam Hardy wrote:
  Hi DNSmasq List
  
  I have a small network with a slightly different setup for the internet
  broadband from usual. I'm having problems working out how to set up a
  DHCP service with dnsmasq to provide workstations with permanent host
  names.

 Thats IMHO a typical setup, i also just use a dsl modem and a full-blown
 linux box as router, because the config capabilities of those
 router-in-a-box won't cut my needs (multihomed router, fancy traffic
 shaping, some servers, etc.).

Funny, my router-in-a-box does all that ;-)


 Second, to assign some hosts a permanent IP-address, even if recieved by
 dhcp, you need some dchp-host lines
 dhcp-host=mac-address,name,ip,leasetime
 ex:
 dhcp-host=01:23:45:67:89:AB,gondor,192.168.0.3,infinite

I use and recommend a much simpler way :

dhcp-host=hostname,ip
eg:
dhcp-host=nitro,192.168.200.21 # actual config I use


Adam, I use dnsmasq exactly for the same purpose as you want.
And works nice. I recoomed you use a Windows client for testing, as
it work for sure. Then when you fix the server, you can try linux clients.

It would be good to know you dnsmasq.conf file and other relevant configuration 
you did.

Regards,
David





Re: [Dnsmasq-discuss] dnsmasq-2.39 release candidate for testing.

2007-04-02 Thread xerces8
Where is the changelog ?

Regards,
David

-Original Message-
From: Simon Kelley si...@thekelleys.org.uk
To: dnsmasq discussion list dnsmasq-discuss@lists.thekelleys.org.uk
Date: Sun, 01 Apr 2007 19:39:32 +0100
Subject: [Dnsmasq-discuss] dnsmasq-2.39 release candidate for testing.

 rc1 is now available from:
 
 http://www.thekelleys.org.uk/dnsmasq/release-candidates/dnsmasq-2.39rc1.tar.gz
 
 Please test it out and let me know the results.
 
 
 Cheers,
 
 Simon.
 
 ___
 Dnsmasq-discuss mailing list
 Dnsmasq-discuss@lists.thekelleys.org.uk
 http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss





Re: [Dnsmasq-discuss] dnsmasq-2.39 release candidate for testing.

2007-04-02 Thread xerces8

 Allow absolute paths for TFTP transfers even when
 --tftp-root is set, as long as the path matches the root,
 so /var/ftp/myfile is OK which tftp-root=/var/ftp.
 Thanks for Thomas Mizzi for the patch.

Small typo :
... is OK _with_ tftp-root=/var/ftp.
not which

David