Posted: Tue Nov 09, 2010 0:37 Post subject: DNSMasq problem
Well, first: i am using an "Linksys WRT350N" v1 with "DD-WRT v24-sp2 (10/26/10) std-nokaid-usb - build 15508M NEWD Eko" with an Win7x64 Client and tried setting up DNSMasq according to http://www.dd-wrt.com/wiki/index.php/DNSMasq_as_DHCP_server .
But whenever I ad "domain=*mydomainname*" (without "/* and the name is replaced) to "Additional DNSMasq Options" I won't be able to resolve names. So did something change in the newer builds or am I doing wrong? See below linked screens for settings. Btw. changing DNS Rebind didn't help. And i did restart router and client (inkl. flushdns, dis/reenabling adapter) whenever I changed settings.
Just give an unedited screenshot with the real domain name and tell us what you're trying to accomplish. Don't be paranoid and impatient and most of all... don't turn it into a quest for the ones that may be willing to help you (or wordgame).
dnsmasq has not been updated for a long time and will not be because of some reason I can't recall right now. _________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge
As the first link above to the wiki shows i'm simply trying to set DNSMasq as DHCP Server (i wouldn't need the space, but it's advantage of DNS adaption for DHCP clients sounds nice). And there isn't much I could have tried out - to me it seems it should work but as i said - as soon, as i do add
Code:
domain=FileNW
to "Additional DNSMasq Options":
- I get trash DHCP Releases (168.254.x.x Network without gateway, Subnet/DNS is OK)
- Manual connections of hosts will resolve names but only in LAN (I can ping other manual clients too but they will be resolved with IPv6 -normally its IPv4- and the router is still resolved in IPv4 - ping to WAN-IP works also, just not DNS)
- DHCP Release by provider (so DHCP Client on Router) seems to work correctly (else i couldn't ping an WAN-IP)
- Clients connected by DHCP won't show up anywhere on LAN Tab
- Clients connected manually will show up under "Active Clients" with "hostname.domainname"
- "Without the domain-option" DHCP and WAN works, they show up under Active & DHCP Clients but under DHCP Clients only as "hostname"
Just fill in LAN Domain FileNW and your LAN-domain is set. It wil write 'domain=FileNW' into your dnsmasq.conf.
If you put that into your additional options as well, it's possible the thing goes berserk. I don't know, I rarely experiment with wrong settings.
You are probably confused by the webif which make DHCP and DNSMasq a seperate section. It is DHCP not DHCPd. These settings belong to DNSMasq as well if you make DNSMasq your DHCP-server...
Code:
cat /tmp/dnsmasq.conf
_________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge
Thanks for your answer. Well, it's ok to me if i don't need that line. I checked now with your command and you're right: the line has already been inserted without adding it to DNSMaq Options. And if I do add it it's written twice.
Or it has something to do with the option Used domain. When i set it to WAN (as not written but shown in the screen in the wiki) and add the domain under DNSMasq options it's been added twice for sure - once with my ISP's domain and once with my local domain. But still - i tested it and i do get same results so I am wondering how it could have worked for those who wrote the update (and it has been updated twice - first time on 31 August 2010 - so not that long time ago)
Anyway the best/cleanest solution would be to set Used domain as LAN/WLAN and the domainname under DHCP Server\LAN domain - nothing under DNSMasq Options, nor? And someone would need to update the wiki - i could do it but would need someone to verify my result/may explain how the actual wiki could have worked.
EDIT: Has been added now - still both requests above are relevant!
Posted: Tue Jan 11, 2011 14:13 Post subject: DNSMasq manual read and still having issues.
As I understand it, if everything is set properly with the DNSMasq, a person can resolve their local host names to their IP. In other words, I should be able to ping my host name and the associated IP should resolve. Now in my case, I have my desktop's on a static ip outside of the DHCP scope. They show up in the status field as clients, but host name is blank.
Also, pinging host names comes back with something like fe80:9ab ... rather than an IP.
I have set Used Domain as Lan & Wan.
I have entered a Lan domain name. "Test"
DNSMasq and Local DNS are enable.
Additional DNSMasq Options:
local=/Test/
expand-hosts
address=/Themus/172.20.100.50 - sample
Would someone please tell me what I have set wrong. I've read "DNSMasq as DHCP server" as well as related posts. Seems I am close.
Sincerely excuse my ignorance if I am failing to make the connection. But if they are automatically entered into the DNS {DHCP or Static} how come under the Services tab, Active Clients, my static desktops show Host Name with an * asterisk only.