[Dnsmasq-discuss] setting up dynamic DNS?

Adam Hardy adam.ant at cyberspaceroad.com
Mon Sep 10 20:44:39 BST 2007


Thanks again for the help. Config files appended at bottom for reference.

Jan 'RedBully' Seiffert on 10/09/07 16:45, wrote:
> Adam Hardy wrote:
>> Thanks for the responses, I've just tried again, but didn't succeed. I
>> get 'name or service unknown' response from ssh, ping etc.
>>
> Hmmm, on which machine? Isengard?

on all machines, except when doing "ping isengard"

>> I put in the "send host-name" option, as well as explicitly defining the
>> defaults for dhcp-option 1, 3 and 6.
>>
> Ok.
> And on your clients? Do they get an IP over dhcp?

Yes

> Is their DNS-Server set to isengard? (view in /etc/resolv.conf)
adam at gondor:~$ cat /etc/hosts
127.0.0.1       localhost gondor.localdomain.net gondor

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
adam at gondor:~$ cat /etc/resolv.conf
search localdomain.net
nameserver 192.168.0.2
adam at gondor:~$ cat /etc/dhcp3/dhclient.conf |grep -v ^#

send host-name "gondor.localdomain.net";
send dhcp-lease-time 3600;
supersede domain-name "localdomain.net";
request subnet-mask, broadcast-address, time-offset, routers,
         domain-name, domain-name-servers, host-name,
         netbios-name-servers, netbios-scope, interface-mtu;
send fqdn.fqdn "gondor.localdomain.net";
send fqdn.encoded on;
send fqdn.server-update off;

adam at gondor:~$ cat /etc/resolv.conf
search localdomain.net
nameserver 192.168.0.2

> Is their default gateway set to isengard? (route -n should say so)

Yes

> What's printed to isengards system logs when a client gets an IP?

isengard dnsmasq[26803]: reading /etc/resolv.conf
isengard dnsmasq[26803]: using nameserver 194.74.65.69#53
isengard dnsmasq[26803]: ignoring nameserver 127.0.0.1 - local interface
isengard dnsmasq[26803]: Ignoring DHCP host name arnor.localdomain because it 
has an illegal domain part
isengard dnsmasq[26803]: DHCPDISCOVER(eth1) 192.168.0.24 00:a0:cc:52:5d:fe
isengard dnsmasq[26803]: DHCPOFFER(eth1) 192.168.0.24 00:a0:cc:52:5d:fe
isengard dnsmasq[26803]: Ignoring DHCP host name arnor.localdomain because it 
has an illegal domain part
isengard dnsmasq[26803]: DHCPREQUEST(eth1) 192.168.0.24 00:a0:cc:52:5d:fe
isengard dnsmasq[26803]: DHCPACK(eth1) 192.168.0.24 00:a0:cc:52:5d:fe
isengard dnsmasq[26803]: query[SOA] arnor.localdomain.net from 192.168.0.24
isengard dnsmasq[26803]: config arnor.localdomain.net is <NODATA>
isengard dnsmasq[26803]: query[SOA] localdomain.net from 192.168.0.24
isengard dnsmasq[26803]: config localdomain.net is <NODATA>
isengard dnsmasq[26803]: query[SOA] net from 192.168.0.24
isengard dnsmasq[26803]: config net is <NODATA>
isengard dnsmasq[26803]: query[SOA] . from 192.168.0.24
isengard dnsmasq[26803]: config . is <NODATA>


It also did this when I tried "ping arnor" from gondor:

isengard dnsmasq[26803]: query[A] arnor.localdomain.net from 192.168.0.234
isengard dnsmasq[26803]: forwarded arnor.localdomain.net to 194.74.65.69
isengard dnsmasq[26803]: forwarded arnor.localdomain.net to 194.74.65.69
isengard dnsmasq[26803]: query[A] arnor.localdomain.net from 192.168.0.234
isengard dnsmasq[26803]: forwarded arnor.localdomain.net to 194.74.65.69


/var/lib/misc/dnsmasq.leases has no hostnames in it.

Hmmm. Doesn't look good does it? :(  What do you think could be wrong with it? 
There seems to be something wrong with the hostname I'm sending it ('illegal 
domain name part') and it also seems to be forwarding the query for 
arnor.localdomain.net up to the internet nameserver.


Adam

PS here are the files for reference if they help:

isengard:~# cat /etc/hosts
127.0.0.1       localhost
192.168.0.2     isengard.localdomain.net isengard
# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

isengard:~# cat /etc/resolv.conf
search localdomain.net
nameserver 127.0.0.1
nameserver 194.74.65.69

isengard:~# cat /etc/dnsmasq.conf |grep -v ^# |grep -e ^[[:alnum:]]
domain-needed
bogus-priv
filterwin2k
domain=localdomain.net
dhcp-range=192.168.0.3,192.168.0.254,12h
dhcp-option=1,255.255.255.0
dhcp-option=3,192.168.0.2
dhcp-option=6,192.168.0.2
log-queries



adam at gondor:~$ cat /etc/hosts
127.0.0.1       localhost gondor.localdomain.net gondor
# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

adam at gondor:~$ cat /etc/resolv.conf
search localdomain.net
nameserver 192.168.0.2

adam at gondor:~$ cat /etc/dhcp3/dhclient.conf |grep -v ^#
send host-name "gondor.localdomain.net";
send dhcp-lease-time 3600;
supersede domain-name "localdomain.net";
request subnet-mask, broadcast-address, time-offset, routers,
         domain-name, domain-name-servers, host-name,
         netbios-name-servers, netbios-scope, interface-mtu;
send fqdn.fqdn "gondor.localdomain.net";
send fqdn.encoded on;
send fqdn.server-update off;



More information about the Dnsmasq-discuss mailing list