[Dnsmasq-discuss] dnsmasq doesn't send RA

Stéphane Guedon stephane at 22decembre.eu
Thu Mar 27 11:57:46 UTC 2014


Le jeudi 27 mars 2014, 12:52:47 Albert ARIBAUD a écrit :
> Le 27/03/2014 12:30, Stéphane Guedon a écrit :
> > Le jeudi 27 mars 2014, 12:26:22 Albert ARIBAUD a écrit :
> >> Le 27/03/2014 09:58, Stéphane Guedon a écrit :
> >>> Hello
> >>> 
> >>> I would like to use dnsmasq to replace radvd and serve dns ipv6
> >>> queries on lan.
> >>> 
> >>> But as I setup the daemon, it doesn't seem to send ra and none
> >>> of
> >>> my network hosts receive ra.
> >>> 
> >>> #########
> >>> 
> >>> I am using this version :
> >>> Dnsmasq version 2.69rc1-6-g4e1fe44  Copyright (c) 2000-2014
> >>> Simon
> >>> Kelley
> >>> Compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN
> >>> DHCP
> >>> DHCPv6 no-Lua TFTP no-conntrack no-ipset auth no-DNSSEC
> >>> 
> >>> #########
> >>> 
> >>> I am on openbsd. Here is my network :
> >>> 
> >>> re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> >>> 
> >>>           lladdr bc:5f:f4:73:a7:e0
> >>>           priority: 0
> >>>           groups: egress
> >>>           media: Ethernet autoselect (1000baseT full-
> >>> 
> >>> duplex,rxpause,txpause)
> >>> 
> >>>           status: active
> >>>           inet6 fe80::be5f:f4ff:fe73:a7e0%re0 prefixlen 64
> >>>           scopeid
> >>>           0x1
> >>>           inet6 2001:16d8:dd00:8207::2 prefixlen 64
> >>>           inet6 2001:16d8:dd00:8207:be5f:f4ff:fe73:a7e0
> >>>           prefixlen
> >>>           64
> >>>           inet6 2001:16d8:dd00:8207:be5f:f4ff:fe73:a7e0
> >>>           prefixlen
> >>>           64
> >>>           inet 192.168.87.2 netmask 0xffffff00 broadcast
> >>>           192.168.87.255
> >>>           inet6 2001:16d8:dd00:8207::3 prefixlen 64
> >>> 
> >>> tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280
> >>> 
> >>>           priority: 0
> >>>           groups: tun egress
> >>>           status: active
> >>>           inet6 fe80::be5f:f4ff:fe73:a7e0%tun0 ->  prefixlen 64
> >>>           scopeid
> >>> 
> >>> 0x5
> >>> 
> >>>           inet6 fe80::14d8:dd00:207:2%tun0 ->  prefixlen 64
> >>>           scopeid
> >>>           0x5
> >>>           inet6 2001:16d8:dd00:207::2 -> 2001:16d8:dd00:207::1
> >>>           prefixlen
> >>> 
> >>> 128
> >>> 
> >>> ##########
> >>> 
> >>> I use the adress 192.168.87.3 and ipv6::3 for private purpose. i
> >>> have an other nameserver (authoritative for my public domain
> >>> 22decembre.eu) listening on the public adress. Both nameservers
> >>> are running fine, totally ignoring each other and answering
> >>> requests on their respective address.
> >>> 
> >>> Here is the config (I supress most of the comments to make it
> >>> shorter)
> >>> 
> >>> 
> >>> ###############
> >>> 
> >>> domain-needed
> >>> bogus-priv
> >>> 
> >>> local=/22decembre.eu/
> >>> listen-address=2001:16d8:dd00:8207::3
> >>> listen-address=::1
> >>> listen-address=127.0.0.1
> >>> listen-address=192.168.87.3
> >>> 
> >>> expand-hosts
> >>> domain=22decembre.eu
> >>> 
> >>> dhcp-range=192.168.87.50,192.168.87.200,255.255.255.0,12h
> >>> dhcp-range=192.168.87.0,static
> >>> 
> >>> 
> >>> # Do DHCP and Router Advertisements for this subnet. Set the A
> >>> bit
> >>> in the RA
> >>> # so that clients can use SLAAC addresses as well as DHCP ones.
> >>> 
> >>> dhcp-range=2001:16d8:dd00:8207::100, 2001:16d8:dd00:8207::8000,
> >>> slaac,ra-names
> >>> enable-ra
> >>> 
> >>> dhcp-host=00:23:8b:75:2e:ce,luciole,192.168.87.20
> >>> dhcp-host=00:24:2b:72:d1:df,luciole-wifi,192.168.87.21
> >>> 
> >>> dhcp-option=option:router,192.168.87.1
> >>> dhcp-option=option:ntp-server,0.0.0.0
> >>> dhcp-option=option:dns-server,192.168.87.3,208.67.222.222
> >>> 
> >>> dhcp-option=option6:dns-server,[2001:16d8:dd00:8207::3],2620:0:c
> >>> cd
> >>> 
> >>> ::2 dhcp-option=option6:ntp-server,[::]
> >>> 
> >>> dhcp-authoritative
> >>> 
> >>> # Set the cachesize here.
> >>> cache-size=250
> >>> 
> >>> cname=www,blackblock
> >>> cname=biblib,blackblock
> >>> cname=photos,blackblock
> >>> 
> >>> log-dhcp
> >>> 
> >>> #########
> >>> 
> >>> thanks in advance for any help.
> >> 
> >> Hi Stéphane,
> >> 
> >> What does the log say?
> >> 
> >> Amicalement,
> > 
> > Here is everything I read from dnsmasq :
> > Mar 27 09:14:42 blackblock dnsmasq[29557]: started, version
> > 2.69rc1-6- g4e1fe44 cachesize 250
> > Mar 27 09:14:42 blackblock dnsmasq[29557]: compile time options:
> > IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP
> > no-conntrack no-ipset auth no-DNSSEC
> > Mar 27 09:14:42 blackblock dnsmasq[29557]: setting
> > --bind-interfaces option because of OS limitations
> > Mar 27 09:14:42 blackblock dnsmasq-dhcp[29557]: DHCP, static
> > leases
> > only on 192.168.87.0, lease time 1h
> > Mar 27 09:14:42 blackblock dnsmasq-dhcp[29557]: DHCP, IP range
> > 192.168.87.50 -- 192.168.87.200, lease time 12h
> > Mar 27 09:14:42 blackblock dnsmasq-dhcp[29557]: DHCPv6, IP range
> > 2001:16d8:dd00:8207::100 -- 2001:16d8:dd00:8207::8000, lease time
> > 1h Mar 27 09:14:42 blackblock dnsmasq-dhcp[29557]: DHCPv4-derived
> > IPv6 names on 2001:16d8:dd00:8207::
> > Mar 27 09:14:42 blackblock dnsmasq-dhcp[29557]: router
> > advertisement on 2001:16d8:dd00:8207::
> > Mar 27 09:14:42 blackblock dnsmasq-dhcp[29557]: IPv6 router
> > advertisement enabled
> > Mar 27 09:14:42 blackblock dnsmasq[29557]: using local addresses
> > only for domain 22decembre.eu
> > Mar 27 09:14:42 blackblock dnsmasq[29557]: reading
> > /etc/resolv.conf
> > Mar 27 09:14:42 blackblock dnsmasq[29557]: using local addresses
> > only for domain 22decembre.eu
> > Mar 27 09:14:42 blackblock dnsmasq[29557]: using nameserver ::1#53
> > Mar 27 09:14:42 blackblock dnsmasq[29557]: using nameserver
> > 127.0.0.1#53
> > Mar 27 09:14:42 blackblock dnsmasq[29557]: ignoring nameserver
> > 192.168.87.3 - local interface
> > Mar 27 09:14:42 blackblock dnsmasq[29557]: using nameserver
> > 8.8.8.8#53 Mar 27 09:14:42 blackblock dnsmasq[29557]: read
> > /etc/hosts - 9 addresses
> 
> Does the log stop there? No line such as "SLAAC on 2001..." ?
> 
> My setting has only "ra-names", not "slaac,ra-names", in the
> dhcp-range, and shows "SLAAC" as well as "SLAAC-CONFIRM" messages.
> Maybe you should try that.
> 
> Amicalement,

following your advice :

Mar 27 12:56:08 blackblock dnsmasq[13768]: started, version 2.69rc1-6-
g4e1fe44 cachesize 250
Mar 27 12:56:08 blackblock dnsmasq[13768]: compile time options: IPv6 
GNU-getopt no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack 
no-ipset auth no-DNSSEC
Mar 27 12:56:08 blackblock dnsmasq[13768]: setting --bind-interfaces 
option because of OS limitations
Mar 27 12:56:08 blackblock dnsmasq-dhcp[13768]: DHCP, static leases 
only on 192.168.87.0, lease time 1h
Mar 27 12:56:08 blackblock dnsmasq-dhcp[13768]: DHCP, IP range 
192.168.87.50 -- 192.168.87.200, lease time 12h
Mar 27 12:56:08 blackblock dnsmasq-dhcp[13768]: DHCPv6, IP range 
2001:16d8:dd00:8207::100 -- 2001:16d8:dd00:8207::8000, lease time 1h
Mar 27 12:56:08 blackblock dnsmasq-dhcp[13768]: DHCPv4-derived IPv6 
names on 2001:16d8:dd00:8207::
Mar 27 12:56:08 blackblock dnsmasq-dhcp[13768]: router advertisement 
on 2001:16d8:dd00:8207::
Mar 27 12:56:08 blackblock dnsmasq-dhcp[13768]: IPv6 router 
advertisement enabled
Mar 27 12:56:08 blackblock dnsmasq[13768]: using local addresses only 
for domain 22decembre.eu
Mar 27 12:56:08 blackblock dnsmasq[13768]: reading /etc/resolv.conf
Mar 27 12:56:08 blackblock dnsmasq[13768]: using local addresses only 
for domain 22decembre.eu
Mar 27 12:56:08 blackblock dnsmasq[13768]: ignoring nameserver ::1 - 
local interface
Mar 27 12:56:08 blackblock dnsmasq[13768]: ignoring nameserver 
127.0.0.1 - local interface
Mar 27 12:56:08 blackblock dnsmasq[13768]: ignoring nameserver 
192.168.87.3 - local interface
Mar 27 12:56:08 blackblock dnsmasq[13768]: using nameserver 8.8.8.8#53
Mar 27 12:56:08 blackblock dnsmasq[13768]: read /etc/hosts - 9 
addresses

no "SLAAC" nor "SLAAC-CONFIRM"



More information about the Dnsmasq-discuss mailing list