Re: [Dnsmasq-discuss] Serving out NetBIOS reverse results?
Hi Jarno. De : Jarno Elonen jarno.elo...@housemarque.fi Hi, [...] 5) Reverse queries against dnsmasq work for hosts that are manually entered into /etc/hosts ...but, obviously... 6) nslookup 192.168.1.68 on the server gives ** server can't find 68.1.168.192.in-addr.arpa.: NXDOMAIN I have dnsmasq 2.57 and reverse DNS resolution works on the server against hosts stored in /etc/hosts. So on my side I can confirm dnsmasq already does what you expect. How does your dnsmasq.conf look like? Vince C. -Jarno ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] Serving out NetBIOS reverse results?
Hi Vincent, I have dnsmasq 2.57 and reverse DNS resolution works on the server against hosts stored in /etc/hosts. Manual entries in /etc/hosts work for me too, but I was interested in trying if dnsmasq could also be made to serve reverse queries for the dynamic NetBIOS names. That is, names that (DHCP-configured) Windows hosts advertise in their SMB workgroup. The NetBIOS reverse lookup can be done manually by nmblookup -A ip address, so I was wondering if there's either some internal support for NetBIOS/Samba/Wins or perhaps a mechanism to plug in new dynamic query methods (e.g. shell one-liners) to implement this with dnsmasq. One way to implement this might be to write a cron script that parses system log for DHCP acks, performs an nmblookup against them and stuffs them into /etc/hosts but that's too kludgish for my taste. This is basically just for administration, diagnostics and completeness' sake anyway -- I doubt any program actually *requires* reverse lookups for NetBIOS. -Jarno ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] Non-standard port and resolv.conf file
Is there anyway to have dnsmasq use the same server address parsing when using the resolv.conf file as it does when using the 'server' command line/config option? My issue is that I want to use the resolv.conf file so I don't have to restart dnsmasq, but the nameserver I am using also uses a non-standard port, i.e. not 53. On the command line I can do something like '111.222.333.444#5353', but if I put this type of format in the resolv.conf file dnsmasq does not like it. Thx -- Scott Bonar | Lead Software Engineer | 208.870.7851 ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] Serving out NetBIOS reverse results?
De : Jarno Elonen jarno.elo...@housemarque.fi Envoyé le : Mercredi 28 août 2013 9h47 Hi Vincent, ... Manual entries in /etc/hosts work for me too, but I was interested in trying if dnsmasq could also be made to serve reverse queries for the dynamic NetBIOS names. That is, names that (DHCP-configured) Windows hosts advertise in their SMB workgroup. If my memory serves me right Windows does not need WINS as NetBIOS over TCPIP does the same. Every Windows machine can be a master browser and an election is triggered on the network to decide which workstation will be the master browser. So you don't need to change anything to dnsmasq in fact as it should already be working -- somebody correct me if I'm wrong. Also note that, as a personal experience return, we ran several times into troubles at work with WINS running alongside DNS. For instance when we were using vnc viewer to remote control a computer using its FQDN name we ended up on the wrong machine because WINS and DNS weren't in sync. And if I'm still right Windows first makes a NetBIOS query before falling back onto DNS. In fact DNS should be preferred over WINS. Any time. WINS is just a trouble maker. Vince C. -Jarno ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] Non-standard port and resolv.conf file
Hi, I don’t think this should be fixed at all, because it violates the „official“ format of resolv.conf, see man page. A resolv.conf file modifies like this could not be read by libc’s resolver functions. Uwe - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de/ http://www.thetaphi.de eMail: u...@thetaphi.de From: dnsmasq-discuss-boun...@lists.thekelleys.org.uk [mailto:dnsmasq-discuss-boun...@lists.thekelleys.org.uk] On Behalf Of Rance Hall Sent: Wednesday, August 28, 2013 11:47 PM To: dnsmasq-discuss@lists.thekelleys.org.uk Subject: Re: [Dnsmasq-discuss] Non-standard port and resolv.conf file The standard fix for this is to create multiple resolv.conf files. I use this: /etc/resolv.conf.dnsmasq /etc/resolv.conf.local I also use a script to manage these in the event that my external ip is DHCP. If /etc/resolv.conf changes copy it to /etc/resolv.conf.dnsmasq then copy /etc/resolv.conf.local to /etc/resolv.conf Configure dnsmasq to use the alternate /etc/resolv.conf.dnsmasq file instead of standard. This serves two purposes. 1) it makes the server use itself for dns. 2) it keeps nonstandard stuff like what you discuss on the outside of the network and the internal network functions in a standard way. Easier troubleshooting. If there is a limitation in dnsmasq proper about using alternate port Simon will fix it, he's good like that. On Wed, Aug 28, 2013 at 12:46 PM, Scott Bonar sbo...@cradlepoint.com wrote: Is there anyway to have dnsmasq use the same server address parsing when using the resolv.conf file as it does when using the 'server' command line/config option? My issue is that I want to use the resolv.conf file so I don't have to restart dnsmasq, but the nameserver I am using also uses a non-standard port, i.e. not 53. On the command line I can do something like '111.222.333.444#5353', but if I put this type of format in the resolv.conf file dnsmasq does not like it. Thx -- Scott Bonar | Lead Software Engineer | 208.870.7851 http://www.cradlepoint.com/about/blog http://www.cradlepoint.com/about/blog ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss http://www.cradlepoint.com/about/blog ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss