Unable to query the nameserver
Noel Butler
noel.butler at ausics.net
Tue Oct 5 00:47:41 UTC 2010
apart from my dig for you not giving real information......
On Mon, 2010-10-04 at 23:08 +0200, Dotan Cohen wrote:
>
> // On 1.1.1.1
> [root at 1.1.1.1]# cat /etc/named.conf
> options {
> directory "/etc";
>
Why are you specifying /etc here?
I suggest you use /var/named
> pid-file "/var/run/named/named.pid";
> listen-on {
> any;
> };
> };
>
> zone "." {
> type hint;
> file "/etc/db.cache";
remove /etc/
> };
>
> zone "example.de" {
> type master;
> file "/var/named/example.de.hosts";
>
only need the file name (so long as you correct the options statement
> notify yes;
> allow-query { any; };
> };
who are you notifying?
where is..
allow-transfer { remotedns; };
> zone "example.eu" {
> type master;
> file "/var/named/example.eu.hosts";
> };
correct as above for who to transfer to
> [root at 1.1.1.1]# cat /var/named/example.de.hosts
> $ORIGIN example.de.
> $TTL 86400
> example.de. IN SOA example.de. foo.example.de. (
replace example.de. with @
> 2010100401; Serial - increment me
> 10800
> 3600
> 604800
> 38400 )
> IN NS ns1.example.de.
> IN NS ns2.example.de.
no MX record?
> IN A 1.1.1.1
> www IN A 1.1.1.1
> ns1 IN A 1.1.1.1
> ns2 IN A 1.1.2.2
>
>
>
>
> // On 1.1.2.2
> [root at 1.1.2.2]# cat /etc/named.conf
fix up as above
> options {
> directory "/etc";
> pid-file "/var/run/named/named.pid";
> listen-on {
> any;
> };
> };
>
> zone "." {
> type hint;
> file "/etc/db.cache";
> };
>
> zone "example.de" {
> type slave;
> masters { 1.1.1.1; };
> allow-update { 1.1.1.1; };
^^^^^ not needed
> file "/var/named/example.de.hosts";
> notify yes;
^^^^ remove
> allow-query { any; };
ya got one right :)
> allow-notify { 1.1.2.2; };
> };
remove
> [root at 1.1.2.2]# cat /var/named/example.de.hosts
irrelevant since it gets this from master
>
>
>
> Of course, when I make a change to a hosts file I increment the serial
> number and restart bind. I also restart bind after making a change to
'rndc reload' is all u need to do
> named.conf. What am I doing wrong? Thanks!
>
once you tell us your real domains and NS's, maybe, just maybe we can
help more
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20101005/e7acc2c1/attachment.html>
More information about the bind-users
mailing list