can't set up DNS server for PPTP clients

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
diablich
DD-WRT Novice


Joined: 12 Apr 2009
Posts: 12

PostPosted: Tue Feb 01, 2011 20:26    Post subject: can't set up DNS server for PPTP clients Reply with quote
Greetings all,

I have trouble setting up my pptp server and i hope someone can help me. I am using DD-WRT v24-sp2 (08/07/10) mega (SVN revision 14896) with Asus WL-500w router.

I currently have an active pptp server (services -> vpn tab) on my router, with the following settings:

PPTP Server - Enable
Broadcast support - Enable
Force MPPE Encryption - Enable
DNS1 - 192.168.1.130 (this is my local dns -> this IP is also used under Basic tab -> Local DNS
DNS2 - 193.189.160.13 (my ISP's DNS)
WINS1 - 192.168.1.130 (same as local DNS)
WINS2 - none
Server IP - 192.168.1.2 (same as router's ip)
Client IP(s) - 192.168.1.200-205 (out of dhcp range)
CHAP-Secrets - something * something *

This is working fine, i can connect and surf the web (using Windows 7). But the problem is with local name resolutions. I can ping everything on my LAN using IP but not hostname.
ipconfig -all returns my configuration for vpn as follows:

IP address ... 192.168.1.200 (preffered)
Subnet mask ... 255.255.255.255
Default Gateway ... 0.0.0.0
DNS Servers ... 193.189.160.23
192.168.1.130
193.189.160.13
Primary WINS... 192.168.1.130
Netbios over tcpip .. Enabled

Questions: Where does it get those other two DNS's besides 192.168.1.130, and how come my local dns is in the middle?

I have set the Static Routing like described here http://www.dd-wrt.com/wiki/index.php/PPTP_Server_Configuration#Broadcast_to_VPN_Clients


I'm not really sure about my basic config under Basic tab. I have set Gateway to 192.168.1.2 (router's IP), Local DNS is 192.168.1.130, and below there are 3 Static DNS fields -> i entered the same IP's as above, in the same order (first my local dns and 2 isp's). I also unchecked "Use DNSMasq for DNS".

My task is to run ipconfig -all on pptp connected client and see only one DNS server that is my Local DNS 192.168.1.130.
Any help or advice on achieving that will be greatly appreciated :)

Best regards
Sponsor
diablich
DD-WRT Novice


Joined: 12 Apr 2009
Posts: 12

PostPosted: Wed Feb 02, 2011 21:14    Post subject: Reply with quote
seriously no ideas? I think i can't be more specific, i would just like to push my DNS (192.168.1.130) as first and primary dns to vpn clients.
mw1001
DD-WRT User


Joined: 12 Jul 2008
Posts: 54

PostPosted: Sun Feb 20, 2011 22:00    Post subject: Reply with quote
I'm having the very same problem: can access network client by IP but not by hostname.

For exemple, trying to use a network print called 3505N: I can ping the IP, nslookup translates by name or by IP, but I can't acess or ping it by name:

Code:
C:\Users\mw1001>ping 3505N
Ping request could not find host 3505N. Please check the name and try again.
 
C:\Users\mw1001>nslookup 3505N
Server:  WRTSL54GS
Address:  192.168.2.50
 
Name:    3505N
Address:  192.168.2.251
 
 
C:\Users\mw1001>nslookup 192.168.2.251
Server:  WRTSL54GS
Address:  192.168.2.50
 
Name:    3505N
Address:  192.168.2.251
 
 
C:\Users\mw1001>ping 3505N
Ping request could not find host 3505N. Please check the name and try again.
 
C:\Users\mw1001>ping 192.168.2.251
 
Pinging 192.168.2.251 with 32 bytes of data:
Reply from 192.168.2.251: bytes=32 time=775ms TTL=63
Reply from 192.168.2.251: bytes=32 time=121ms TTL=63
Reply from 192.168.2.251: bytes=32 time=153ms TTL=63
Reply from 192.168.2.251: bytes=32 time=124ms TTL=63
 
Ping statistics for 192.168.2.251:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 121ms, Maximum = 775ms, Average = 293ms
 
C:\Users\mw1001>


Also, when open windows explorer and click "network" only shows the local computer. Not a single one from the network, at the other connection side, is showed. And I have a dozen of devices in the network.

The VPN server is configured as suggested at WiKi (http://www.dd-wrt.com/wiki/index.php/VPN): the router (192.168.2.50) as DNS1, WINS1 and Server IP. I did try disable IPv6 in Windows PPTP dial up, but this doesn't make any difference...

Any help will be much appreciated! I really do like to browse the network by hostname.


Thanks in advance.
GuruMeditation
DD-WRT Novice


Joined: 03 Apr 2011
Posts: 4

PostPosted: Sat Apr 16, 2011 3:09    Post subject: Reply with quote
This is a defect of Windows with regards to hostnames with no suffix. See top result here for more information: http://stackoverflow.com/questions/330395/dns-problem-nslookup-works-ping-doesnt

Solution: In your network connection you need to add a the DNS suffix "." to the list of DNS suffixes to append.

Extended solution: Go to Control Panel -> Network Connections. In Windows 7 once you are in this section you will need to go to "Change adapter settings". Go to the Properties section of your Network Connection. Once there go to the Properties section of "Internet Protocol Version 4 (TCP/IPv4)" - I think in Windows XP you would need to go to the Advanced section of your Network Connection properties to see this. Once you are in this section click on the Advanced button at the bottom. Go to the DNS tab and at the bottom check the radio button where it says "Append these DNS suffixes (in order):". Then click the Add button underneath this and add the DNS suffix ".". Click OK on all the windows and try to ping again.

Edit: Sorry for bumping an old topic, but I had the exact same problem and this was the top result when googling "dd wrt dns 'could not find host'" Smile
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum