Re: [Dnsmasq-discuss] How to avoid DNS query for IPV6 address

2015-01-11 Thread Ryan A. Chapman
Depends on the client operating system.  What OS are you running?


On Jan 11, 2015, at 11:01 AM, Sharan sharan...@gmail.com wrote:

 Hi All,
 
 I am running DNS query and i see that DNS query happens first for IP6 address 
 and when it fails then the request goes for IPV4, can anyone tell me how to 
 avoid DNS query for IPV6 and do query only for IPV4?
 
 Regards,
 Sharan
 
 ___
 Dnsmasq-discuss mailing list
 Dnsmasq-discuss@lists.thekelleys.org.uk
 http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


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


Re: [Dnsmasq-discuss] Proxy DHCP KVM Virtualbox

2014-08-18 Thread Ryan A. Chapman
Hi Gregg,

Does Alice have more than one network interface (one into 172.xx.xx and another 
into 192.168.x.x)?  If so, then try disabling reverse path checking in the 
kernel on alice with cat /proc/sys/net/ipv5/conf/default/rp_filter; cat 
/proc/sys/net/ipv4/conf/all/rp_filter; echo 2  
/proc/sys/net/ipv4/conf/default/rp_filter; echo 2  
/proc/sys/net/ipv4/conf/all/rp_filter.  Note the old values in case you want 
to change them back (or just reboot alice).  If that doesn't work, then seeing 
the dhcp request/response would be helpful.  You can get that by doing a 
tcpdump on alice with tcpdump -nnvvi any -s 0 port bootps or port bootpc.  
Also please provide the ip addresses of the interfaces on alice and bob (at 
least the last octet).

Ryan


On Aug 17, 2014, at 9:41 PM, Gregg Stock gr...@damagecontrolusa.com wrote:

 Thank you in advance for taking a look at this.
 
 I have an interesting problem trying to get a PXE boot system setup.
 
 I have a dnsmasq server Alice that handles DNS and DHCP for several
 networks. I'm trying to add a PXE boot environment and am currently
 using two different PXE boot servers. Server Bob runs Cobbler for
 installations. Alice also runs TFTP/PXE and server some system recovery
 distros.
 
 On the LAN network, I'm testing using Virtualbox. On our DMZ network,
 I'm using Libvirt/KVM.
 
 Alice serves up boot menu using pxe-prompt that directs the user to the
 desired boot server. This works fine with Virtualbox but not with KVM.
 
 From what I can gather using tcpdump, when I execute
 
  pxe-service=x86PC, Cobbler LAN Installation Server,
 pxelinux, 172.xx.xx.35
 
 tcpdump shows:
 IP 172.xx.xx.103.bootpc  255.255.255.255.bootps:
 
 And and everything goes smoothly
 
 But when this executes...
 
 pxe-service=x86PC, Cobbler DMZ Installation Server, pxelinux,
 192.168.x.35
 
 tcpdump shows:
 192.168.x.35.bootpc  255.255.255.255.pxe
 
 The KVM guest issues bootpc and pxe but nobody is listening on 4011
 
 Both requests are to the same server, just different interfaces.
 
 I'm not sure how to proceed, it seems like I needs a DHCP proxy server
 to listen on port 4011 but it would be nice if I could keep the stuff
 that works on Virtualbox.
 
 Best regards,
 
 
 ___
 Dnsmasq-discuss mailing list
 Dnsmasq-discuss@lists.thekelleys.org.uk
 http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


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


Re: [Dnsmasq-discuss] Dnsmasq and bond0

2014-04-21 Thread Ryan A. Chapman
Hi,

This looks like a bonding issue rather than a dnsmasq issue.  What happens when 
you remove the bonding config on the host, down all interfaces but one, and 
unplug all interfaces but one on to the switch?
If that fixes it, then you have a bonding config issue on either the host or 
switch side.  In order to troubleshoot that, you need cat 
/proc/net/bonding/bond0 as well as the port channel and interface configs off 
the switch.  If it's a Cisco, then it's something like sh run int 
port-channelN as well as each interface in the port-channel sh run int 
GigabitEthernetX/Y/Z.

Not sure that everyone on this list is interested in a bonding issue, so I'm 
happy to help troubleshoot it off list.

Ryan


On Apr 20, 2014, at 6:31 AM, fa500...@skynet.be fa500...@skynet.be wrote:

 Hello everyone,
  
 I've got some problem with dnsmasq and it seems bond0. I'm not sure this is 
 why I'm asking some help. 
  
 I'm under gentoo using
 net-dns/dnsmasq-2.66  USE=dbus dhcp idn ipv6 nls tftp -auth-dns -conntrack 
 -dhcp-tools -lua -script (-selinux) LINGUAS=-de -es -fi -fr -id -it -no -pl 
 -pt_BR -ro 0 kB
  
 3 interfaces : enp1s0, enp7s0 and enp8s0. enps7s0 and enp8s0 are bonded. I 
 used the kernel method. From the kernel documentation ifenslave is has been.
  
 Interface seem to work :
  
 ip a
  
 1: lo: LOOPBACK,UP,LOWER_UP mtu 65536 qdisc noqueue state UNKNOWN 
 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 
 inet 127.0.0.1/8 brd 127.255.255.255 scope host lo 
valid_lft forever preferred_lft forever 
 inet6 ::1/128 scope host 
valid_lft forever preferred_lft forever 
 2: enp7s0: BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP mtu 1500 qdisc mq master 
 bond0 state UP qlen 1000 
 link/ether d0:50:99:0a:63:05 brd ff:ff:ff:ff:ff:ff 
 3: enp8s0: BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP mtu 1500 qdisc mq master 
 bond0 state UP qlen 1000 
 link/ether d0:50:99:0a:63:05 brd ff:ff:ff:ff:ff:ff 
 4: sit0: NOARP mtu 1480 qdisc noop state DOWN 
 link/sit 0.0.0.0 brd 0.0.0.0 
 5: ip6tnl0: NOARP mtu 1452 qdisc noop state DOWN 
 link/tunnel6 :: brd :: 
 6: enp1s0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc pfifo_fast state 
 UP qlen 1000 
 link/ether 64:66:b3:02:3c:91 brd ff:ff:ff:ff:ff:ff 
 inet 192.168.2.2/24 brd 192.168.2.255 scope global enp1s0 
valid_lft forever preferred_lft forever 
 inet6 fe80:::b3ff:fe02:3c91/64 scope link 
valid_lft forever preferred_lft forever 
 9: bond0: BROADCAST,MULTICAST,MASTER,UP,LOWER_UP mtu 1500 qdisc noqueue 
 state UP 
 link/ether d0:50:99:0a:63:05 brd ff:ff:ff:ff:ff:ff 
 inet 10.0.0.1/8 brd 10.0.0.255 scope global bond0 
valid_lft forever preferred_lft forever 
 inet6 fe80::d250:99ff:fe0a:6305/64 scope link 
valid_lft forever preferred_lft forever
  
 dnsmasq.conf
 domain-needed 
 bogus-priv 
 filterwin2k 
 bridge-interface=bond0,enp7s0,enp8s0 
 interface=bond0 
 expand-hosts 
 domain=arcade.lan 
 resolv-file=/etc/resolv.dnsmasq.conf 
 listen-address=127.0.0.1 
 listen-address=10.0.0.1 
 dhcp-range=10.0.0.1,10.0.0.50,72h 
 dhcp-host=bc:5f:f4:fe:10:26,infinite 
 dhcp-host=outrun,10.0.0.10 
 dhcp-host=00:26:b0:e6:31:30,10.0.0.12 
 dhcp-host=WDTVLive,10.0.0.40 
 dhcp-host=00:14:38:d4:c4:21,printer,10.0.0.45 
 dhcp-host=00:22:6b:f7:1c:eb,camera,10.0.0.46 
 dhcp-host=90:f6:52:75:d8:70,10.0.0.49,infinite 
 dhcp-host=10:fe:ed:ff:f9:4e,10.0.0.50,infinite 
 dhcp-option=3,10.0.0.1 
 dhcp-option=6,208.67.222.222,8.8.8.8 
 dhcp-option=66,10.0.0.1 
 dhcp-option=67,syslinux.efi 
 dhcp-option=128,10.0.0.1 
 #dhcp-option-force=211,30i 
 pxe-service=x86PC, Launch PXE_BIOS, pxelinux, 10.0.0.1 
 pxe-service=X86-64_EFI, Launch PXE-UEFI, syslinux, 10.0.0.1 
 dhcp-option=42,0.0.0.0 
 dhcp-option=19,0   # option ip-forwarding off 
 dhcp-option=44,0.0.0.0 # set netbios-over-TCP/IP nameserver(s) aka WINS 
 server(s) 
 dhcp-option=45,0.0.0. 0# netbios datagram distribution server 
 dhcp-option=46,8   # netbios node type 
 dhcp-option=47 
 dhcp-match=mactels, option:client-arch, 7 #EFI x86-64 
 tftp-root=/tftproot/ 
 tftp-lowercase 
 dhcp-leasefile=/var/lib/misc/dnsmasq.leases 
 server=/www.google.com/8.8.8.8 
 bogus-nxdomain=64.94.110.11
  
 As you can see, I've already tried the solution 
 bridge-interface=bond0,enp7s0,enp8s0.
  
 I've got no dhcp response for my client.
  
 Thanks. Best regards.
  
 Happy easter.
  
 ___
 Dnsmasq-discuss mailing list
 Dnsmasq-discuss@lists.thekelleys.org.uk
 http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


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