Discussion:
[Dnsmasq-discuss] Same hostname in different domains with dhcp static assignments?
Steve Hindle
2016-01-27 02:05:39 UTC
Permalink
Hi!
I seem to have an odd issue with static dhcp reservations on multiple
networks with the same hostname but different domains (eg '
foo.ipmi.example.com' and 'foo.hvm.example.com'). I am setting static
assignments for both interfaces via:
dhcp-host=<mac>,<name>,<ip>,<duration>

Basically seems to break DNS lookup for me - using dig on the short name or
FQDN both return 'no answer'. Doing a dig -x can't even find the reverse
record (I'd think that would get one or the other?). I've tried using FQDN
and shortname in the dhcp-host lines...

When that didn't work - just for testing I tried removing the static
assignment from the 'hvm.example.com' domain, and just leaving the static
in 'ipmi.example.com'.
I see the client getting an IP from dnsmasq (I noticed it uses 'foo' as the
hostname when talking to dnsmasq..) But I have the same behavior on the DNS
side...

Anyway - I was just wondering if this should work? If so, I'll look for
stupid issues in my configs again....


Thanks!
Steve Hindle
2016-01-27 04:14:13 UTC
Permalink
Turns out I needed dhcp-fqdn set... just setting the domain name isn't
enough

Sorry to have bothered ya
Post by Steve Hindle
Hi!
I seem to have an odd issue with static dhcp reservations on multiple
networks with the same hostname but different domains (eg '
foo.ipmi.example.com' and 'foo.hvm.example.com'). I am setting static
dhcp-host=<mac>,<name>,<ip>,<duration>
Basically seems to break DNS lookup for me - using dig on the short name
or FQDN both return 'no answer'. Doing a dig -x can't even find the
reverse record (I'd think that would get one or the other?). I've tried
using FQDN and shortname in the dhcp-host lines...
When that didn't work - just for testing I tried removing the static
assignment from the 'hvm.example.com' domain, and just leaving the static
in 'ipmi.example.com'.
I see the client getting an IP from dnsmasq (I noticed it uses 'foo' as
the hostname when talking to dnsmasq..) But I have the same behavior on the
DNS side...
Anyway - I was just wondering if this should work? If so, I'll look for
stupid issues in my configs again....
Thanks!
Loading...