Difference between revisions of "Dnsmasq troubleshooting"

From Amahi Wiki
Jump to: navigation, search
(Created page with "Steps in troubleshooting the new [http://www.thekelleys.org.uk/dnsmasq/doc.html dnsmasq] setup in Amahi 7. # Check what is in /etc/resolv.conf. ## There should be three lines...")
 
Line 2: Line 2:
  
 
# Check what is in /etc/resolv.conf.
 
# Check what is in /etc/resolv.conf.
## There should be three lines, something like search YOURHOMEDOMAIN and two with nameserver IP (where IP is the internal IP of your HDA)
+
#* There should be three lines, something like search YOURHOMEDOMAIN and two with nameserver IP (where IP is the internal IP of your HDA)
## If that is not right, then try restarting hda-ctl, as root and check again: <code>systemctl restart hda-ctl.service</code>
+
#* If that is not right, then try restarting hda-ctl, as root and check again: <code>systemctl restart hda-ctl.service</code>
 
# See if dnsmasq is running with ps guax | grep dnsmasq
 
# See if dnsmasq is running with ps guax | grep dnsmasq
## You should see a line like this: nobody ..... /usr/bin/dnsmasq (where instead of dots you see numbers and a time/date)
+
#* You should see a line like this: nobody ..... /usr/bin/dnsmasq (where instead of dots you see numbers and a time/date)
## If it's not running for some reason, try restarting it as root with: <code>systemctl restart dnsmasq.service</code>
+
#* If it's not running for some reason, try restarting it as root with: <code>systemctl restart dnsmasq.service</code>
 
# Check the dnsmasq configuration files in /etc/dnsmasq.d
 
# Check the dnsmasq configuration files in /etc/dnsmasq.d
## There should be at least three files there: amahi-common.conf, amahi-dhcp.conf and amahi-dns.conf
+
#* There should be at least three files there: amahi-common.conf, amahi-dhcp.conf and amahi-dns.conf
 
# There should be some settings in them and they should not mentioned that a service (DNS or DHCP) is not enabled
 
# There should be some settings in them and they should not mentioned that a service (DNS or DHCP) is not enabled
 
# In the DNS file, there should be two server lines, with an IP, like this: server=208.67.222.222
 
# In the DNS file, there should be two server lines, with an IP, like this: server=208.67.222.222
## Make sure you can ping those two IP addresses. If not, you have an issue with your routing ... perhaps you cannot reach your router from your HDA?
+
#* Make sure you can ping those two IP addresses. If not, you have an issue with your routing ... perhaps you cannot reach your router from your HDA?
## Your router address should be in the amahi-dhcp.conf file, in a line like this: dhcp-option=option:router,192.168.1.1
+
#* Your router address should be in the amahi-dhcp.conf file, in a line like this: dhcp-option=option:router,192.168.1.1
## Make sure the address of your router is properly placed there
+
#* Make sure the address of your router is properly placed there
  
 
If these configuration parameters are not right, please access your HDA dashboard and access Setup > Network and change accordingly.
 
If these configuration parameters are not right, please access your HDA dashboard and access Setup > Network and change accordingly.

Revision as of 22:34, 3 June 2013

Steps in troubleshooting the new dnsmasq setup in Amahi 7.

  1. Check what is in /etc/resolv.conf.
    • There should be three lines, something like search YOURHOMEDOMAIN and two with nameserver IP (where IP is the internal IP of your HDA)
    • If that is not right, then try restarting hda-ctl, as root and check again: systemctl restart hda-ctl.service
  2. See if dnsmasq is running with ps guax | grep dnsmasq
    • You should see a line like this: nobody ..... /usr/bin/dnsmasq (where instead of dots you see numbers and a time/date)
    • If it's not running for some reason, try restarting it as root with: systemctl restart dnsmasq.service
  3. Check the dnsmasq configuration files in /etc/dnsmasq.d
    • There should be at least three files there: amahi-common.conf, amahi-dhcp.conf and amahi-dns.conf
  4. There should be some settings in them and they should not mentioned that a service (DNS or DHCP) is not enabled
  5. In the DNS file, there should be two server lines, with an IP, like this: server=208.67.222.222
    • Make sure you can ping those two IP addresses. If not, you have an issue with your routing ... perhaps you cannot reach your router from your HDA?
    • Your router address should be in the amahi-dhcp.conf file, in a line like this: dhcp-option=option:router,192.168.1.1
    • Make sure the address of your router is properly placed there

If these configuration parameters are not right, please access your HDA dashboard and access Setup > Network and change accordingly.