Re: bind-users Digest, Vol 2083, Issue 1

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: bind-users Digest, Vol 2083, Issue 1

STEPHEN EYRE
The aim is to make it authoritive as well as hosting my web sites.

Sent from Yahoo Mail on Android


From:"[hidden email]" <[hidden email]>
Date:Sun, 5 Apr, 2015 at 13:00
Subject:bind-users Digest, Vol 2083, Issue 1

Send bind-users mailing list submissions to
    <a ymailto="mailto:bind-users@lists.isc.org" href="javascript:return">bind-users@...

To subscribe or unsubscribe via the World Wide Web, visit
    https://lists.isc.org/mailman/listinfo/bind-users
or, via email, send a message with subject or body 'help' to
    <a ymailto="mailto:bind-users-request@lists.isc.org" href="javascript:return">bind-users-request@...

You can reach the person managing the list at
    <a ymailto="mailto:bind-users-owner@lists.isc.org" href="javascript:return">bind-users-owner@...

When replying, please edit your Subject line so it is more specific
than "Re: Contents of bind-users digest..."


Today's Topics:

  1. Dig, open servers and A records (Stephen Eyre)
  2. Re: Dig, open servers and A records (Steven Carr)


----------------------------------------------------------------------

Message: 1
Date: Sun, 05 Apr 2015 09:32:36 +0100
From: Stephen Eyre <<a ymailto="mailto:sceyre@btinternet.com" href="javascript:return">sceyre@...>
To: <a ymailto="mailto:bind-users@lists.isc.org" href="javascript:return">bind-users@...
Subject: Dig, open servers and A records
Message-ID: <<a ymailto="mailto:5520F324.7050709@btinternet.com" href="javascript:return">5520F324.7050709@...>
Content-Type: text/plain; charset=utf-8; format=flowed

Dear All

The good news is that I have my server running. The not so good news is
that there are a few problems which could be interconnected.

My server is called server1.sportshost.co.uk and its ip address is
84.92.56.54.

Going on to whatsmydns.net I find that sportshost.co.uk returns suitable
entries under the NS and SOA section. There are nothing but red crosses
under A records section - I was expecting my ip address.

Then when I dig a domain name like google.co.uk I get suitable replies
but when I dig an ip address like 8.8.8.8 the request gets the reply
REFUSED.

Further enquiries show that I dont have an open recursive site when the
errors above still apply.

When I change my /etc/bind/named.conf.local file from 'recursion no;' to
'recursion yes;' I get an inverse of the above. I get full replies from
all my dig enquiries but I get an open recursive warning - which I
obviously dont want.

whatsmydns.net replies remain the same.

So todays question is - what do I need to do to keep my server closed,
get proper dig replies and get my A records showing up on whatsmydns.net?

Or is everything working well and its not necessary to have dig
providing proper replies?

Thanks

Stephen Eyre


------------------------------

Message: 2
Date: Sun, 5 Apr 2015 09:57:08 +0100
From: Steven Carr <<a ymailto="mailto:sjcarr@gmail.com" href="javascript:return">sjcarr@...>
Cc: bind-users <<a ymailto="mailto:bind-users@lists.isc.org" href="javascript:return">bind-users@...>
Subject: Re: Dig, open servers and A records
Message-ID:
    <<a ymailto="mailto:CALMep05dMFY0a_YBbTuNk3cQigYbJvSY_43W212sug0WGkPMVQ@mail.gmail.com" href="javascript:return">CALMep05dMFY0a_YBbTuNk3cQigYbJvSY_43W212sug0WGkPMVQ@...>
Content-Type: text/plain; charset=UTF-8

On 5 April 2015 at 09:32, Stephen Eyre <<a ymailto="mailto:sceyre@btinternet.com" href="javascript:return">sceyre@...> wrote:
> My server is called server1.sportshost.co.uk and its ip address is
> 84.92.56.54.
>
> Going on to whatsmydns.net I find that sportshost.co.uk returns suitable
> entries under the NS and SOA section. There are nothing but red crosses
> under A records section - I was expecting my ip address.

Try again, you haven't given things enough time to propagate around
the internet, 24-72 hours is still the usual wait time.

> So todays question is - what do I need to do to keep my server closed, get
> proper dig replies and get my A records showing up on whatsmydns.net?

What is the purpose of the server? are you going to be hosting zones
that need to be accessible from other clients on the Internet
(authoritative) or is it just a DNS server that you can utilize to
handle your queries (recursive)? or are you doing both?

If you need recursion then you'll need an ACL to say which clients are
allowed to perform recursion to prevent it from being an open
recursor.

Steve


------------------------------

_______________________________________________
bind-users mailing list
<a ymailto="mailto:bind-users@lists.isc.org" href="javascript:return">bind-users@...
https://lists.isc.org/mailman/listinfo/bind-users

End of bind-users Digest, Vol 2083, Issue 1
*******************************************

_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: bind-users Digest, Vol 2083, Issue 1

Reindl Harald


Am 05.04.2015 um 17:52 schrieb STEPHEN EYRE:
> The aim is to make it authoritive as well as hosting my web sites

but a authoritive nameserver don't need nor should it do recursion for
foreign zones, it only should respond for the zones he is authoritative
for and so the behavior is correctly, make sure it answers for your
zones and the point your domains to your nameservers (at least TWO) and
you are done

> Message: 1
> Date: Sun, 05 Apr 2015 09:32:36 +0100
> From: Stephen Eyre <[hidden email] <javascript:return>>
> To: [hidden email] <javascript:return>
> Subject: Dig, open servers and A records
> Message-ID: <[hidden email] <javascript:return>>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Dear All
>
> The good news is that I have my server running. The not so good news is
> that there are a few problems which could be interconnected.
>
> My server is called server1.sportshost.co.uk and its ip address is
> 84.92.56.54.
>
> Going on to whatsmydns.net I find that sportshost.co.uk returns suitable
> entries under the NS and SOA section. There are nothing but red crosses
> under A records section - I was expecting my ip address.
>
> Then when I dig a domain name like google.co.uk I get suitable replies
> but when I dig an ip address like 8.8.8.8 the request gets the reply
> REFUSED.
>
> Further enquiries show that I dont have an open recursive site when the
> errors above still apply.
>
> When I change my /etc/bind/named.conf.local file from 'recursion no;' to
> 'recursion yes;' I get an inverse of the above. I get full replies from
> all my dig enquiries but I get an open recursive warning - which I
> obviously dont want.
>
> whatsmydns.net replies remain the same.
>
> So todays question is - what do I need to do to keep my server closed,
> get proper dig replies and get my A records showing up on whatsmydns.net?
>
> Or is everything working well and its not necessary to have dig
> providing proper replies?

_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: bind-users Digest, Vol 2083, Issue 1

Noel Butler
In reply to this post by STEPHEN EYRE

you need an allow-query and ACL, eg:

Assuming for example your LAN ip range is 192.168.0.0/24, then you would use

for simplicity, at top of named.conf:

acl "trust" { localhost; 192.168.0.0/24; };

 

then in...


options {

 

 ....

allow-query { trust; };
allow-query-cache { trust; };

....

};

That should do it, if you need further assistance you'll need to supply a copy of named.conf  - in particular the options , ACL's and at least one of your zones, but if your named.conf isnt 5 miles long, just past the whole thing.

 

On 06/04/2015 01:52, STEPHEN EYRE wrote:

 

The aim is to make it authoritive as well as hosting my web sites.

Sent from Yahoo Mail on Android




When I change my /etc/bind/named.conf.local file from 'recursion no;' to
'recursion yes;' I get an inverse of the above. I get full replies from
all my dig enquiries but I get an open recursive warning - which I
obviously dont want.


_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: bind-users Digest, Vol 2083, Issue 1

Matus UHLAR - fantomas
On 06.04.15 15:19, Noel Butler wrote:
>you need an allow-query and ACL, eg:

No. Don't play with allow-query if it is supposed to be authoritative for
any zones (unless those zones are internal).

If the server is supposed to host any zones visible from the net,
allow-query would make them invisible.

he should set up 'recursion yes;' and put his hosts to 'allow-recursion'
statement, if he needs so. However, the housing provider will apparently
provide recursive DNS service.

>On 06/04/2015 01:52, STEPHEN EYRE wrote:
>
>> The aim is to make it authoritive as well as hosting my web sites.
>>
>> Sent from Yahoo Mail on Android [1]
>> -------------------------
>>
>> When I change my /etc/bind/named.conf.local file from 'recursion no;' to
>> 'recursion yes;' I get an inverse of the above. I get full replies from
>> all my dig enquiries but I get an open recursive warning - which I
>> obviously dont want.

--
Matus UHLAR - fantomas, [hidden email] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"Where do you want to go to die?" [Microsoft]
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: bind-users Digest, Vol 2083, Issue 1

Noel Butler

On 07/04/2015 17:07, Matus UHLAR - fantomas wrote:

On 06.04.15 15:19, Noel Butler wrote:
you need an allow-⁠query and ACL, eg:

No. Don't play with allow-⁠query if it is supposed to be authoritative for
any zones (unless those zones are internal).

If the server is supposed to host any zones visible from the net,
allow-⁠query would make them invisible.
 
 
Which is why I asked him to include "one zone" in his pasting, since you then need the allow query any inside the zone statements, which works perfectly, its also how I've always  done it, and always seen it done, including on the thousands of zones I've maintained that I never wrote.
 
Been doing it that way for as long as I can recall, so over 20 years? dunno, I stopped counting my age at 21, some decades ago :)
 

_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users