[Dnsmasq-discuss] Deferring to external nameserver for certain local domain names

Simon Kelley simon at thekelleys.org.uk
Fri Jan 11 12:03:55 GMT 2008


Brandon Beck wrote:
> Hi Simon,
> 
> I'm trying to implement your suggestion, but I'm having some troubles with
> it.  Here's what I've done/what I know:
> 
> 1)  I've added the line"server=/mail.isomorphism.org/69.60.109.125" to my
> dnsmasq.conf.  The ip address corresponds to my primary name server for my
> domain (ns.dominia.org).

> *bbeck at server:~$ dig mail.isomorphism.org
> *
> ; <<>> DiG 9.4.1-P1 <<>> mail.isomorphism.org
> ;; global options:  printcmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18191
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
> 
> ;; QUESTION SECTION:
> ;mail.isomorphism.org.          IN      A
> 
> ;; ANSWER SECTION:
> mail.isomorphism.org.   41407   IN      CNAME   ghs.GOOGLE.COM.
> ghs.GOOGLE.COM.         464425  IN      CNAME   ghs.l.GOOGLE.COM.
> 
> ;; Query time: 0 msec
> ;; SERVER: 127.0.0.1#53(127.0.0.1)
> ;; WHEN: Thu Jan 10 22:46:21 2008
> ;; MSG SIZE  rcvd: 96
> 

I think the problem is just that you're using the wrong server. I guess
that the primary name server for your domain is configured as just that:
an authoritative nameserver. If instead, you just use the same
nameserver that's in /etc/resolv.conf, probably the recursive nameserver
that's provided by your ISP, then it will just work.

I did the same query as you to 69.60.109.125 and got the same answer. If
I send the query instead to my ISPs nameserver, via dnsmasq, I get the
correct answer

srk at spike:~/dnsmasq-2.41/dnsmasq-2.41$ dig mail.isomorphism.org

; <<>> DiG 9.3.2-P1 <<>> mail.isomorphism.org
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64849
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;mail.isomorphism.org.          IN      A

;; ANSWER SECTION:
mail.isomorphism.org.   42503   IN      CNAME   ghs.google.com.
ghs.google.com.         593393  IN      CNAME   ghs.l.google.com.
ghs.l.google.com.       174     IN      A       72.14.207.121

;; Query time: 16 msec
;; SERVER: 192.168.0.4#53(192.168.0.4)
;; WHEN: Fri Jan 11 11:59:14 2008
;; MSG SIZE  rcvd: 102


HTH


Simon.


I get exc



More information about the Dnsmasq-discuss mailing list