Page 1 of 1
PPTP with no DNS
Posted: Wed Jan 05, 2011 12:00 pm
by cata02
I've created a PPTP vpn server for about 100 customers.
All the customers are running windows (no mikrotik devices), and are using the pptp connection so that i can remote to their machines (servers in general).
i've created an ppp profile with an local address and no dns setting, but when the client connects it seems that routeros sends out an dns server setting with it's own ip. that makes the server unable to resolve anything -- i dont run, and dont plan to run, and dns server on mikrotik.
how can i prevent routeros sending the dns server setting for pptp connections?
Re: PPTP with no DNS
Posted: Thu Jan 06, 2011 9:11 am
by cata02
anyone?
handing out dns settings to vpn clients it's a serious change, thoose vpn clients won't be able to use their local dns server and won't be able to resolve their local network names.
Re: PPTP with no DNS
Posted: Thu Jan 06, 2011 9:24 am
by sergejs
To get no DNS server from PPTP, there should be
- no dns configuration at ppp profile;
- allow-remote-requests=no for /ip dns
- server should be empty at /ip dns
Then DNS configuration will not be assigned to client.
Re: PPTP with no DNS
Posted: Thu Jan 06, 2011 10:03 am
by cata02
ok, i can confirm that it works.
but i have one issue: i need the dns active foro other purposes, not for ppp.
it keep the customer-to-ip mapping.
Re: PPTP with no DNS
Posted: Thu Jan 06, 2011 10:10 am
by sergejs
Look at the client configuration, at least at Windows you can unset "Obtain DNS server address automatically" and use static DNS configuration.
When there is no access to the client device, use the settings from the previous post.
Re: PPTP with no DNS
Posted: Thu Jan 06, 2011 10:27 am
by cata02
this is a little bit unfortunate.
the vpn i use is kinda public: out customers connect to it so that we can remote to their computers for support.
i cannot afford to change all current and future client connection profiles to use their dns (most of our customers don't even have it dept, some have very powerfull it dept).
it's strange that routeros will hand out dns setting even if there is no dns server on the ppp profile. doens't seem right.
Re: PPTP with no DNS
Posted: Thu Jan 06, 2011 10:38 am
by sergejs
Your PPTP client is asking for DNS settings. RouterOS replies with available DNS settings.
Set DNS cache on other router and forward 53 port traffic from PPTP server, that will allow you to have blank configuration on PPTP server and working DNS cache on the network.
Re: PPTP with no DNS
Posted: Fri Oct 12, 2012 3:38 am
by hardings
I know this is an old topic but ...
Has this problem been fixed yet?
Having the router assign DNS when no DNS is defined in the PPP profile goes against all sense and must be a bug. Most PPP clients, including ROS, do not have the ability to refuse a DNS allocation without defining a replacement. Surely the PPTP server should not allocate one if the profile DNS Server entry is nulled.
Also, emptying the /ip dns does not solve the problem, until the router is rebooted!!
Mikrotik support giving workarounds to solve this problem indicates an unintended feature (bug) to me.
This bug caused me no end of heartache when I needed to activate /ip dns only for an internal router lookup requirement, and all of a sudden PPP client connected equipment all over the place started to loose local dns capabilities because the PPP client allocated DNS started overiding the locally defined DNS settings.
Any sign of a real solution?
Re: PPTP with no DNS
Posted: Thu Jan 10, 2013 7:05 pm
by AndySouth
I sort out this problem by setting dns-server=8.8.8.8 in my ppp profile.
Re: PPTP with no DNS
Posted: Thu Jan 10, 2013 11:52 pm
by AndySouth
I know this is an old topic but ...
Has this problem been fixed yet?
Having the router assign DNS when no DNS is defined in the PPP profile goes against all sense and must be a bug. Most PPP clients, including ROS, do not have the ability to refuse a DNS allocation without defining a replacement. Surely the PPTP server should not allocate one if the profile DNS Server entry is nulled.
Also, emptying the /ip dns does not solve the problem, until the router is rebooted!!
Mikrotik support giving workarounds to solve this problem indicates an unintended feature (bug) to me.
This bug caused me no end of heartache when I needed to activate /ip dns only for an internal router lookup requirement, and all of a sudden PPP client connected equipment all over the place started to loose local dns capabilities because the PPP client allocated DNS started overiding the locally defined DNS settings.
Any sign of a real solution?
No? this problem hasn't fixed.
I sort out with it setting dns-server=8.8.8.8 in my ppp profile.
Re: PPTP with no DNS
Posted: Fri Jan 11, 2013 7:38 am
by hardings
I sort out with it setting dns-server=8.8.8.8 in my ppp profile.
Its not a solution or a workaround. I want no DNS, so setting the Google DNS doesnt help at all.
Re: PPTP with no DNS
Posted: Wed May 01, 2013 8:21 pm
by mstuder42
well I want to use DNS over the PPTP and I did put a dns server in the profile on the PPP profile. But it doesn't seem like the PPTP client (another mikrotik) will use the DNS...
Any ideas?
/EDIT
actually I just neeed to add the DNS in the DHCP options so my clients got the DNS server. Hope this helps someone.
Re: PPTP with no DNS
Posted: Mon Jan 19, 2015 12:05 am
by innokentiy
It seems the bug is still active. It is really wrong to change DNS server list on a client without a direct command, and even without a possibility to prohibit this behavior. If a client runs AD-joined Windows and we change their DNS to ours, their AD fails.
If we want to provide a DNS in PPP - we have a corresponding setting. It is not set by default, and "not set" must mean "we don't give a DNS to a client".
Re: PPTP with no DNS
Posted: Wed May 25, 2016 2:07 pm
by dennis45
Here is a possible solution.
I noticed setting "255.255.255.255" value to "DNS Server" field of PPP profile prevents DNS assign in Windows XP and Windows 10.
Re: PPTP with no DNS
Posted: Wed May 25, 2016 2:32 pm
by hardings
Here is a possible solution.
I noticed setting "255.255.255.255" value to "DNS Server" field of PPP profile prevents DNS assign in Windows XP and Windows 10.
Interesting. I will give that a try. THANKS!!
Re: PPTP with no DNS
Posted: Tue Apr 03, 2018 12:17 pm
by pcjc
This bug just bit me in 2018, RotuerOS does NOT behave the way I would expect.
Would be nice if no PPP profie DNS meant no DNS to clients, perhaps an "auto" option for the current behaviour. (Or, add explicit "no dns" option, keeping current behaviour default).