Ernillew / wl500g

Automatically exported from code.google.com/p/wl500g
0 stars 0 forks source link

Unneeded empty 'nameserver' line in resolv.conf in r5228 and MAXNS consideration #415

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. See /tmp/resolv.conf from r5228 build.

What is the expected output? What do you see instead?
I see:
---------------------------
nameserver <provider NS1>
nameserver <provider NS2>
nameserver <IPv6 tunnel NS1>
nameserver

---------------------------
I.e. last "nameserver" line is blank which is against the specs. BTW, having 
dnsmasq on board, /etc/resolv.conf link is unneeded and can be removed. Default 
resolver library will ask dnsmasq running locally in that case.

What version of the product are you using?
RT-N16-1.9.2.7-rtn-r5288.trx

Please describe the problem as detailed as it's possible.
If you have connection problem, then syslog file is required. (please do
attach it as a file)

Standard resolv.conf may include up to MAXNS 'nameserver' lines which usually 
equal to 3 in resolv.h
I can't find resolv.h in the checked out r5228 sources, but in case MAXNS still 
equal to 3 there perhaps it needs to be increased to 6 counting IPv6 NSes.

Original issue reported on code.google.com by ache...@gmail.com on 1 Oct 2013 at 1:46

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
hm, empty nameservers shouldn't be written resolv.conf by fw itself. recheck it 
without 
your /usr/local/bin/* scripts.
also, please provide your WAN ipv4 & ipv6 full configuration, also you can send 
nvram show > /tmp/nvram.dump via email.
you can find resolv.h in toolhcain archive, MAXNS is 3, but uclibc internal 
resolver has no resolvers count limit, without syncing, at least

Original comment by themiron.ru on 3 Oct 2013 at 7:03

GoogleCodeExporter commented 9 years ago
I don't play with resolv.conf now in my scripts using new IPv6 functionality of 
this fw instead.
I'll send my configs to your email a bit later. 
BTW, it is a bit inconvenient to not having ftp or sftp access to the router 
ready-made (i.e. without installing additional packages). Is fw so space short 
(at least for ftpd), especially for big RT-N16 memory?

Original comment by ache...@gmail.com on 3 Oct 2013 at 9:42

GoogleCodeExporter commented 9 years ago
It seems I found the reason, no config sending is needed. "wan0_ipv6_dns" value 
have extra unneeded newline after NS, i.e.:
"wan0_ipv6_dns=<IPv6 tunnel NS1>

"
I set it via web ui, WAN DNSv6 Setting, DNSv6 Server1. DNSv6 Server2 and DNSv6 
Server3 are empty, just in case.

Original comment by ache...@gmail.com on 3 Oct 2013 at 10:05

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
still waiting config or nvram dump.
ftp access is avavilable. sftp need sftp-server, which is absent.

Original comment by themiron.ru on 4 Oct 2013 at 6:31

GoogleCodeExporter commented 9 years ago
newlines are fixed with r5293
as for number of nameservers, in fact, are you really need more than 3 NS?

Original comment by themiron.ru on 4 Oct 2013 at 9:28

GoogleCodeExporter commented 9 years ago
Thanx.
When provider NSes becomes too slow I usually add 2 google ones combined with 
"all-servers" dnsmasq option.

Original comment by ache...@gmail.com on 4 Oct 2013 at 10:12

GoogleCodeExporter commented 9 years ago
well, doing the same for clients only with "server=..." in 
/usr/local/etc/dnsmasq.conf

Original comment by themiron.ru on 5 Oct 2013 at 6:00