[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bind-users
Subject:    Re: bind localhost domain not working
From:       Patrik <alabard () gmail ! com>
Date:       2017-02-12 1:35:39
Message-ID: CALv3kGjgpbOwiYB7GjGwHDku-WG6JeR-o+pXKJf0VbaBB-eX_Q () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Ahh you are right!
Added to my resolv.conf as DNS 192.168.78.20 my DNS server and it works!
Thanks so much!
Question if you know last question:
I got isc-dhcp-server, cannot it auto create for the server itself create
the resolve.conf?
The clients do it, but for server i have to manual do it, but i guess its
godda be manual for the dhcp/dns server byself right?

Ciao!



*Patrik*


*GTalk:  *alabard@gmail.com

*Web:*
http://www.patrikx3.tk

*Mobile:*
+36 20 342 8046 <+36+20+342+8046>

On Sun, Feb 12, 2017 at 2:23 AM, Mark Andrews <marka@isc.org> wrote:

>
> You need to configure the stub resolvers to use this nameserver.
>
> One way to do this is to update the DHCP server configuration to
> tell the hosts on the network to use the nameserver instead of the
> nameserver is currently is announcing.  You can often do this by
> logging into the router and updating the setting there.
>
>
> In message <2d0a9b81-83f2-e52f-f193-236778f9b583@gmail.com>, Patrik
> Laszlo writes:
> >
> > hello!
> >
> > I have a small network. i have a real dns internet for my domain.
> > patrikx3.tk via freedns.afraid.org. works.
> > i setup a small local domain so i am not using the internet ip but the
> > bind server. i need the local ips.
> > it works via bind all my clients.
> > the problem only on my server itself when i use:
> > ping patrikx3.tk
> > it should return 192.168.78.20
> > but instead it is using the open internet ip address.
> >
> > how can i force that my ns server localhost on the server itself it use
> > the local network instead internet ip addresses?
> >
> > *setup latest bind9.10 i think, all **default, i just added these:
> >
> > **named.conf.options:
> > *options {
> >          directory "/var/cache/bind";
> >
> >          // If there is a firewall between you and nameservers you want
> >          // to talk to, you may need to fix the firewall to allow
> multiple
> >          // ports to talk.  See http://www.kb.cert.org/vuls/id/800113
> >
> >          // If your ISP provided one or more IP addresses for stable
> >          // nameservers, you probably want to use them as forwarders.
> >          // Uncomment the following block, and insert the addresses
> > replacing
> >          // the all-0's placeholder.
> >
> > //      forwarders {
> > //              0.0.0.0;
> > //      };
> >
> > //        forwarders {
> > //                8.8.8.8;
> > //                8.8.4.4;
> > //        };
> >
> > //==========================================================
> ==============
> >          // If BIND logs error messages about the root key being expired,
> >          // you will need to update your keys.  See
> > https://www.isc.org/bind-keys
> > //==========================================================
> ==============
> >          dnssec-validation auto;
> >
> >          auth-nxdomain no;    # conform to RFC1035
> >          listen-on-v6 { any; };
> >
> > };
> >
> > *
> > **name.conf.local:*
> > zone "patrikx3.tk" {
> >    type master;
> >     file "/etc/bind/zones/db.patrikx3.tk";
> > };
> >
> > *zones/**db.patrikx3.tk:*
> > TTL    604800
> > @       IN      SOA     ns1.patrikx3.tk. .  (
> >                                5         ; Serial
> >                           604800         ; Refresh
> >                            86400         ; Retry
> >                          2419200         ; Expire
> >                           604800   )     ; Negative Cache TTL
> > ;
> >
> > ; Name servers
> > patrikx3.tk.    IN      NS      ns1.patrikx3.tk.
> >
> > ; A records for name servers
> > ns1             IN      A       192.168.78.20
> >
> > ; Other A records
> > @               IN      A       192.168.78.20
> > www             IN      A       192.168.78.20
> > mail            IN      A       192.168.78.20
> > router          IN      A       192.168.78.20
> > server          IN      A       192.168.78.20
> > address-book    IN      A       192.168.78.20
> > fortune-cookie  IN      A       192.168.78.20
> > torrent         IN      A       192.168.78.20
> > test            IN      A       192.168.78.20
> > mysql           IN      A       192.168.78.20
> >
> > laptop          IN      A       192.168.78.4
> > resume.laptop   IN      A       192.168.78.4
> >
> > workstation     IN      A       192.168.78.2
> > resume.workstation IN   A       192.168.78.2
>
> --
> Mark Andrews, ISC
> 1 Seymour St., Dundas Valley, NSW 2117, Australia
> PHONE: +61 2 9871 4742                 INTERNET: marka@isc.org
>

[Attachment #5 (text/html)]

<div dir="ltr"><div class="gmail_default" style="font-family:&quot;trebuchet \
ms&quot;,sans-serif;font-size:small">Ahh you are right!</div><div \
class="gmail_default" style="font-family:&quot;trebuchet \
ms&quot;,sans-serif;font-size:small">Added to my resolv.conf as DNS 192.168.78.20 my \
DNS server and it works!</div><div class="gmail_default" \
style="font-family:&quot;trebuchet ms&quot;,sans-serif;font-size:small">Thanks so \
much!</div><div class="gmail_default" style="font-family:&quot;trebuchet \
ms&quot;,sans-serif;font-size:small">Question if you know last question:</div><div \
class="gmail_default" style="font-family:&quot;trebuchet \
ms&quot;,sans-serif;font-size:small">I got isc-dhcp-server, cannot it auto create for \
the server itself create the resolve.conf?  </div><div class="gmail_default" \
style="font-family:&quot;trebuchet ms&quot;,sans-serif;font-size:small">The clients \
do it, but for server i have to manual do it, but i guess its godda be manual for the \
dhcp/dns server byself right?</div><div class="gmail_default" \
style="font-family:&quot;trebuchet \
ms&quot;,sans-serif;font-size:small"><br></div><div class="gmail_default" \
style="font-family:&quot;trebuchet \
ms&quot;,sans-serif;font-size:small">Ciao!</div></div><div class="gmail_extra"><br \
clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div \
dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div \
dir="ltr"><div dir="ltr"><div dir="ltr"><font size="2"><font face="trebuchet \
ms,sans-serif"><div><br></div><div><span style="font-family:arial"><font \
face="&#39;trebuchet ms&#39;, sans-serif"><font size="2"><br \
clear="all"></font><u><b><font \
size="4">Patrik</font></b></u><br><br></font></span><b>GTalk:    <br></b><a \
href="mailto:alabard@gmail.com" \
target="_blank">alabard@gmail.com</a></div><div><br></div><div><b>Web:</b></div><div><a \
href="http://www.patrikx3.tk" \
target="_blank">http://www.patrikx3.tk</a><br></div><div><br></div><div><b>Mobile:</b></div><div><a \
href="tel:+36+20+342+8046" target="_blank">+36 20 342 \
8046</a></div></font></font></div></div></div></div></div></div></div></div></div></div></div></div>
 <br><div class="gmail_quote">On Sun, Feb 12, 2017 at 2:23 AM, Mark Andrews <span \
dir="ltr">&lt;<a href="mailto:marka@isc.org" \
target="_blank">marka@isc.org</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><br> You need to configure the stub resolvers to use this \
nameserver.<br> <br>
One way to do this is to update the DHCP server configuration to<br>
tell the hosts on the network to use the nameserver instead of the<br>
nameserver is currently is announcing.   You can often do this by<br>
logging into the router and updating the setting there.<br>
<br>
<br>
In message &lt;<a href="mailto:2d0a9b81-83f2-e52f-f193-236778f9b583@gmail.com">2d0a9b81-83f2-e52f-f193-<wbr>236778f9b583@gmail.com</a>&gt;, \
Patrik Laszlo writes:<br> &gt;<br>
&gt; hello!<br>
&gt;<br>
&gt; I have a small network. i have a real dns internet for my domain.<br>
&gt; <a href="http://patrikx3.tk" rel="noreferrer" target="_blank">patrikx3.tk</a> \
via <a href="http://freedns.afraid.org" rel="noreferrer" \
target="_blank">freedns.afraid.org</a>. works.<br> &gt; i setup a small local domain \
so i am not using the internet ip but the<br> &gt; bind server. i need the local \
ips.<br> &gt; it works via bind all my clients.<br>
&gt; the problem only on my server itself when i use:<br>
&gt; ping <a href="http://patrikx3.tk" rel="noreferrer" \
target="_blank">patrikx3.tk</a><br> &gt; it should return 192.168.78.20<br>
&gt; but instead it is using the open internet ip address.<br>
&gt;<br>
&gt; how can i force that my ns server localhost on the server itself it use<br>
&gt; the local network instead internet ip addresses?<br>
&gt;<br>
&gt; *setup latest bind9.10 i think, all **default, i just added these:<br>
&gt;<br>
&gt; **named.conf.options:<br>
&gt; *options {<br>
&gt;               directory &quot;/var/cache/bind&quot;;<br>
&gt;<br>
&gt;               // If there is a firewall between you and nameservers you want<br>
&gt;               // to talk to, you may need to fix the firewall to allow \
multiple<br> &gt;               // ports to talk.   See <a \
href="http://www.kb.cert.org/vuls/id/800113" rel="noreferrer" \
target="_blank">http://www.kb.cert.org/vuls/<wbr>id/800113</a><br> &gt;<br>
&gt;               // If your ISP provided one or more IP addresses for stable<br>
&gt;               // nameservers, you probably want to use them as forwarders.<br>
&gt;               // Uncomment the following block, and insert the addresses<br>
&gt; replacing<br>
&gt;               // the all-0&#39;s placeholder.<br>
&gt;<br>
&gt; //         forwarders {<br>
&gt; //                     0.0.0.0;<br>
&gt; //         };<br>
&gt;<br>
&gt; //            forwarders {<br>
&gt; //                        8.8.8.8;<br>
&gt; //                        8.8.4.4;<br>
&gt; //            };<br>
&gt;<br>
&gt; //============================<wbr>==============================<wbr>==============<br>
 &gt;               // If BIND logs error messages about the root key being \
expired,<br> &gt;               // you will need to update your keys.   See<br>
&gt; <a href="https://www.isc.org/bind-keys" rel="noreferrer" \
target="_blank">https://www.isc.org/bind-keys</a><br> &gt; \
//============================<wbr>==============================<wbr>==============<br>
 &gt;               dnssec-validation auto;<br>
&gt;<br>
&gt;               auth-nxdomain no;      # conform to RFC1035<br>
&gt;               listen-on-v6 { any; };<br>
&gt;<br>
&gt; };<br>
&gt;<br>
&gt; *<br>
&gt; **name.conf.local:*<br>
&gt; zone &quot;<a href="http://patrikx3.tk" rel="noreferrer" \
target="_blank">patrikx3.tk</a>&quot; {<br> &gt;      type master;<br>
&gt;        file &quot;/etc/bind/zones/<a href="http://db.patrikx3.tk" \
rel="noreferrer" target="_blank">db.patrikx3.<wbr>tk</a>&quot;;<br> &gt; };<br>
&gt;<br>
&gt; *zones/**db.patrikx3.tk:*<br>
&gt; TTL      604800<br>
&gt; @           IN         SOA        <a href="http://ns1.patrikx3.tk" \
rel="noreferrer" target="_blank">ns1.patrikx3.tk</a>. .   (<br> &gt;                  \
5              ; Serial<br> &gt;                                         604800       \
; Refresh<br> &gt;                                          86400              ; \
Retry<br> &gt;                                       2419200              ; \
Expire<br> &gt;                                         604800     )        ; \
Negative Cache TTL<br> &gt; ;<br>
&gt;<br>
&gt; ; Name servers<br>
&gt; <a href="http://patrikx3.tk" rel="noreferrer" target="_blank">patrikx3.tk</a>.   \
IN         NS         <a href="http://ns1.patrikx3.tk" rel="noreferrer" \
target="_blank">ns1.patrikx3.tk</a>.<br> &gt;<br>
&gt; ; A records for name servers<br>
&gt; ns1                    IN         A           192.168.78.20<br>
&gt;<br>
&gt; ; Other A records<br>
&gt; @                       IN         A           192.168.78.20<br>
&gt; www                    IN         A           192.168.78.20<br>
&gt; mail                  IN         A           192.168.78.20<br>
&gt; router               IN         A           192.168.78.20<br>
&gt; server               IN         A           192.168.78.20<br>
&gt; address-book      IN         A           192.168.78.20<br>
&gt; fortune-cookie   IN         A           192.168.78.20<br>
&gt; torrent              IN         A           192.168.78.20<br>
&gt; test                  IN         A           192.168.78.20<br>
&gt; mysql                 IN         A           192.168.78.20<br>
&gt;<br>
&gt; laptop               IN         A           192.168.78.4<br>
&gt; resume.laptop     IN         A           192.168.78.4<br>
&gt;<br>
&gt; workstation        IN         A           192.168.78.2<br>
&gt; resume.workstation IN     A           192.168.78.2<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Mark Andrews, ISC<br>
1 Seymour St., Dundas Valley, NSW 2117, Australia<br>
PHONE: <a href="tel:%2B61%202%209871%204742" value="+61298714742">+61 2 9871 4742</a> \
INTERNET: <a href="mailto:marka@isc.org">marka@isc.org</a><br> \
</font></span></blockquote></div><br></div>



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

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic