View previous topic :: View next topic |
Author |
Message |
vputz Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/100698500146b7b4be507b8.jpg)
Joined: 16 Mar 2005 Posts: 310 Location: Oxford, England
|
Posted: Tue Feb 14, 2006 2:56 am Post subject: dnsmasq--need fully qualified local domain for lookup--odd? |
|
|
Okay, I'm not sure on this--another problem caused by my WRT54g running linux talking to my gentoo server!
In this case, I was using udhcp on the WRT54g, and my domain name was "wingedyak.com" for fun. I didn't need to fully qualify lookups, ie "ping phineas" from my server would get me the right address.
Now that I'm using dnsmasq on the WRT54g, I need to fully qualify the domain name ("ping phineas" gets me a lookup error, but "ping phineas.wingedyak.com" works like a champ).
How can I either:
(gentoo question) have my gentoo server automatically add wingedyak.com to unqualified lookups, or better
(dnsmasq question) have dnsmasq assume unqualified lookups are in the wingedyak.com domain?
Thanks; been bamboozled about this. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nlindblad Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1379696454438f48388cb5f.png)
Joined: 30 Jun 2005 Posts: 476 Location: Lund, Sweden
|
Posted: Tue Feb 14, 2006 11:27 am Post subject: |
|
|
IIRC, dnsmasq reads the localhost /etc/hosts and answers queries not found there by trying to resolve them against a DNS declared in /etc/resolv.conf.
Adding both phineas and phineas.wingedyak.com to /etc/hosts would assure the resolv would be succesfull no matter which one you choose to use. _________________ Please provide detailed tracebacks and your emerge --info when posting compile errors.
Add [SOLVED] to the thread's topic if you feel that your question has been anwered or your problem is solved. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
UberLord Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/16007251014200867ea775c.gif)
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
think4urs11 Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/8534934054bad29b51e5fa.jpg)
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Tue Feb 14, 2006 6:55 pm Post subject: |
|
|
UberLord wrote: | Checkout the expand-hosts dnsmasq option. |
plus set the domain option in dnsmasq.conf to wingedyak.com _________________ Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
vputz Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/100698500146b7b4be507b8.jpg)
Joined: 16 Mar 2005 Posts: 310 Location: Oxford, England
|
Posted: Wed Feb 15, 2006 1:30 am Post subject: |
|
|
UberLord wrote: | Checkout the expand-hosts dnsmasq option. |
Great! Exactly what I was looking for. But for some reason it's not working when I add that to the router's dnsmasq.conf file--my PXE options didn't do anything either. But that's not a Gentoo problem; I'll try to hash it out with the DD-WRT people. Thanks for the pointer. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|