From owner-freebsd-questions@FreeBSD.ORG Fri Jul 13 05:47:50 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0B68616A496 for ; Fri, 13 Jul 2007 05:47:50 +0000 (UTC) (envelope-from cuongvt@fpt.vn) Received: from isp-fcmail.FPT.NET (isp-fcmail.fpt.net [210.245.0.161]) by mx1.freebsd.org (Postfix) with ESMTP id 5423A13C4BD for ; Fri, 13 Jul 2007 05:47:49 +0000 (UTC) (envelope-from cuongvt@fpt.vn) Received: from isp-mta3.fpt.vn ([210.245.0.150]) by isp-fcmail.FPT.NET with Microsoft SMTPSVC(6.0.3790.3959); Fri, 13 Jul 2007 12:47:47 +0700 Received: from [58.187.106.120] by isp-mta3.fpt.vn [210.245.0.150] Message-ID: <46971201.8030101@fpt.vn> Date: Fri, 13 Jul 2007 12:47:45 +0700 From: vuthecuong User-Agent: Thunderbird 2.0.0.4 (X11/20070624) MIME-Version: 1.0 To: Olivier Nicole References: <46970917.3030502@fpt.vn> <200707130536.l6D5akxS070187@banyan.cs.ait.ac.th> In-Reply-To: <200707130536.l6D5akxS070187@banyan.cs.ait.ac.th> X-OriginalArrivalTime: 13 Jul 2007 05:47:47.0954 (UTC) FILETIME=[57AED520:01C7C511] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: is is able to setting up DNS server reverse lookup with DynamicIP? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2007 05:47:50 -0000 Hi Olivier Nicole Tnx for ur quick response. I'm very very new to both DNS and Freebsd. Maybe I'm stupid because I already spent 3 days creating my zone file and reverse file but I still can not sussefull. I'm running FreeBSD 6.2, I have DynamicIP: www.thecuong.gotdns.com. Could you help me to create the simple example of zone file and reverse file for me for thecuong.gotdns.com so that I can learn from you? I'm really really stuck. Below is my named.conf: options { directory "/etc/namedb"; pid-file "/var/run/named/pid"; dump-file "/var/dump/named_dump.db"; statistics-file "/var/stats/named.stats"; listen-on { 127.0.0.1; 192.168.0.1; }; forward only; forwarders { 210.245.0.131; }; }; zone "." { type hint; file "named.root"; }; ------------------------------------------------------------------- And below is my localhost.rev: ; From: @(#)localhost.rev 5.1 (Berkeley) 6/30/90 ; $FreeBSD: src/etc/namedb/PROTO.localhost.rev,v 1.6 2000/01/10 15:31:40 peter Exp $ ; ; This file is automatically edited by the `make-localhost' script in ; the /etc/namedb directory. ; $TTL 3600 @ IN SOA localhost.localdomain. root.localhost.localdomain. ( 20070713 ; Serial 3600 ; Refresh 900 ; Retry 3600000 ; Expire 3600 ) ; Minimum IN NS localhost.localdomain. 1 IN PTR localhost.localdomain. Olivier Nicole wrote: >> I'm using dynamicDNS, so I will able to specify the forward *AND* >> reverse lookups? >> > > Yes. > > Forward DNS lookup: (alrw17.desktops.cs.ait.ac.th is dynamic DNS) > > banyan57: dig alrw17.desktops.cs.ait.ac.th > > ; <<>> DiG 9.3.1 <<>> alrw17.desktops.cs.ait.ac.th > ;; global options: printcmd > ;; Got answer: > ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15772 > ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 > > ;; QUESTION SECTION: > ;alrw17.desktops.cs.ait.ac.th. IN A > > ;; ANSWER SECTION: > alrw17.desktops.cs.ait.ac.th. 3600 IN A 192.41.170.214 > > ;; AUTHORITY SECTION: > desktops.cs.ait.ac.th. 43200 IN NS dns.cs.ait.ac.th. > > ;; ADDITIONAL SECTION: > dns.cs.ait.ac.th. 43200 IN A 192.41.170.15 > > ;; Query time: 1 msec > ;; SERVER: 192.41.170.15#53(192.41.170.15) > ;; WHEN: Fri Jul 13 12:35:23 2007 > ;; MSG SIZE rcvd: 96 > > > Reverse DNS lookup: > > > banyan58: dig -x 192.41.170.214 > > ; <<>> DiG 9.3.1 <<>> -x 192.41.170.214 > ;; global options: printcmd > ;; Got answer: > ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14984 > ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 1 > > ;; QUESTION SECTION: > ;214.170.41.192.in-addr.arpa. IN PTR > > ;; ANSWER SECTION: > 214.170.41.192.in-addr.arpa. 43200 IN CNAME 214.170.41.192.rev-dns.cs.ait.ac > .th. > 214.170.41.192.rev-dns.cs.ait.ac.th. 3600 IN PTR alrw17.desktops.cs.ait.ac.th. > > ;; AUTHORITY SECTION: > 170.41.192.rev-dns.cs.ait.ac.th. 43200 IN NS dns.cs.ait.ac.th. > > ;; ADDITIONAL SECTION: > dns.cs.ait.ac.th. 43200 IN A 192.41.170.15 > > ;; Query time: 9 msec > ;; SERVER: 192.41.170.15#53(192.41.170.15) > ;; WHEN: Fri Jul 13 12:35:31 2007 > ;; MSG SIZE rcvd: 158 > >