[Dnsmasq-discuss] Expand-host multiple domains?
Is it possible to expand hosts file entries against multiple domains with Dnsmasq? Or perhaps setup a DNAME-like aliasing of hosts in one domain to another domain? To clarify, if my "/etc/hosts" contained... 1.2.3.4 host1 4.5.6.7 host2 ...and my domains were "old-domain.com" and "new-domain.com", I'd like to somehow configure dnsmasq to handle all these queries: host1 --> 1.2.3.4 host2 --> 4.5.6.7 host1.old-domain.com --> 1.2.3.4 host2.old-domain.com --> 4.5.6.7 host1.new-domain.com --> 1.2.3.4 host2.new-domain.com --> 4.5.6.7 -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] Serving out NetBIOS reverse results?
Hi, I'd like to configure dnsmasq to answer reverse IP queries for Windows workstations, replying with their NetBIOS names (perhaps by querying a Wins server or doing an nmblookup -A). Any ideas on how to achieve this? Current situation: 1) Dnsmasq is serving Windows workstations from a Linux server 2) Samba (v3) works as a Wins server on the same server 3) Manual reverse lookups work: nmblookup -A ip address 4) I can ping NetBIOS names from the server (/etc/nsswitch.conf configured correctly) 5) Reverse queries agains 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 -Jarno ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss