Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have set up a PPTP tunnel on my linux box 192.168.1.10 (LAN is 192.168.1/24)

PPTP settings are: Local/Remote 192.168.2.10 / 192.168.2.100-200.

I can connect to the server with an iphone and can access ip addresses on the lan, but cannot connect to the internet with DNS. I can access the internet with ip addresses.

What am I doing wrong?

share|improve this question
    
Do you have an internal DNS server? –  GregD Oct 18 '09 at 2:26
1  
The DHCP which assigns the IP address inside of 192.168.1.x to the iPhone should also assign a DNS server (within the network), which should be capable of internal/external resolution. –  Kyle Smith Oct 18 '09 at 2:36
    
@GregD no, use opendns –  Tom Oct 18 '09 at 12:13
add comment

1 Answer

If you can use the IP addresses but not the names, it means that the DNS is not working.

Set the following in /etc/ppp/options (on the server):

ms-dns 208.67.222.222  
ms-dns 208.67.220.220

to use opendns, or easier to remember, Google public dns:

ms-dns 8.8.8.8
ms-dns 8.8.4.4

Those servers are anycasted around the world and are pretty reliable, and also quite fast!

share|improve this answer
1  
That was a great explanation, and prompted me to go back and understand what Anycasting is, and why it is used. –  SpacemanSpiff Apr 3 '11 at 23:37
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.