Posted: Tue Feb 01, 2011 20:26 Post subject: can't set up DNS server for PPTP clients
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 - 184.108.40.206 (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 ... 220.127.116.11
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'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 :)
Ping request could not find host 3505N. Please check the name and try again.
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
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.
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'"