First, yes, this question's "question" will be an exact duplicate of static ip - what am I doing wrong? , but the question was never resolved in a way that helps.
What I am trying to do is make my Ubuntu Server have a static IP address. I am not entirely sure on the numbers to plug in, but I am sure it has something to do with correctly setting up the DNS servers.
Information I have:
- I want the address of the computer to be
192.168.1.99
. - The router's address is
192.168.1.1
. - The subnet mask is
255.255.255.0
. - I assume that the network is
192.168.1.0
. - I assume that the broadcast is
192.168.1.255
. - According to my router, the DNS servers are
75.75.75.75
and75.75.75.76
. No idea if this is correct or not.
This is what my files look like currently:
/etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.1.99
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
/etc/resolv.conf
#these are all commented out, I was trying ideas, but no combinations worked.
#nameserver 75.75.75.75
#nameserver 75.75.76.76
#nameserver 8.8.8.8
#search hsd1.nh.comcast.net
Currently, as with the similar question, I can ping every other computer on my local network. But as soon as I try to ping www.google.com
, I get unknown host www.google.com
.
If anyone has any suggestions, it would help a lot.
suggestion: Why doesn't this custom static IP network configuration work? (the first comment)
nameserver 192.168.1.1
in your/etc/resolv.conf
?