Community discussions

MikroTik App
changeip
Forum Guru
Forum Guru
Topic Author
Posts: 3828
Joined: Fri May 28, 2004 5:22 pm

EDNS Not Implemented?

Thu Oct 08, 2009 8:15 pm

Please add support to Mikrotik DNS the ability to pass EDNS packets (udp > 512 bytes). All the RouterOS boxes I test fail whereas hitting the resolver directly causes a pass.

https://www.dns-oarc.net/oarc/services/replysizetest

Thx,
Sam
Top
User avatar
Caci99
Forum Guru
Forum Guru
Posts: 1073
Joined: Wed Feb 21, 2007 2:26 pm
Location:Tirane
Contact:

Re: EDNS Not Implemented?

Wed Nov 25, 2009 11:34 pm

How did you test it Sam?
I was having this issue today, but solved it changing the DNS server.
I was using the opendns server because my ISP server gave some
problems a couple of weeks ago. Today I was forced to switch again
at the ISP DNS server because I was not able to accesswww.google.com
Top
changeip
Forum Guru
Forum Guru
Topic Author
Posts: 3828
Joined: Fri May 28, 2004 5:22 pm

Re: EDNS Not Implemented?

Thu Nov 26, 2009 5:04 am

if you have a linux box handy you can run this:

dig +short rs.dns-oarc.net txt

It will give you some diags about packet sizes.

snorris@silver:~/mrtg$ dig +short rs.dns-oarc.net txt
rst.x1220.rs.dns-oarc.net.
rst.x1202.x1220.rs.dns-oarc.net。
rst.x1243.x1202.x1220.rs.dns-oarc.net.
"68.15.4.39 DNS reply size limit is at least 1243 bytes"
"68.15.4.39 sent EDNS buffer size 1280"

Try that against a few servers and see what you get:

"dig @serverip +short rs.dns-oarc.net txt"

sam
Top
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6689
Joined: Thu Mar 31, 2005 3:33 pm
Location:Riga, Latvia
Contact:

Re: EDNS Not Implemented?

2009年12月10日,星期四11:09 am

Have you increased max-udp-packet-size on your MikroTik router in /ip dns configuration?
Top
User avatar
Caci99
Forum Guru
Forum Guru
Posts: 1073
Joined: Wed Feb 21, 2007 2:26 pm
Location:Tirane
Contact:

Re: EDNS Not Implemented?

2009年12月10日,星期四12:33 pm

Yes Sergejs, I tried to increase the udp packet size
and it looked like at first it solved the problem, but then
it happened again. I guess on that day there were a couple
of things causing the dns problems, server side, client side
who knows what else:).
After some hours it was back at normal
My current settings for the dns are

max-udp-packet-size=1024
cache-size=8192KiB

Until now no problems
Top
changeip
Forum Guru
Forum Guru
Topic Author
Posts: 3828
Joined: Fri May 28, 2004 5:22 pm

Re: EDNS Not Implemented?

2009年12月10日,星期四7:21 pm

Serejes,

Mikrotik HAS TO change the default from 512 to larger. The root servers will be signed here in a short time and everything related to DNS will get ackward, and cause Mikrotik TONS of support tickets and uproar. Change the default from 512 now before it's too late.

http://labs.ripe.net:80/content/prepari ... -root-zone
"One of the most visible changes that DNSSEC introduces is that DNS replies become bigger. Every resource record set (RRSet) is accompanied by a signature (RRSIG). In many cases, such responses will be bigger than 512 bytes in size"
Sam
Top
changeip
Forum Guru
Forum Guru
Topic Author
Posts: 3828
Joined: Fri May 28, 2004 5:22 pm

Re: EDNS Not Implemented?

2009年12月10日,星期四7:25 pm

max-udp-packet-size=1024
cache-size=8192KiB
DNS responses are sometimes 4096 bytes. However, each individual packet will be only 1500 or whatever your MTU is. You should make the max-udp-packet-size your MTU or larger I assume. I would make it 4096 to account for both packet size and dns reply size. In the next year DNS packets will commonly be > 1024 or more.

Sam
Top
User avatar
Caci99
Forum Guru
Forum Guru
Posts: 1073
Joined: Wed Feb 21, 2007 2:26 pm
Location:Tirane
Contact:

Re: EDNS Not Implemented?

2009年12月10日,星期四8:25 pm

Very helpful tip Sam.
Since I am not using any linux machine in my LAN
is there any way, different from what you described before
to investigate these dns packets? Can MikroTik do that?

Thank you, Toni
Top
changeip
Forum Guru
Forum Guru
Topic Author
Posts: 3828
Joined: Fri May 28, 2004 5:22 pm

Re: EDNS Not Implemented?

2009年12月10日,星期四9:48 pm

you should be able to still run dig on windows:

ftp://ftp.isc.org/isc/bind9/9.6.1-P2/BIND9.6.1-P2.zip

dig is part of the BIND distro, just unzip and move dig to somewhere on your windows box you can run it. same command line syntax should work on windows.
Top
User avatar
Caci99
Forum Guru
Forum Guru
Posts: 1073
Joined: Wed Feb 21, 2007 2:26 pm
Location:Tirane
Contact:

Re: EDNS Not Implemented?

2009年12月10日,星期四11:36 pm

I just tried that and it gave the following answer:

rst.x486.rs.dns-oarc.net.
rst.x454.x486.rs.dns-oarc.net.
rst.x384.x454.x486.rs.dns-oarc.net.
"208.69.34.6 DNS reply size limit is at least 486 bytes"
"208.69.34.6 lacks EDNS, defaults to 512"

Looks like it is within limits, is it?
Top
changeip
Forum Guru
Forum Guru
Topic Author
Posts: 3828
Joined: Fri May 28, 2004 5:22 pm

Re: EDNS Not Implemented?

Fri Dec 11, 2009 12:43 am

thats not good, you want > 512. You should be getting > 1024, and even better > 4000.

Sam


The output should look something like this:

rst.x4001.rs.dns-oarc.net.
rst.x3985.x4001.rs.dns-oarc.net.
rst.x4023.x3985.x4001.rs.dns-oarc.net.
"192.168.1.1 sent EDNS buffer size 4096"
"192.168.1.1 DNS reply size limit is at least 4023 bytes"
Top
User avatar
Caci99
Forum Guru
Forum Guru
Posts: 1073
Joined: Wed Feb 21, 2007 2:26 pm
Location:Tirane
Contact:

Re: EDNS Not Implemented?

Fri Dec 11, 2009 1:06 am

我想我现在明白了这个测试。
So this is testing the max packet size I can receive
and not the max packet size the dns server is sending, right?

Ok, I made the correction, restarted the firewall rule for redirecting
dns requests to the router itself (disabled/enabled) and now I got
the right answer I think:

rst.x4001.rs.dns-oarc.net.
rst.x3985.x4001.rs.dns-oarc.net.
rst.x4023.x3985.x4001.rs.dns-oarc.net.
"80.78.65.130 DNS reply size limit is at least 4023 bytes"
"80.78.65.130 sent EDNS buffer size 4096"

Very helpful, Sam, thanks a lot
Top
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8689
Joined: Mon Jun 19, 2006 11:15 pm
Location:Minsk, Belarus
Contact:

Re: EDNS Not Implemented?

Fri Dec 11, 2009 1:24 am

The root servers will be signed here in a short time and everything related to DNS will get ackward, and cause Mikrotik TONS of support tickets and uproar. Change the default from 512 now before it's too late.
Thanks God, RouterOS do not do requests to the root servers - it's not recursive server:D
Top
User avatar
hilton
Long time Member
Long time Member
Posts: 634
Joined: Thu Sep 07, 2006 5:12 pm
Location:Jozi (aka Johannesburg), South Africa

Re: EDNS Not Implemented?

Fri Dec 18, 2009 4:04 pm

Just received this email from the South African co.za administrators but does it apply to Mikrotik?
Code:Select all
As of earlier this month, ICANN have started signing the root zone in an offline process (ie not in a live manner). This will gradually be phased in through the course of 2010, starting in January, and culminating in a fully live signed root zone in July 2010. Technically, this means that replies to queries to the root name servers will exceed 512 bytes. This may cause problems for some resolving software that does not support EDNS0, or resolvers that sit behind misconfigured firewalls that arbitrarily enforce a 512 limit on DNS traffic. There are also cases involving the handling of IP fragmentation where problems can occur. You should check that your resolving infrastructure can handle this issue - https://www.dns-oarc.net/oarc/services/replysizetest for a methodology. You may also wish to pass this on to your clients, particularly those who run their own resolving infrastructure, and/or firewalls. Definitive website: http://www.root-dnssec.org/ More details can be found at: http://labs.ripe.net/content/preparing-k-root-signed-root-zone Inpact on end-user kit: http://download.nominet.org.uk/dnssec-cpe/DNSSEC-CPE-Report.pdf Best timeline for events: http://www.ripe.net/ripe/meetings/ripe-59/presentations/abley-signed-root.pdf
Top
pedja
Long time Member
Long time Member
Posts: 683
Joined: Sat Feb 26, 2005 5:37 am

Re: EDNS Not Implemented?

Thu Apr 15, 2010 11:58 am

Thanks God, RouterOS do not do requests to the root servers - it's not recursive server:D
It is not point if MT can query DNSEC, but if it has UDP packets limited to 512 bytes, DNSEC packets, whoever sends them, would not be able not pass through.
Top

Who is online

Users browsing this forum:Ahrefs [Bot],Google [Bot],Kuwaitand 13 guests