Modify

Opened 7 years ago

Closed 7 years ago

#8269 closed defect (no_response)

dnsmasq resolver errors, wrong reverse lookup data

Reported by: Ernesto Owned by: acoul
Priority: normal Milestone:
Component: packages Version: Trunk
Keywords: DNSMASQ REVERSE LOOKUP Cc:

Description

I changed the default name from "lan" to a new internal name:

"intern.domain.tld"

a lan host with the name "user1"
then looks like this with nslookup/traceroute:

"user.intern.domain" -> the .tld is missing completly!

Next i make the domain name shorter:

i use: "domain.tld"

that results in:

"user1.domain.dr.arpa" -> so result is crap, too!

so all behind the last "." dot is not added, maybee parser problem or uci error ?

the resolver code for adding the local domain is broken!

Very often when traceroute external destinations the "in-addr.arpa" is showed in traceroutes, but in reality the reverse servers deliver correct data. A cache Problem for reverse is there, too!

This happens from Kernel 2.6.34-2.6.36 on orion

Attachments (0)

Change History (8)

comment:1 Changed 7 years ago by jow

Attach your current /etc/config/dhcp please.

comment:2 Changed 7 years ago by Ernesto

Here:

Trying to resolve the own static names gives the crap results i described.

And sometimes on external traceroute is the same. The original domain-name-part in a traceroute is replaced with in-addr.arpa. at the end.

The nslookup/traceroute i use is from busybox

root@gateway2:/etc/config# cat dhcp

config 'dnsmasq'
        option 'domainneeded' '1'
        option 'boguspriv' '1'
        option 'localise_queries' '1'
        option 'rebind_protection' '1'
        option 'rebind_localhost' '1'
        option 'expandhosts' '1'
        option 'readethers' '1'
        option 'leasefile' '/tmp/dhcp.leases'
        option 'resolvfile' '/tmp/resolv.conf.auto'
        option 'domain' 'intern.domain.tld'
        option 'filterwin2k' '1'
        option 'nonegcache' '1'
        option 'local' '/lan/'

config 'dhcp' 'lan'
        option 'interface' 'lan'
        option 'leasetime' '12h'
        option 'ignore' '0'
        option 'start' '150'
        option 'limit' '200'

config 'dhcp' 'wan'
        option 'interface' 'wan'
        option 'ignore' '1'
        option 'dynamicdhcp' '0'

config 'domain'
        option 'name' 'user1'
        option 'ip' '192.168.2.10'

config 'host'
        option 'name' 'user1'
        option 'mac' '00:0e:0c:69:ce:08'
        option 'ip' '192.168.2.10'

config 'host'
        option 'name' 'gateway1'
        option 'mac' '00:18:39:c7:61:f9'
        option 'ip' '192.168.2.1'

config 'domain'
        option 'name' 'gateway1'
        option 'ip' '192.168.2.1'

config 'dhcp'
        option 'ignore' '1'
        option 'interface' 'eth0'

root@gateway2:/etc/config#

comment:3 Changed 7 years ago by jow

  • Owner changed from developers to jow
  • Status changed from new to accepted

comment:4 Changed 7 years ago by acoul

you need to properly populate/update your /etc/hosts file.

comment:5 Changed 7 years ago by Ernesto

After talk to Jow, the solution is not using /etc/hosts and ignore the uClibc Problem itself. Solution is to finaly fix the dnsmasq itself ;-)

using hosts file the dnsmasq resolver get an overide and is NOT fixed itself.
That solves not the sporadic external nslookup and traceroute problems with
crapped in-addr.filenames at the end of some external domains!

comment:6 Changed 7 years ago by acoul

can you please test r24029 and report back?

comment:7 Changed 7 years ago by jow

  • Owner changed from jow to acoul
  • Status changed from accepted to assigned

comment:8 Changed 7 years ago by nbd

  • Resolution set to no_response
  • Status changed from assigned to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.