Page 1 of 2

Why does DNS stop working for my Linux laptop?

Posted: Tue Jun 07, 2016 11:19 pm
by rtcoder
After about a minute has passed after connecting to the network, I cannot get to my HDA dash from my Linux Mint 17.2 Cinnamon laptop with http://hda. It works fine on all other devices but my Linux laptop. And only the local DNS doesn't work - I can still go to Google and all. So why is this happening? How can I troubleshoot this problem? It is frustrating to have to disable and re-enable my WiFi every time I want to access my server.

Re: Why does DNS stop working for my Linux laptop?

Posted: Wed Jun 08, 2016 6:05 am
by bigfoot65
Sounds like a problem with your client not receiving it's DHCP lease from the HDA.

Recommend you check that the Linux machine has DHCP and DNS from the HDA.

Re: Why does DNS stop working for my Linux laptop?

Posted: Wed Jun 08, 2016 1:11 pm
by rtcoder
DNS is my Amahi HDA.

Re: Why does DNS stop working for my Linux laptop?

Posted: Wed Jun 08, 2016 3:47 pm
by bigfoot65
So the Linux client reflects DHCP and DNS of the HDA.

If so then there should be no issue unless there is something on the client causing the problem.

Re: Why does DNS stop working for my Linux laptop?

Posted: Wed Jun 08, 2016 5:12 pm
by rtcoder
I cannot figure out how to view the DHCP server address on my Linux machine. According to a terminal method I found to view DNS, my DNS server is 127.0.1.1, localhost, which obviously cannot be. According to the network info popup that I can view via my desktop, my DNS is the address of my HDA. I see nothing for address of DHCP server.

If it helps to know, there is no option to disable DHCP on my router except for putting it in complete bridge mode and disabling wireless. So, I used the workaround to set the available DHCP range for leasing to include only the reserved IP of my HDA, allowing my HDA to give out DHCP leases.

Re: Why does DNS stop working for my Linux laptop?

Posted: Wed Jun 08, 2016 5:28 pm
by bigfoot65
Using command line you can view IP address:

Code: Select all

ip address
Verify that matches what the HDA is handing out.

Re: Why does DNS stop working for my Linux laptop?

Posted: Wed Jun 08, 2016 5:28 pm
by rtcoder
That does not show DNS or DHCP.

Re: Why does DNS stop working for my Linux laptop?

Posted: Wed Jun 08, 2016 6:07 pm
by bigfoot65
That works on most Linux clients. What was the output?

Also you can try:

Code: Select all

ifconfig

Re: Why does DNS stop working for my Linux laptop?

Posted: Wed Jun 08, 2016 6:41 pm
by rtcoder
Output of ifconfig:

Link encap:Ethernet HWaddr ac:7b:a1:ae:f5:e2
inet addr:10.0.0.191 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: 2601:646:9680:ea26::ffda/128 Scope:Global
inet6 addr: 2601:646:9680:ea26:9556:365e:9b46:96e2/64 Scope:Global
inet6 addr: fe80::ae7b:a1ff:feae:f5e2/64 Scope:Link
inet6 addr: 2601:646:9680:ea26:ae7b:a1ff:feae:f5e2/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:198282 errors:0 dropped:0 overruns:0 frame:0
TX packets:148294 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:159123340 (159.1 MB) TX bytes:67082924 (67.0 MB)

Although it says Ethernet at top, it is the wlan0 interface. I don't see DNS or DHCP.

Re: Why does DNS stop working for my Linux laptop?

Posted: Wed Jun 08, 2016 6:48 pm
by bigfoot65
net addr:10.0.0.191 Bcast:10.0.0.255 Mask:255.255.255.0
This appears to be your DHCP address. Is that from your HDA?

If not, then that is your issue.