Resolving external cname's

View: New views
6 Messages — Rating Filter:   Alert me  

Resolving external cname's

by Alexandre NEY :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hello everyone !

 

We have been trying to use power dns as our main DNS but we are having a few problems with CNAMES. It seems we can’t resolve the external ones no matter what we try. It seems a little weird to me that such a famous DNS won’t do such a simple thing so i can only imagine this is a configuration problem on our side :

 

www.example.com A 127.0.0.1
www2.example.com CNAME www.example.com
www3.example.com CNAME www.somwhere-else.com

www ---> works
www2 --> works
www3 --> host not found

 

We are using the resolver as you can see in our config file, here it is :

 

pdns.conf :

 

# Autogenerated configuration file template

###############################

# allow-axfr-ips    If enabled, restrict zonetransfers to originate from these

#                   IP addresses

#

allow-axfr-ips=192.168.15.2

 

#################################

# allow-recursion       List of netmasks that are allowed to recurse

#

allow-recursion=0.0.0.0/0

#allow-recursion=127.0.0.1, 192.168.15.0/24

#################################

# allow-recursion-override   Local data even about hosts that don't exist will

#                            override the internet. (on/off)

#

allow-recursion-override=on

 

#################################

# cache-ttl     Seconds to store packets in the PacketCache

#

# cache-ttl=20

 

#################################

# chroot        If set, chroot to this directory for more security

#

# chroot=/var/spool/powerdns

 

#################################

# config-dir    Location of configuration directory (pdns.conf)

#

config-dir=/etc/powerdns

 

#################################

# config-name   Name of this virtual configuration - will rename the binary image

#

# config-name=

 

#################################

# control-console       Debugging switch - don't use

#

# control-console=no

 

#################################

# daemon        Operate as a daemon

#

daemon=yes

 

#################################

# default-soa-name      name to insert in the SOA record if none set in the backend

#

# default-soa-name=a.misconfigured.powerdns.server

 

#################################

# disable-axfr  Disable zonetransfers but do allow TCP queries

#

disable-axfr=no

 

#################################

# disable-tcp   Do not listen to TCP queries

#

# disable-tcp=no

 

#################################

# distributor-threads   Default number of Distributor (backend) threads to start

#

# distributor-threads=3

 

#################################

# fancy-records Process URL and MBOXFW records

#

# fancy-records=no

 

#################################

# guardian      Run within a guardian process

#

guardian=yes

 

#################################

# launch        Which backends to launch and order to query them in

#

# launch=

launch=gmysql

#################################

# lazy-recursion        Only recurse if question cannot be answered locally

#

lazy-recursion=no

 

#################################

# load-modules  Load this module - supply absolute or relative path

#

# load-modules=

 

#################################

# local-address Local IP address to which we bind

#

local-address=192.168.15.3

 

#################################

# local-ipv6    Local IP address to which we bind

#

# local-ipv6=

 

#################################

# local-port    The port on which we listen

#

local-port=53

 

#################################

# log-dns-details       If PDNS should log failed update requests

#

# log-dns-details=

 

#################################

# log-failed-updates    If PDNS should log failed update requests

#

# log-failed-updates=

#################################

# logfile       Logfile to use

#

# logfile=/var/log/pdns.log

#################################

# logging-facility      Log under a specific facility

 

 

We have tried using our resolver (pdns-resolver) as well as our ISP’s DNS and we experience the same thing : a NXDOMAIN answer.

 

Can anyone help us out here please ?

 

Thanks !

 

Alex NEY

 



_______________________________________________
Pdns-users mailing list
Pdns-users@...
http://mailman.powerdns.com/mailman/listinfo/pdns-users

smime.p7s (4K) Download Attachment

Re: Resolving external cname's

by Simon Whittaker-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Alex,

> > We have been trying to use power dns as our main DNS but we
> are having a few problems with CNAMES. It seems we can't
> resolve the external ones no matter what we try. It seems a
> little weird to me that such a famous DNS won't do such a
> simple thing so i can only imagine this is a configuration
> problem on our side :
>
>
>
> www.example.com A 127.0.0.1
> www2.example.com CNAME www.example.com
> www3.example.com CNAME www.somwhere-else.com
>
> www ---> works
> www2 --> works
> www3 --> host not found

Is www.somewhere-else.com a CNAME as well? We experienced an issue with a CNAME pointing to a CNAME not functioning - I am not sure if this is by design and due to rfc's but took us a short while to figure out and may assist you as well.


With best wishes

Simon


Please think of the environment before printing this message and any attachments.
If you are not the intended recipient, or person responsible for delivering it to the intended recipient, you are not authorised to and must not disclose, copy, distribute or retain this message or any part of it. The opinions/views/comments on this e-mail do not necessarily reflect any views or policies of BizNet. The recipient should check this email and any attachments for the presence of viruses. BizNet accepts no liability for any damage caused by any virus transmitted by this email. BizNet Solutions 2009

BizNet Solutions Ltd. is a Company registered in Northern Ireland, Company Reg: NI 39404

Head Office 133-137 Lisburn Road, Belfast, Northern Ireland, BT9 7AG
_______________________________________________
Pdns-users mailing list
Pdns-users@...
http://mailman.powerdns.com/mailman/listinfo/pdns-users

Re: Resolving external cname's

by Alexandre NEY :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Simon,

It was actually pointing towards CNAME (we used www.google.com for our
tests) but even with a A field we have the same problem.

So we have something like this :

www3.example.com CNAME something-else.com
something-else.com A xxx.xxx.xxx.xxx

Thanks !

-----Message d'origine-----
De : pdns-users-bounces@...
[mailto:pdns-users-bounces@...] De la part de Simon
Whittaker
Envoyé : mercredi 1 juillet 2009 17:29
À : pdns-users@...
Objet : Re: [Pdns-users] Resolving external cname's

Alex,

> > We have been trying to use power dns as our main DNS but we
> are having a few problems with CNAMES. It seems we can't
> resolve the external ones no matter what we try. It seems a
> little weird to me that such a famous DNS won't do such a
> simple thing so i can only imagine this is a configuration
> problem on our side :
>
>
>
> www.example.com A 127.0.0.1
> www2.example.com CNAME www.example.com
> www3.example.com CNAME www.somwhere-else.com
>
> www ---> works
> www2 --> works
> www3 --> host not found
Is www.somewhere-else.com a CNAME as well? We experienced an issue with a
CNAME pointing to a CNAME not functioning - I am not sure if this is by
design and due to rfc's but took us a short while to figure out and may
assist you as well.


With best wishes

Simon


Please think of the environment before printing this message and any
attachments.
If you are not the intended recipient, or person responsible for delivering
it to the intended recipient, you are not authorised to and must not
disclose, copy, distribute or retain this message or any part of it. The
opinions/views/comments on this e-mail do not necessarily reflect any views
or policies of BizNet. The recipient should check this email and any
attachments for the presence of viruses. BizNet accepts no liability for any
damage caused by any virus transmitted by this email. BizNet Solutions 2009

BizNet Solutions Ltd. is a Company registered in Northern Ireland, Company
Reg: NI 39404

Head Office 133-137 Lisburn Road, Belfast, Northern Ireland, BT9 7AG
_______________________________________________
Pdns-users mailing list
Pdns-users@...
http://mailman.powerdns.com/mailman/listinfo/pdns-users


_______________________________________________
Pdns-users mailing list
Pdns-users@...
http://mailman.powerdns.com/mailman/listinfo/pdns-users

smime.p7s (4K) Download Attachment

Re: Resolving external cname's

by Alexandre NEY :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello pdns users :)

I'm sorry to redig this problem but doesn't anyone resolve external CNAME's
here ?

http://osdir.com/ml/network.dns.powerdns.user/2007-08/msg00035.html

seems to have the same problem but I did configure my recursor and when
querying directly the CNAME i get an answer.

I have just tried with Microsoft DNS and BIND and I don't experience this
behavior, only with PDNS.

I'd really like to use pdns instead of bloatted bind but not being able to
resolve external cname's is a real show stopper for us.

Any advice anyone ?

Thanks !

Alex

-----Message d'origine-----
De : Alexandre NEY
Envoyé : mercredi 1 juillet 2009 17:45
À : pdns-users@...
Objet : RE: Resolving external cname's

Hello Simon,

It was actually pointing towards CNAME (we used www.google.com for our
tests) but even with a A field we have the same problem.

So we have something like this :

www3.example.com CNAME something-else.com
something-else.com A xxx.xxx.xxx.xxx

Thanks !

-----Message d'origine-----
De : pdns-users-bounces@...
[mailto:pdns-users-bounces@...] De la part de Simon
Whittaker
Envoyé : mercredi 1 juillet 2009 17:29
À : pdns-users@...
Objet : Re: [Pdns-users] Resolving external cname's

Alex,

> > We have been trying to use power dns as our main DNS but we
> are having a few problems with CNAMES. It seems we can't
> resolve the external ones no matter what we try. It seems a
> little weird to me that such a famous DNS won't do such a
> simple thing so i can only imagine this is a configuration
> problem on our side :
>
>
>
> www.example.com A 127.0.0.1
> www2.example.com CNAME www.example.com
> www3.example.com CNAME www.somwhere-else.com
>
> www ---> works
> www2 --> works
> www3 --> host not found
Is www.somewhere-else.com a CNAME as well? We experienced an issue with a
CNAME pointing to a CNAME not functioning - I am not sure if this is by
design and due to rfc's but took us a short while to figure out and may
assist you as well.


With best wishes

Simon


Please think of the environment before printing this message and any
attachments.
If you are not the intended recipient, or person responsible for delivering
it to the intended recipient, you are not authorised to and must not
disclose, copy, distribute or retain this message or any part of it. The
opinions/views/comments on this e-mail do not necessarily reflect any views
or policies of BizNet. The recipient should check this email and any
attachments for the presence of viruses. BizNet accepts no liability for any
damage caused by any virus transmitted by this email. BizNet Solutions 2009

BizNet Solutions Ltd. is a Company registered in Northern Ireland, Company
Reg: NI 39404

Head Office 133-137 Lisburn Road, Belfast, Northern Ireland, BT9 7AG
_______________________________________________
Pdns-users mailing list
Pdns-users@...
http://mailman.powerdns.com/mailman/listinfo/pdns-users


_______________________________________________
Pdns-users mailing list
Pdns-users@...
http://mailman.powerdns.com/mailman/listinfo/pdns-users

smime.p7s (4K) Download Attachment

Re: Resolving external cname's

by Sten Spans :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 3 Jul 2009, Alexandre NEY wrote:

> Hello pdns users :)
>
> I'm sorry to redig this problem but doesn't anyone resolve external CNAME's
> here ?

Yes I do, but with one important caveat.
PowerDNS-server will only rerturn further results for cnames if they
point to domains that it is authoritive for. This makes sense because
resolvers should and will not trust results for which a nameserver is not
qualified. For example:

sten@earth:~$ dig +short @ns0.blinkenlights.nl A irc1.fifo.nl
bastard.snore.nl.
213.136.8.164
sten@earth:~$ dig +short @ns0.blinkenlights.nl A irc2.fifo.nl
irc.insecure.nl.

Because ns0.blinkenlights.nl is not authoritive for insecure.nl
it will not return an A record for irc.insecure.nl.

> I'd really like to use pdns instead of bloatted bind but not being able to
> resolve external cname's is a real show stopper for us.

In what way ?

--
Sten Spans

"There is a crack in everything, that's how the light gets in."
Leonard Cohen - Anthem
_______________________________________________
Pdns-users mailing list
Pdns-users@...
http://mailman.powerdns.com/mailman/listinfo/pdns-users

Parent Message unknown Re: Resolving external cname's

by Alexandre NEY :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hello Steve and thank you for your answer.

 

Unfortunately, this change in the config does not solve my problem, i still get a NXDOMAIN answer when i query a A entry which points towards an external CNAME.

 

Alex

 

De : Steve M [mailto:shmick@...]
Envoyé : samedi 4 juillet 2009 04:25
À : Alexandre NEY
Objet : Re: [Pdns-users] Resolving external cname's

 

Add "root-referral=lean" to your pdns config file.

On Fri, Jul 3, 2009 at 12:16 PM, Alexandre NEY <aney@...> wrote:

Hello pdns users :)

I'm sorry to redig this problem but doesn't anyone resolve external CNAME's
here ?

http://osdir.com/ml/network.dns.powerdns.user/2007-08/msg00035.html

seems to have the same problem but I did configure my recursor and when
querying directly the CNAME i get an answer.

I have just tried with Microsoft DNS and BIND and I don't experience this
behavior, only with PDNS.

I'd really like to use pdns instead of bloatted bind but not being able to
resolve external cname's is a real show stopper for us.

Any advice anyone ?

Thanks !

Alex

-----Message d'origine-----
De : Alexandre NEY
Envoyé : mercredi 1 juillet 2009 17:45

Objet : RE: Resolving external cname's


Hello Simon,

It was actually pointing towards CNAME (we used www.google.com for our
tests) but even with a A field we have the same problem.

So we have something like this :

www3.example.com CNAME something-else.com
something-else.com A xxx.xxx.xxx.xxx

Thanks !

-----Message d'origine-----
De : pdns-users-bounces@...
[mailto:pdns-users-bounces@...] De la part de Simon
Whittaker
Envoyé : mercredi 1 juillet 2009 17:29
À : pdns-users@...
Objet : Re: [Pdns-users] Resolving external cname's

Alex,

> > We have been trying to use power dns as our main DNS but we
> are having a few problems with CNAMES. It seems we can't
> resolve the external ones no matter what we try. It seems a
> little weird to me that such a famous DNS won't do such a
> simple thing so i can only imagine this is a configuration
> problem on our side :
>
>
>
> www.example.com A 127.0.0.1
> www2.example.com CNAME www.example.com
> www3.example.com CNAME www.somwhere-else.com
>
> www ---> works
> www2 --> works
> www3 --> host not found

Is www.somewhere-else.com a CNAME as well? We experienced an issue with a
CNAME pointing to a CNAME not functioning - I am not sure if this is by
design and due to rfc's but took us a short while to figure out and may
assist you as well.


With best wishes

Simon


Please think of the environment before printing this message and any
attachments.
If you are not the intended recipient, or person responsible for delivering
it to the intended recipient, you are not authorised to and must not
disclose, copy, distribute or retain this message or any part of it. The
opinions/views/comments on this e-mail do not necessarily reflect any views
or policies of BizNet. The recipient should check this email and any
attachments for the presence of viruses. BizNet accepts no liability for any
damage caused by any virus transmitted by this email. BizNet Solutions 2009

BizNet Solutions Ltd. is a Company registered in Northern Ireland, Company
Reg: NI 39404

Head Office 133-137 Lisburn Road, Belfast, Northern Ireland, BT9 7AG
_______________________________________________
Pdns-users mailing list
Pdns-users@...
http://mailman.powerdns.com/mailman/listinfo/pdns-users


_______________________________________________
Pdns-users mailing list
Pdns-users@...
http://mailman.powerdns.com/mailman/listinfo/pdns-users

 



_______________________________________________
Pdns-users mailing list
Pdns-users@...
http://mailman.powerdns.com/mailman/listinfo/pdns-users

smime.p7s (4K) Download Attachment