FritzBox and Other Machines No Longer Available by Name

I was trying to deal with a website issue the other day and started the NAS to access to some saved files. I usually do this using \\nas, but it didn’t work from the PC I was on. I started another PC and tried the same thing to see if it was a local issue, but had the exact same problem.

When I tried to ping the machine name, instead of an internal IP, it resolved to 45.76.93.104 instead.

I checked on the PiHole, which is what controls the DNS servers I use, and everything looked fine, so tried to log onto the router via the web browser, but found this also didn’t work. I tried the IP and was able to access the router settings without issue, and the DNS settings were pointing at the PiHole.

At this point I fell back to searching online and found an article from late January explaining the issue.

The problem is that the FritzBox uses the domain fritz.box, which is hardcoded.

The cause of this is that in mid-January the .box domain went live for registrations and someone, not the maker of the FritzBox router, has registered the fritz.box domain and created a website which the domain now resolves to, and takes precendent over the router itself (if you’re using third party DNS servers; I understand if you’re letting the FritzBox handle the DNS servers then things will continue to work).

It seems that the makers of the router, German company AVM, are in a sales process to purchase the domain, having become aware of the problem after someone else bought the domain; I presume they will then remove the DNS resolution so routers again work correctly.

In the meantime, you can use the IP of the FritzBox or of the machine to access them, neither of which is ideal. I’m not particularly experienced with DNS, but I’ve been told if you set the primary DNS server as the router then it will check this first and correctly resolve internal machine names and then use the secondary DNS server for the external domains.

I’ve not tested this approach as I found a setting on the PiHole which I could use to sort the problem without making the change to DNS servers.

In the PiHole admin, this the Local domain name (optional) field in Settings » DNS » Advanced DNS Settings » Conditional forwarding. I set this field to fritz.box, saved the settings and found that I could again navigate using machine names.

Adventures With A Raspberry Pi: How to Update the OS on a Raspberry Pi

Raspberry PiThis post is part of the Adventures with a Raspberry Pi series.

Upgrading the OS on a raspberry Pi is recommended to be done one version at a time. Once you know exactly which version of Raspbian (or Raspberry Pi OS as newer versions are known), you will be able to determine the upgrade path you need to follow. I covered how to determine which OS version you have in the previous post in this series.

There is a version history page available on Wikipedia which shows the versions of the OS and the Raspberry Pi hardware on which it is supported. In my case I have a Raspberry Pi 3B+ which is running Raspbian 9 (Stretch) which means I have two upgrades of the OS to perform to get to the latest version.

There are several steps to go through to upgrade the OS. First we need to edit the sources.list file to update the distribution to which the Raspberry Pi is to be upgraded. Open this file by running the following command on the PI:

sudo nano /etc/apt/sources.list

This will launch the editor:

sources.list in editor

Continue reading “Adventures With A Raspberry Pi: How to Update the OS on a Raspberry Pi”

Adventures With A Raspberry Pi: Check Version of OS on Raspberry Pi

Raspberry PiThis post is part of the Adventures with a Raspberry Pi series.

When I was researching upgrading the Raspberry Pi, the consensus seemed to be that the OS should be upgraded one version at a time. This means that to do the upgrade, you need to know the exact version of the OS you’re using.

There is a command you can run on the Raspberry Pi which will return details of the OS:

cat /etc/os-release

As the screenshot below shows, there is a number of pieces of information returned; in terms of the OS the important line is the VERSION one:

Data on the installed OS

Adventures With A Raspberry Pi

Adventures With A Raspberry Pi
Building The Raspberry Pi: CanaKit Raspberry Pi 3 B+ Complete Starter Kit
Building The Raspberry Pi: Raspberry Pi Build
Building The Raspberry Pi: Install Operating System
Building The Raspberry Pi: First Run
Building The Raspberry Pi: System Configuration Tool
Building The Raspberry Pi: Enable SSH For Remote Access
Building The Raspberry Pi: Securing the Raspberry Pi
Building The Raspberry Pi: Conclusion
Installing Pi-hole On A Raspberry Pi: What is Pi-hole?
Installing Pi-hole On A Raspberry Pi: Install Pi-hole
Installing Pi-hole On A Raspberry Pi: Change Pi-hole Admin Password
Installing Pi-hole On A Raspberry Pi: Configure Network to use Pi-hole
Using Pi-hole On A Raspberry Pi: Blocked Adverts
Using Pi-hole On A Raspberry Pi: Admin Interface
Using Pi-hole On A Raspberry Pi: Disabling Pi-hole
Using Pi-hole On A Raspberry Pi: Whitelisting a Site
Using Pi-hole On A Raspberry Pi: Update Blocklists
Using Pi-hole On A Raspberry Pi: Maintain Blocklists
Using Pi-hole On A Raspberry Pi: Change DNS Servers
Using Pi-hole On A Raspberry Pi: Connecting With SSH
Using Pi-hole On A Raspberry Pi: Updating the Pi-hole
Using Pi-hole On A Raspberry Pi: Conclusion
What Else Can I Use It For?
Prepare New SD Card For Raspberry Pi OS: Download SD Card Formatter
Prepare New SD Card For Raspberry Pi OS: Install SD Card Formatter
Prepare New SD Card For Raspberry Pi OS: Format SD Card
Prepare New SD Card For Raspberry Pi OS: Download NOOBS
Prepare New SD Card For Raspberry Pi OS: Copy Files To The SD Card
Prepare New SD Card For Raspberry Pi OS: Conclusion
Installing Pi-hole On A Raspberry Pi: Changing the IP Address
Raspberry PI Update Fails
Check Version of OS on Raspberry Pi
How to Update the OS on a Raspberry Pi

Adventures With A Raspberry Pi: Raspberry PI Update Fails

Raspberry PiThis post is part of the Adventures with a Raspberry Pi series. I always intended for this to be a long running series, but it’s been quite a while since I did anything with the Pi. I bought one initially to use as a Pi-hole which I have been using ever since although this usually just goes as far as applying updates or whitelisting a site.

There was recently a pending update which I tried to apply, but the update failed saying that an unsupported OS was detected:

Unsupported OS detected

Continue reading “Adventures With A Raspberry Pi: Raspberry PI Update Fails”

Installing Pi-hole On A Raspberry Pi: Changing the IP Address

Raspberry PiI recently built a Raspberry Pi and installed Pi-hole onto it for my Dad. I did all of the work at my house and then took it down to his to install onto his network. I had an issue with doing this as it was not picking up a new IP address (it took me a while to work out that this was the problem).

Not knowing Linux very well, it took me longer than it would have done with a Windows machine to work out the solution. I spent some time searching online and came up with three commands which are run at the command line (once you’ve connected using SHH; IPv6 was working, but not IPv4 , so I was able to connect to the Pi, but not give the router the IP for use as the DNS Server).

  1. Show current IP address assignment:
    ipaddr
  2. To release the current IP address:
    sudo dhclient -r eth0
  3. To request a new IP address:
    sudo dhclient -1 eth0

The above is basically the equivalent of ipconfig /renew on Windows.

Adventures With A Raspberry Pi

Adventures With A Raspberry Pi
Building The Raspberry Pi: CanaKit Raspberry Pi 3 B+ Complete Starter Kit
Building The Raspberry Pi: Raspberry Pi Build
Building The Raspberry Pi: Install Operating System
Building The Raspberry Pi: First Run
Building The Raspberry Pi: System Configuration Tool
Building The Raspberry Pi: Enable SSH For Remote Access
Building The Raspberry Pi: Securing the Raspberry Pi
Building The Raspberry Pi: Conclusion
Installing Pi-hole On A Raspberry Pi: What is Pi-hole?
Installing Pi-hole On A Raspberry Pi: Install Pi-hole
Installing Pi-hole On A Raspberry Pi: Change Pi-hole Admin Password
Installing Pi-hole On A Raspberry Pi: Configure Network to use Pi-hole
Using Pi-hole On A Raspberry Pi: Blocked Adverts
Using Pi-hole On A Raspberry Pi: Admin Interface
Using Pi-hole On A Raspberry Pi: Disabling Pi-hole
Using Pi-hole On A Raspberry Pi: Whitelisting a Site
Using Pi-hole On A Raspberry Pi: Update Blocklists
Using Pi-hole On A Raspberry Pi: Maintain Blocklists
Using Pi-hole On A Raspberry Pi: Change DNS Servers
Using Pi-hole On A Raspberry Pi: Connecting With SSH
Using Pi-hole On A Raspberry Pi: Updating the Pi-hole
Using Pi-hole On A Raspberry Pi: Conclusion
What Else Can I Use It For?
Prepare New SD Card For Raspberry Pi OS: Download SD Card Formatter
Prepare New SD Card For Raspberry Pi OS: Install SD Card Formatter
Prepare New SD Card For Raspberry Pi OS: Format SD Card
Prepare New SD Card For Raspberry Pi OS: Download NOOBS
Prepare New SD Card For Raspberry Pi OS: Copy Files To The SD Card
Prepare New SD Card For Raspberry Pi OS: Conclusion
Installing Pi-hole On A Raspberry Pi: Changing the IP Address
Raspberry PI Update Fails
Check Version of OS on Raspberry Pi
How to Update the OS on a Raspberry Pi

Prepare New SD Card For Raspberry Pi OS: Conclusion

Raspberry PiThis post is part of the series on preparing a new SD card to install a new Raspberry Pi operating system; this series is a sub-series of the Adventures with a Raspberry Pi.

With the SD Card Formatter tool, it is easy to create a bootable SD card for the Raspberry Pi.

I’ve used the tool to install NOOBS, but there are a number of other OSes available. However, if you go with NOOBS, it includes a few different operating systems, some of which allow additional software to be installed (suchas Rasbian Lite which I used when installing a Pi-hole).

Adventures With A Raspberry Pi

Adventures With A Raspberry Pi
Building The Raspberry Pi: CanaKit Raspberry Pi 3 B+ Complete Starter Kit
Building The Raspberry Pi: Raspberry Pi Build
Building The Raspberry Pi: Install Operating System
Building The Raspberry Pi: First Run
Building The Raspberry Pi: System Configuration Tool
Building The Raspberry Pi: Enable SSH For Remote Access
Building The Raspberry Pi: Securing the Raspberry Pi
Building The Raspberry Pi: Conclusion
Installing Pi-hole On A Raspberry Pi: What is Pi-hole?
Installing Pi-hole On A Raspberry Pi: Install Pi-hole
Installing Pi-hole On A Raspberry Pi: Change Pi-hole Admin Password
Installing Pi-hole On A Raspberry Pi: Configure Network to use Pi-hole
Using Pi-hole On A Raspberry Pi: Blocked Adverts
Using Pi-hole On A Raspberry Pi: Admin Interface
Using Pi-hole On A Raspberry Pi: Disabling Pi-hole
Using Pi-hole On A Raspberry Pi: Whitelisting a Site
Using Pi-hole On A Raspberry Pi: Update Blocklists
Using Pi-hole On A Raspberry Pi: Maintain Blocklists
Using Pi-hole On A Raspberry Pi: Change DNS Servers
Using Pi-hole On A Raspberry Pi: Connecting With SSH
Using Pi-hole On A Raspberry Pi: Updating the Pi-hole
Using Pi-hole On A Raspberry Pi: Conclusion
What Else Can I Use It For?
Prepare New SD Card For Raspberry Pi OS: Download SD Card Formatter
Prepare New SD Card For Raspberry Pi OS: Install SD Card Formatter
Prepare New SD Card For Raspberry Pi OS: Format SD Card
Prepare New SD Card For Raspberry Pi OS: Download NOOBS
Prepare New SD Card For Raspberry Pi OS: Copy Files To The SD Card
Prepare New SD Card For Raspberry Pi OS: Conclusion
Installing Pi-hole On A Raspberry Pi: Changing the IP Address
Raspberry PI Update Fails
Check Version of OS on Raspberry Pi
How to Update the OS on a Raspberry Pi

Prepare New SD Card For Raspberry Pi OS: Copy Files To The SD Card

Raspberry PiThis post is part of the series on preparing a new SD card to install a new Raspberry Pi operating system; this series is a sub-series of the Adventures with a Raspberry Pi.

With NOOBS downloaded, extract the files from the zip file:

NOOBS zip file

Continue reading “Prepare New SD Card For Raspberry Pi OS: Copy Files To The SD Card”

Prepare New SD Card For Raspberry Pi OS: Download NOOBS

Raspberry PiThis post is part of the series on preparing a new SD card to install a new Raspberry Pi operating system; this series is a sub-series of the Adventures with a Raspberry Pi.

You have two options for operating systems available directly from Raspberry Pi; NOOBS and Raspbian.

NOOBS is the New Out Of Box Software which contains several operating systems accessible via an easy to use launcher.

Raspbian is the full Raspberry Pi operating system.

I have opted to use NOOBS for my micro-SD card as it includes a recovery console (hold down the shift key during boot). Download NOOBS from the Raspberry Pi downloads page. Click the large NOOBS image:

NOOBS download page

Continue reading “Prepare New SD Card For Raspberry Pi OS: Download NOOBS”

Prepare New SD Card For Raspberry Pi OS: Format SD Card

Raspberry PiThis post is part of the series on preparing a new SD card to install a new Raspberry Pi operating system; this series is a sub-series of the Adventures with a Raspberry Pi.

With the SD Card Formatter Installed, it is time to format the SD card. Place the SD card into the card reader and launch SD Card Formatter from the Windows start menu.

Make sure the corrected card is selected and mark Overwrite Format and then click Next:

SD Card Formatter

Continue reading “Prepare New SD Card For Raspberry Pi OS: Format SD Card”

Prepare New SD Card For Raspberry Pi OS: Install SD Card Formatter

Raspberry PiThis post is part of the series on preparing a new SD card to install a new Raspberry Pi operating system; this series is a sub-series of the Adventures with a Raspberry Pi.

With the SD Memory Card Formatter downloaded, we can now install it.

Extract and launch the application from the downloaded zip file:

Downloaded and extracted application

Continue reading “Prepare New SD Card For Raspberry Pi OS: Install SD Card Formatter”