[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:"trebuchet \
ms",sans-serif;font-size:small">Ahh you are right!</div><div \
class="gmail_default" style="font-family:"trebuchet \
ms",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:"trebuchet ms",sans-serif;font-size:small">Thanks so \
much!</div><div class="gmail_default" style="font-family:"trebuchet \
ms",sans-serif;font-size:small">Question if you know last question:</div><div \
class="gmail_default" style="font-family:"trebuchet \
ms",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:"trebuchet ms",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:"trebuchet \
ms",sans-serif;font-size:small"><br></div><div class="gmail_default" \
style="font-family:"trebuchet \
ms",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="'trebuchet ms', 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"><<a href="mailto:marka@isc.org" \
target="_blank">marka@isc.org</a>></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 <<a href="mailto:2d0a9b81-83f2-e52f-f193-236778f9b583@gmail.com">2d0a9b81-83f2-e52f-f193-<wbr>236778f9b583@gmail.com</a>>, \
Patrik Laszlo writes:<br> ><br>
> hello!<br>
><br>
> I have a small network. i have a real dns internet for my domain.<br>
> <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> > i setup a small local domain \
so i am not using the internet ip but the<br> > bind server. i need the local \
ips.<br> > it works via bind all my clients.<br>
> the problem only on my server itself when i use:<br>
> ping <a href="http://patrikx3.tk" rel="noreferrer" \
target="_blank">patrikx3.tk</a><br> > it should return 192.168.78.20<br>
> but instead it is using the open internet ip address.<br>
><br>
> how can i force that my ns server localhost on the server itself it use<br>
> the local network instead internet ip addresses?<br>
><br>
> *setup latest bind9.10 i think, all **default, i just added these:<br>
><br>
> **named.conf.options:<br>
> *options {<br>
> directory "/var/cache/bind";<br>
><br>
> // If there is a firewall between you and nameservers you want<br>
> // to talk to, you may need to fix the firewall to allow \
multiple<br> > // 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> ><br>
> // If your ISP provided one or more IP addresses for stable<br>
> // nameservers, you probably want to use them as forwarders.<br>
> // Uncomment the following block, and insert the addresses<br>
> replacing<br>
> // the all-0's placeholder.<br>
><br>
> // forwarders {<br>
> // 0.0.0.0;<br>
> // };<br>
><br>
> // forwarders {<br>
> // 8.8.8.8;<br>
> // 8.8.4.4;<br>
> // };<br>
><br>
> //============================<wbr>==============================<wbr>==============<br>
> // If BIND logs error messages about the root key being \
expired,<br> > // you will need to update your keys. See<br>
> <a href="https://www.isc.org/bind-keys" rel="noreferrer" \
target="_blank">https://www.isc.org/bind-keys</a><br> > \
//============================<wbr>==============================<wbr>==============<br>
> dnssec-validation auto;<br>
><br>
> auth-nxdomain no; # conform to RFC1035<br>
> listen-on-v6 { any; };<br>
><br>
> };<br>
><br>
> *<br>
> **name.conf.local:*<br>
> zone "<a href="http://patrikx3.tk" rel="noreferrer" \
target="_blank">patrikx3.tk</a>" {<br> > type master;<br>
> file "/etc/bind/zones/<a href="http://db.patrikx3.tk" \
rel="noreferrer" target="_blank">db.patrikx3.<wbr>tk</a>";<br> > };<br>
><br>
> *zones/**db.patrikx3.tk:*<br>
> TTL 604800<br>
> @ IN SOA <a href="http://ns1.patrikx3.tk" \
rel="noreferrer" target="_blank">ns1.patrikx3.tk</a>. . (<br> > \
5 ; Serial<br> > 604800 \
; Refresh<br> > 86400 ; \
Retry<br> > 2419200 ; \
Expire<br> > 604800 ) ; \
Negative Cache TTL<br> > ;<br>
><br>
> ; Name servers<br>
> <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> ><br>
> ; A records for name servers<br>
> ns1 IN A 192.168.78.20<br>
><br>
> ; Other A records<br>
> @ IN A 192.168.78.20<br>
> www IN A 192.168.78.20<br>
> mail IN A 192.168.78.20<br>
> router IN A 192.168.78.20<br>
> server IN A 192.168.78.20<br>
> address-book IN A 192.168.78.20<br>
> fortune-cookie IN A 192.168.78.20<br>
> torrent IN A 192.168.78.20<br>
> test IN A 192.168.78.20<br>
> mysql IN A 192.168.78.20<br>
><br>
> laptop IN A 192.168.78.4<br>
> resume.laptop IN A 192.168.78.4<br>
><br>
> workstation IN A 192.168.78.2<br>
> 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