piratebox.lan Inaccessible, But Works with IP Address

Posted by draik 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
piratebox.lan Inaccessible, But Works with IP Address
February 09, 2016 07:57AM
I installed PirateBox onto my Raspberry Pi 2, using the provided image for RPi2.
I can SSH into PirateBox, I can reach the web interface using the IP, but I cannot load '[piratebox.lan&]; in the browser.
I tried from my laptop and phone, and it cannot be reached.
Using 'curl -I [piratebox.lan&];, I get "curl: (6) Could not resolve host: piratebox.lan"
On my laptop, entering 'piratebox.lan' in Chrome, it tries to go to Google.com to search for the domain; it eventually times out.

Changes I've made, outside of the installation and post-installation steps:

/opt/piratebox/conf/piratebox.conf
NET=192.168.0

START_LEASE=10
END_LEASE=20

/opt/piratebox/conf/hostapd.conf
ssid=Setec Astronomy

/opt/piratebox/conf/hosts_generated (non-commented):
192.168.0.1     piratebox.lan

/opt/piratebox/conf/dnsmasq_generated.conf (non-commented):
no-resolv
no-poll
no-hosts

interface=wlan0
dhcp-range=192.168.0.10,192.168.0.20,12h
address=/#/192.168.0.1
dhcp-leasefile=/opt/piratebox/tmp/lease.file
addn-hosts=/opt/piratebox/conf/hosts_generated
addn-hosts=/opt/piratebox/conf/hosts_mesh

Let me know if you need further information.
Re: piratebox.lan Inaccessible, But Works with IP Address
February 09, 2016 01:01PM
Was it working before the changes?
Just set everything as you have, rebooted the box and everything is working as expected.
Is it working with any other domain, try [example.com] when connected to the PirateBox network.
Re: piratebox.lan Inaccessible, But Works with IP Address
February 09, 2016 04:22PM
Once I had PirateBox running, I was only able to reach it with the IP.
Trying "ssh alarm@alarmpi" did not work, either.
Thought I did something wrong with the setup, so I re-imaged the microSD card.
The information above is from my 2nd (current) setup.

I connected my PirateBox to my home network to install tcpdump.
Running "tcpdump -i wlan0 port 80" didn't provide me with much insight.
I saw that I was getting Apache 304 errors, but nothing about handling the domain resolution.

I'm sure there is something small that I'm overlooking, but I don't know what it is.

EDIT: forgot to address your suggestion.
I did try different domains, but no success.
Chrome says that I'm offline, giving me the dinosaur (I'll play the game to clear my mind).



Edited 1 time(s). Last edit at 02/09/2016 04:32PM by draik.
Re: piratebox.lan Inaccessible, But Works with IP Address
February 09, 2016 05:15PM
Do you by any chance have a custom name server enabled in your network configuration? If so please disable it.
Re: piratebox.lan Inaccessible, But Works with IP Address
February 09, 2016 05:22PM
Moments before your update, I figured it out, and was about to post my update.
You are indeed correct!
I have Google's IPs setup for my DNS: 8.8.8.8 and 8.8.4.4.
Upon removing these entries, it is working successfully.
Furthermore, I can reach my PirateBox using "ssh alarm@alarmpi" without any issues.
Thank you!
Re: piratebox.lan Inaccessible, But Works with IP Address
February 09, 2016 05:23PM
Cool, in fact Lars came up with the solution in IRC, I just relayed it :-)
Re: piratebox.lan Inaccessible, But Works with IP Address
February 09, 2016 05:25PM
I was in IRC with my question, and I don't recall seeing that.
Maybe it was posted shortly after I signed out, having resolved it.
In any case, thank you for the assist.
Now, onto some sharing.
Re: piratebox.lan Inaccessible, But Works with IP Address
February 09, 2016 05:26PM
Yeah, that conversation happend 5 mins ago or so. You need to idle a bit in IRC, different time zones, work,....
Re: piratebox.lan Inaccessible, But Works with IP Address
February 09, 2016 05:27PM
Glad to see it's working! Happy sharing! smiling smiley