0

My question is very similar to this one: Can ping but no DNS

I have setup a static IP on my previous Ubuntu versions - 9.04 and 12.04 - without issue. I have used an identical means this time as well. Namely manually editing the /etc/network/interfaces file to set the static IP.

My router has the IP reserved for this machine. The machine acquires the desired static IP (I now get the networking issues message and extra 60 second wait at reboot). I can ping the router and 8.8.8.8 but I cannot look anything up. I cannot use curl with a domain name like google.com.

My windows laptop does not see it but I can access it by going to the designated static IP.

I tried using nslookup as suggested in the referenced question but the timed out without reaching any servers.

2 Answers2

1

I don't typically want to answer my own questions but I fixed this issue - mostly. The answers were on these 2 posts:

Static IP configuration causing apt-get errors

resolv.conf doesn't get set on reboot when networking is configured for static ip

Ultimately the answer was to add:

dns-nameservers 10.0.1.1

At the end of the eth0 definition in /etc/network/interfaces. This solves all of my access issues to he outside world. However, I have gone from a very quick boot up to a boot up that takes a couple of minutes while it waits on the network config for some reason. The static IP is reserved with the router so conflicts really shouldn't be the issue.

Anyways the system now works functionally with the static IP I want. The long boot up is just an annoyance.

0

If your installation was first setup via DHCP this other post might give you additional insights:

Static ip but dynamic nameservers?

ionreflex
  • 629
  • 1
  • 5
  • 13