I'm creating a Minecraft server with an old desktop computer (a HP Pavilion) running Ubuntu 22.04 and when trying to set up a local static IP, my DNS appears to stop working entirely. At first, I used netplan to edit the connection details, but as I wasn't confident in editing system files (and I couldn't get it to work!), I just used the Ubuntu GUI for manually setting the IP address.
Before I set the address, I checked my router DHCP range (192.168.1.10-254
), which meant I could select 192.168.1.2-9
as my static IP - not 192.168.1.1
, as that's my router's IP. I went to Settings and after changing the IPv4 Method to Manual, I set my Address to 192.168.1.5
, the Netmask to 255.255.255.0
and the Gateway to 192.168.1.1
- my router address - and I successfully connected, which I verified by going into my router web interface and checking the IP assigned.
Everything seemed fine, so I opened Firefox and attempted a search. When this returned a Server Not Found page, I tried https://1.1.1.1 and it showed up as normal. I tried this with a few other IPs and hostnames, and ran ping
in the terminal, but it still failed with hostnames, which pointed to a DNS error. I went back to the Settings, disabled Automatic DNS and tried the 1.1.1.1,1.0.0.1
(Cloudflare) DNS addresses. Still no luck. 8.8.8.8,8.8.4.4
(Google DNS) didn't work either.
After searching the internet, none of the answers I've found can fix the DNS - they all say how to change the servers, and it isn't making a difference. I'm also unsure about the Routes part of the IPv4 settings, so I've left that on Automatic.
I am vaguely new to both Ubuntu Desktop and Ask Ubuntu, so if I'm making a stupid mistake or I need to add more information to the question, just tell me :)