bind localhost domain not working
Patrik
alabard at gmail.com
Sun Feb 12 01:35:39 UTC 2017
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 at 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 at 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 at 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 at isc.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20170212/8fe1044b/attachment-0001.html>
More information about the bind-users
mailing list