Static IP messes up DNS.

iiipgciii

Honorable
Feb 11, 2013
8
0
10,510
The IP of my PC is 192.168.1.9. It is given this ip with DHCP. When I IPCONFIG the settings, and then change to a static IP/DNS settings. All my DNS entries get messed up, and other machines cannot connect to this machine via the hostname. The settings are exactly the same, except for it being static, instead of dynamic. Any ideas why this would happen?

I am running Windows 7 and my DNS settings is pointed to my router, with the secondary being 8.8.8.8
 
Solution
If your PC is 192.168.1.9, I will assume that your router is 192.168.1.1. (When you make this change it causes an overlap of a static address with the DHCP range, since you have not made all the changes needed).

What is the DHCP range in your router, it should start at 192.168.1.10 or above, and I would enter your PC is the router static device table, which will require your MAC address.

Leave the DNS 192.168.1.1, with 8.8.8.8 as the backup on your computer and all should work fine.

RealBeast

Titan
Moderator
If your PC is 192.168.1.9, I will assume that your router is 192.168.1.1. (When you make this change it causes an overlap of a static address with the DHCP range, since you have not made all the changes needed).

What is the DHCP range in your router, it should start at 192.168.1.10 or above, and I would enter your PC is the router static device table, which will require your MAC address.

Leave the DNS 192.168.1.1, with 8.8.8.8 as the backup on your computer and all should work fine.
 
Solution

iiipgciii

Honorable
Feb 11, 2013
8
0
10,510
Ok that worked! But now I have another weird problem. One of my Ubuntu machines cannot be pinged with the hostname on my windows machine anymore. I Can ping it with the hostname from my raspberry pi. It is entered in my routers DNS, but in the routers connection list, it names it "new-host-3." Which I also cannot ping. Weird