Re: [Dnsmasq-discuss] Why not add md5's?

2008-04-01 Thread Simon Kelley

Robert Diamond wrote:

Was working on a series of script to auto-check websites for updates of
"important" and "world/internet accessible" servers I'm running on my
box. During the process I noticed dnsmasq's website doesn't have any
md5sums (or other forms of data verification; ie: sha1sum, pgp sigs).

Don't know if others are interested in having this, but it shouldn't be
hard to automate the process on the website :)



Well, automation on the website will be a first ;-)


I'm happy to do this, in principle. Why don't you contact me off-list 
and we'll work something out.



Cheers,

Simon.








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

2008-04-01 Thread Simon Kelley

Michal Sawicz wrote:

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?


The /etc/hosts entries will not, by themselves, be used to allocate 
fixed IP addresses to DHCP clients.


It's fine to put

1.2.3.4somename

in /etc/hosts, and then just put

dhcp-host=somename

in /etc/dnsmasq.conf

_as_long_as_ a hostname has only one address in /etc/hosts.

I think you are implying that your DHCP clients can turn up on more than 
one network: If so, don't use /etc/hosts at all, and do


dhcp-host=somename,1.2.3.4
dhcp-host=somename,10.20.30.40

That gives dnsmasq the ability to pick the address on the correct 
subnet, and adjust the view in DNS accordingly.


HTH

Simon.









___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss





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

2008-04-01 Thread Michal Sawicz
Dnia 01-04-2008, Tue o godzinie 13:43 -0400, Robert Diamond pisze:
> Sorry for the "dumb down" ramble above, don't intend to be rude or
> nothing, but years of internet use have made my written speech callous
> at best ^.~

Then again, reading manuals is quite fun:
man dhclient, line 86
"The  -H  flag  may  be used to specify a client hostname that should be
sent to the DHCP server."

-- 
Michal Sawicz 




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

2008-04-01 Thread Robert Diamond



On Tue, 01 Apr 2008 18:38:49 +0200
Michal Sawicz  wrote:
> 
> I've tried with dhclient -H explicitly, and anyway dnsmasq reports
> that it won't assign the hostname, cause the IP doesn't match the
> hostname.
> 

On my dhcp client -H means use the hostname that the dhcp server
provided. Also, on my client, -h  means send the hostname TO
the dhcp server. You need the client to send a hostname to the server.
My best guess is that the client does NOT send the hostname TO the
server. It currently accepts a hostname sent BY the server to the
client.

Sorry for the "dumb down" ramble above, don't intend to be rude or
nothing, but years of internet use have made my written speech callous
at best ^.~


-- 
Robert A.M. Diamond
  
  http://robshouse.no-ip.info

There are more dead people than living, and their numbers are
increasing. -- Eugene Ionesco



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

2008-04-01 Thread Michal Sawicz
Dnia 01-04-2008, Tue o godzinie 16:38 +0100, Simon Kelley pisze:
> DHCP clients on Linux are not always configured by default to send the
> hostname - check the config for dhclient (or whatever client you are
> using)

I've tried with dhclient -H explicitly, and anyway dnsmasq reports that
it won't assign the hostname, cause the IP doesn't match the hostname.

-- 
Michal Sawicz 


signature.asc
Description: To jest część wiadomości podpisana cyfrowo


smime.p7s
Description: S/MIME cryptographic signature


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,

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 
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 





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

2008-04-01 Thread Simon Kelley
Michal Sawicz wrote:
> Dnia 01-04-2008, Tue o godzinie 17:05 +0200, Michal Sawicz pisze:
>> Unfortunately it doesn't work like that for all my hosts - it does for
>> those that are windows based, and not for the others.
> 
> After some more testing I can't see no clear pattern... It works fine on
> windows machines and one that's using openSUSE without NetworkManager.
> 
> It did not on those using NetworkManager nor on one MythDora box...
> 
> I've no idea why...
> 

DHCP clients on Linux are not always configured by default to send the
hostname - check the config for dhclient (or whatever client you are using)

Cheers,

Simon.

> 
> 
> 
> 
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss




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

2008-04-01 Thread Michal Sawicz
Dnia 01-04-2008, Tue o godzinie 17:05 +0200, Michal Sawicz pisze:
> Unfortunately it doesn't work like that for all my hosts - it does for
> those that are windows based, and not for the others.

After some more testing I can't see no clear pattern... It works fine on
windows machines and one that's using openSUSE without NetworkManager.

It did not on those using NetworkManager nor on one MythDora box...

I've no idea why...

-- 
Michal Sawicz 


signature.asc
Description: To jest część wiadomości podpisana cyfrowo


smime.p7s
Description: S/MIME cryptographic signature


[Dnsmasq-discuss] The simplest setup to preserve IPs

2008-04-01 Thread Michal Sawicz
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 


signature.asc
Description: To jest część wiadomości podpisana cyfrowo


smime.p7s
Description: S/MIME cryptographic signature