Unable to query the nameserver
Dotan Cohen
dotancohen at gmail.com
Tue Oct 5 19:16:35 UTC 2010
On Tue, Oct 5, 2010 at 02:47, Noel Butler <noel.butler at ausics.net> wrote:
> 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
>
Thanks. I'm not sure where I got that from, this is an Frankenshein's
monster of bits that I've been googling!
> pid-file "/var/run/named/named.pid";
> listen-on {
> any;
> };
> };
>
> zone "." {
> type hint;
> file "/etc/db.cache";
>
> remove /etc/
>
I did not realize that a relative path would work.
> };
>
> zone "example.de" {
> type master;
> file "/var/named/example.de.hosts";
>
>
> only need the file name (so long as you correct the options statement
Makes sense!
>
> notify yes;
> allow-query { any; };
> };
>
>
> who are you notifying?
I added that at some "throwing more lines of code at the file" attempt
to get this working...
> where is..
> allow-transfer { remotedns; };
>
I did not know that I need it.
>
> zone "example.eu" {
> type master;
> file "/var/named/example.eu.hosts";
> };
>
> correct as above for who to transfer to
>
Well, this one works properly so I don't want to touch it!
> [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 @
>
Will do.
> 2010100401; Serial - increment me
> 10800
> 3600
> 604800
> 38400 )
> IN NS ns1.example.de.
> IN NS ns2.example.de.
>
> no MX record?
>
Not yet, I'll tackle that later.
> 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
>
Right.
> 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
>
Thanks.
> file "/var/named/example.de.hosts";
> notify yes;
>
> ^^^^ remove
>
Thanks.
> allow-query { any; };
>
> ya got one right :)
>
Pure luck, I assure you!
> allow-notify { 1.1.2.2; };
> };
>
> remove
>
Right.
> [root at 1.1.2.2]# cat /var/named/example.de.hosts
>
>
> irrelevant since it gets this from master
>
I did think that was the case, thanks.
> 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
>
Nice, thanks.
> 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
>
Server mercury:
178.63.65.136
178.63.65.171
178.63.65.188
Server venus:
88.198.27.251
ns1.sharingcenter.eu - 178.63.65.136
ns2.sharingcenter.eu - 178.63.65.188
ns1.sharingcenter.de - 178.63.65.171
ns2.sharingcenter.de - 88.198.27.251
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
More information about the bind-users
mailing list