[Dnsmasq-discuss] dnsmasq appending .?
Travis
moparisthebest at hotmail.com
Tue Nov 17 18:15:43 GMT 2009
Hello,
I'm having just one problem with dnsmasq. I specify addresses like
this, for example, 'address=/mediacenter/192.168.1.20', but a lookup
for 'mediacenter' fails, where a lookup for 'mediacenter.' succeeds.
I am running ubuntu server hardy, with the dnsmasq from the repos
installed:
$ dnsmasq -v
Dnsmasq version 2.41 Copyright (C) 2000-2008 Simon Kelley
Compile time options IPv6 GNU-getopt no-ISC-leasefile DBus I18N TFTP
Here are the contents of /etc/dnsmasq.conf:
domain-needed
bogus-priv
no-resolv
no-poll
server=208.67.222.222
server=208.67.220.220
address=/mytorrentflux1/192.168.1.3
interface=eth1
bind-interfaces
no-hosts
bogus-nxdomain=208.69.36.132
And a few outputs from my other computer using this server as a
caching DNS server:
mopar at killer-linux:~$ dig mediacenter
; <<>> DiG 9.5.1-P2 <<>> mediacenter
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64254
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;mediacenter. IN A
;; ANSWER SECTION:
mediacenter. 0 IN A 192.168.1.20
;; Query time: 11 msec
;; SERVER: 192.168.1.3#53(192.168.1.3)
;; WHEN: Tue Nov 17 13:06:25 2009
;; MSG SIZE rcvd: 45
mopar at killer-linux:~$ nslookup mediacenter
Server: 192.168.1.3
Address: 192.168.1.3#53
Name: mediacenter.travis.com
Address: 192.168.1.1
mopar at killer-linux:~$ nslookup mediacenter.
Server: 192.168.1.3
Address: 192.168.1.3#53
Name: mediacenter
Address: 192.168.1.20
mopar at killer-linux:~$ host mediacenter
mediacenter.travis.com has address 192.168.1.1
mopar at killer-linux:~$ host mediacenter.
mediacenter has address 192.168.1.20
As you can see, dig appears to append a . to the request
automatically, but nothing else does. Is there a way I can get
dnsmasq to return the specified address if I don't append a . to the
request?
Thanks very much,
Travis
More information about the Dnsmasq-discuss
mailing list