Community discussions

MikroTik App
 
cata02
Member Candidate
Member Candidate
Topic Author
Posts: 116
Joined: Fri Mar 05, 2010 8:58 am

PPTP with no DNS

Wed Jan 05, 2011 12:00 pm

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?
 
cata02
Member Candidate
Member Candidate
Topic Author
Posts: 116
Joined: Fri Mar 05, 2010 8:58 am

Re: PPTP with no DNS

Thu Jan 06, 2011 9:11 am

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.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6695
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: PPTP with no DNS

Thu Jan 06, 2011 9:24 am

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.
 
cata02
Member Candidate
Member Candidate
Topic Author
Posts: 116
Joined: Fri Mar 05, 2010 8:58 am

Re: PPTP with no DNS

Thu Jan 06, 2011 10:03 am

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.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6695
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: PPTP with no DNS

Thu Jan 06, 2011 10:10 am

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.
 
cata02
Member Candidate
Member Candidate
Topic Author
Posts: 116
Joined: Fri Mar 05, 2010 8:58 am

Re: PPTP with no DNS

Thu Jan 06, 2011 10:27 am

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.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6695
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: PPTP with no DNS

Thu Jan 06, 2011 10:38 am

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.
 
hardings
newbie
Posts: 30
Joined: Fri Feb 26, 2010 11:13 am
Location: Melbourne Australia

Re: PPTP with no DNS

Fri Oct 12, 2012 3:38 am

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?
 
AndySouth
just joined
Posts: 2
Joined: Thu Jan 10, 2013 7:01 pm

Re: PPTP with no DNS

Thu Jan 10, 2013 7:05 pm

I sort out this problem by setting dns-server=8.8.8.8 in my ppp profile.
 
AndySouth
just joined
Posts: 2
Joined: Thu Jan 10, 2013 7:01 pm

Re: PPTP with no DNS

Thu Jan 10, 2013 11:52 pm

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.
 
hardings
newbie
Posts: 30
Joined: Fri Feb 26, 2010 11:13 am
Location: Melbourne Australia

Re: PPTP with no DNS

Fri Jan 11, 2013 7:38 am

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.
 
mstuder42
just joined
Posts: 2
Joined: Wed May 01, 2013 8:14 pm

Re: PPTP with no DNS

Wed May 01, 2013 8:21 pm

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.
 
innokentiy
just joined
Posts: 4
Joined: Thu Feb 16, 2012 9:04 am

Re: PPTP with no DNS

Mon Jan 19, 2015 12:05 am

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".
 
dennis45
just joined
Posts: 1
Joined: Wed May 25, 2016 1:54 pm

Re: PPTP with no DNS

Wed May 25, 2016 2:07 pm

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.
 
hardings
newbie
Posts: 30
Joined: Fri Feb 26, 2010 11:13 am
Location: Melbourne Australia

Re: PPTP with no DNS

Wed May 25, 2016 2:32 pm

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!!
 
pcjc
just joined
Posts: 22
Joined: Wed Aug 02, 2017 4:29 pm

Re: PPTP with no DNS

Tue Apr 03, 2018 12:17 pm

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).

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot], sebi099 and 200 guests