[Dnsmasq-discuss] ip for domain

Jima jima at beer.tclug.org
Wed Nov 15 14:14:41 GMT 2006


On Wed, 15 Nov 2006, Kazimierz Pogoda wrote:
> Maybe I'm missing something, but this way:
>
> # host somename.foo-domain
>
> returns 192.168.0.42
>
> But I want:
>
> # host foo-domain
>
> to return 192.168.0.42

  Yeah, I realize.  I have that working on my install here, but maybe it's 
dependent on one of my other configuration options:

read-ethers
domain-needed
local=/my-domain/
interface=eth0
interface=lo
bind-interfaces
expand-hosts
domain=my-domain
dhcp-range=10.0.0.20,10.0.0.180,12h
dhcp-authoritative
dhcp-boot=/pxelinux.0,server,10.0.0.2
server=/other-domain/192.168.x.x

  I'm thinking it might be some combination of these:

domain-needed
local=/my-domain/
expand-hosts
domain=my-domain

  Then I've got a line in /etc/hosts with:

10.0.0.2	server my-domain

$ host my-domain
my-domain has address 10.0.0.2

  Let me know whether this helps or not.

      Jima



More information about the Dnsmasq-discuss mailing list