Problem on CNAME configuration.

Cyril Gaudin - Rodacom c.gaudin at rodacom.fr
Mon Oct 5 12:40:07 UTC 2009


Hi,

Sorry in advance for my very bad english!

I have a question (problem?) with my Bind configuration.

My Bind server is on a Debian Lenny.

I'm on a local network with domainname "home.fr"

I wish to create shortcut name to access an internet application.

Example: 

    In my browser, if I write http://myapplication/ , I wish the query go to an
external serveur server1.mydomain.com (without redirection)

Here is a part of my db.home.fr:

[...]

@   IN  NS  gateway.home.fr.

gateway                    IN A 192.168.6.1

myapplication              IN CNAME server1.mydomain.com.

[...]

Here is my options section:

options {
	directory "/var/cache/bind";

	listen-on {
	    192.168.6.1/24;
	    127.0.0.1;
	};
	listen-on-v6 { none; };
	    
	version "Not avaible";

	allow-recursion {
		192.168.6.0/24;
		127.0.0.1;
	};

	forward only;
	forwarders {
		212.27.53.252;
		212.27.54.252;
	};

	auth-nxdomain no;    # conform to RFC1035

};


Here is my zone section:

zone "home.fr" {
    type master;
    file "/etc/bind/db.home.fr";
    allow-query {
        127.0.0.1;
        192.168.6.0/24;
    };
};

/etc/resolv.conf on my computer:
search home.fr
nameserver 192.168.6.1 # routeur's ip where is the Bind server


/etc/resolv.conf on the Bind server
search home.fr
nameserver 127.0.0.1

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

With the commande host, it works properly:
~$ host myapplication
myapplication.home.fr is an alias for server1.mydomain.com.
server1.mydomain.com has address X.X.X.X


But in my browser, if I write http://myapplication/, the dns request failed.

Here is the bind log (192.168.6.28 is my computer):

queries: client 192.168.6.28#36728: query: myapplication.home.fr IN A +
queries: client 127.0.0.1#56888: query: myapplication IN A +
queries: client 127.0.0.1#56888: query: myapplication IN A +



I don't understand why the first request didn't respond? And why there's a second
request without the domain name?

Thanks for your help!


Cyril.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20091005/69c674c2/attachment.bin>


More information about the bind-users mailing list