[gentoo-user] Quick question about DNS and bind

2005-12-13 Thread Michael Sullivan
I believe that I have my DNS configuration set up correctly and the
named server is starting.  The problem is that when I issue

dig 127.0.0.1 I get this:

bullet ~ # dig 127.0.0.1

;  DiG 9.2.5  127.0.0.1
;; global options:  printcmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NXDOMAIN, id: 34083
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;127.0.0.1. IN  A

;; AUTHORITY SECTION:
.   86400   IN  SOA A.ROOT-SERVERS.NET.
NSTLD.VERISIGN-GRS.COM. 2005121201 1800 900 604800 86400

;; Query time: 127 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Tue Dec 13 10:00:47 2005
;; MSG SIZE  rcvd: 102


This shouldn't be right - it should be showing me the records that I set
up yesterday, but for some reason it's not consulting my new DNS server.
How do I make it use my DNS server?  Do I need to specify 127.0.0.1 in
my /etc/resolv.conf file?  (All of this is on my server box)

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Quick question about DNS and bind

2005-12-13 Thread Francesco Riosa
Michael Sullivan wrote:
 I believe that I have my DNS configuration set up correctly and the
 named server is starting.  The problem is that when I issue

 dig 127.0.0.1 I get this:

   

 this does not do what you want
use either

#dig 1.0.0.127.in-addr.arpa.

or

#dig -x 127.0.0.1

...
sorry if this is a duplicate mail
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Quick question about DNS and bind

2005-12-13 Thread Jessica Rasku

Michael Sullivan wrote:

I believe that I have my DNS configuration set up correctly and the
named server is starting.  The problem is that when I issue

dig 127.0.0.1 I get this:

bullet ~ # dig 127.0.0.1


This isn't the correct format to do a reverse DNS lookup.  I believe 
that it is


# dig 1.0.0.127.in-addr.arpa

I believe this is what you are looking for.  If not, then it is not 
setup correctly.



;  DiG 9.2.5  127.0.0.1
;; global options:  printcmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NXDOMAIN, id: 34083
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;127.0.0.1. IN  A

;; AUTHORITY SECTION:
.   86400   IN  SOA A.ROOT-SERVERS.NET.
NSTLD.VERISIGN-GRS.COM. 2005121201 1800 900 604800 86400

;; Query time: 127 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Tue Dec 13 10:00:47 2005
;; MSG SIZE  rcvd: 102


This is querying 192.168.1.1 port 53.  This if I'm not mistaken is a 
private network, and thus would have to be your machine.  So it's just a 
matter of forming your request in the correct format.  Unless you 
haven't set things up correctly.



This shouldn't be right - it should be showing me the records that I set
up yesterday, but for some reason it's not consulting my new DNS server.
How do I make it use my DNS server?  Do I need to specify 127.0.0.1 in
my /etc/resolv.conf file?  (All of this is on my server box)


I think everything is correct.  Your query was just malformed.  No 
problem, try the query that I put, it should work.


Jessica



--
gentoo-user@gentoo.org mailing list