{"id":122,"date":"2019-01-31T10:33:57","date_gmt":"2019-01-31T16:33:57","guid":{"rendered":"http:\/\/blog.miguelsarmiento.com\/?p=122"},"modified":"2019-01-31T10:33:57","modified_gmt":"2019-01-31T16:33:57","slug":"dynamic-dns-android-phones-ipv6-and-dnsmasq-follow-up","status":"publish","type":"post","link":"https:\/\/blog.miguelsarmiento.com\/?p=122","title":{"rendered":"Dynamic DNS, Android Phones, IPv6 and DNSMASQ Follow-up."},"content":{"rendered":"<p>Hello,<\/p>\n<p>This is a follow-up to my previous post.<\/p>\n<p>On that post I did show how to set up DNSMASQ so it can be used as a DHCPV6 alternative so IPv6 smart clients receive IPv6 addresses and be able to do DDNS and thus be able to have human readable names under IPv6.<\/p>\n<p>I also pointed out that you could use DNSMASQ as a forwarder.<\/p>\n<p><!--more--><\/p>\n<p>So the configuration used was:<\/p>\n<pre>interface=wlan0\r\ndhcp-range=10.x.x.10,10.x.x.20,255.255.255.0,12h\r\ndhcp-range=fd00:d:6680:7d::2,fd00:d:6680:7d::10,ra-names,slaac,2h\r\nno-hosts\r\nenable-ra\r\ndomain=YOURDOMAIN.COM\r\naddn-hosts=\/etc\/hosts.dnsmasq\r\n#dhcp-host=XX:XX:XX:XX:XX:XX,net:allow\r\ndhcp-host=11:22:33:44:55:66,net:allow\r\n#dhcp-host=xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx,net:allow\r\ndhcp-host=11:22:33:44:55:66:77:77:88:99:AA:BB:CC:DD:EE:FF,net:allow<\/pre>\n<p>Let&#8217;s assume that:<\/p>\n<ul>\n<li>Your wifi interface is wlan0<\/li>\n<li>Your LAN interface is eth0<\/li>\n<li>Your domain is yourdomain.com<\/li>\n<\/ul>\n<p>We will tell DNMASQ to create domain wifi.yourdomain.com<\/p>\n<p>The configuration will change to:<\/p>\n<pre>interface=wlan0\r\n<strong>interface=eth0<\/strong>\r\n<strong>no-dhcp-interface=eth0<\/strong>\r\ndhcp-range=10.x.x.10,10.x.x.20,255.255.255.0,12h\r\ndhcp-range=fd00:d:6680:7d::2,fd00:d:6680:7d::10,ra-names,slaac,2h\r\nno-hosts\r\nenable-ra\r\ndomain=WIFI.YOURDMOMAIN.COM\r\naddn-hosts=\/etc\/hosts.dnsmasq\r\n#dhcp-host=XX:XX:XX:XX:XX:XX,net:allow\r\ndhcp-host=11:22:33:44:55:66,net:allow\r\n#dhcp-host=xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx,net:allow\r\ndhcp-host=11:22:33:44:55:66:77:77:88:99:AA:BB:CC:DD:EE:FF,net:allow<\/pre>\n<p>On the configuration above, interface=eth0 tells DNSMASQ to listen to DNS requests on that interface.<\/p>\n<p>The second command no-dhcp-interface=eth0, also tells DNSMASQ not to listen for DHCP requests on that interface.<\/p>\n<p>Now on your main DNS server, you just need to set it up so when a DNS request for xxx.wifi.YOURDOMAIN.COM is received, it forwards the requests to the IP address of your DNSMASQ server.<\/p>\n<p>Your are set.<\/p>\n<p>Ciao,<\/p>\n<p>Miguel.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello, This is a follow-up to my previous post. On that post I did show how to set up DNSMASQ so it can be used as a DHCPV6 alternative so IPv6 smart clients receive IPv6 addresses and be able to do DDNS and thus be able to have human readable names under IPv6. I also &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.miguelsarmiento.com\/?p=122\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Dynamic DNS, Android Phones, IPv6 and DNSMASQ Follow-up.&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-122","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.miguelsarmiento.com\/index.php?rest_route=\/wp\/v2\/posts\/122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.miguelsarmiento.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.miguelsarmiento.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.miguelsarmiento.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.miguelsarmiento.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=122"}],"version-history":[{"count":1,"href":"https:\/\/blog.miguelsarmiento.com\/index.php?rest_route=\/wp\/v2\/posts\/122\/revisions"}],"predecessor-version":[{"id":123,"href":"https:\/\/blog.miguelsarmiento.com\/index.php?rest_route=\/wp\/v2\/posts\/122\/revisions\/123"}],"wp:attachment":[{"href":"https:\/\/blog.miguelsarmiento.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.miguelsarmiento.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.miguelsarmiento.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}